1 msgRe: OT was Re: Accepting Connections from Inter...
3 msgRe: 'View Selection Source'
3 msgFirefox 3, Places. Tags Question
4 msgRe: Spamcop: Sending a 'type' of challenge-resp...
1 msgMozilla Scheduled Downtime - 1/17/2008,7pm - 10...
27 msgbat files in XP
1 msgArchive Question - Trash Thread
5 msgRe: New Seamonkey logo
3 msgmozilla subscriptions...?
1 msgRe: Signature does not get removed when changin...
15 msgsecnews activity

Cannot work with the nsIMutableArray in Javasript.
\ stony_dreams (13 Jan 2008)
. \ Leonidas Jones (13 Jan 2008)

3 msgHow are my PHP pages being processed?
160 msgArchive Question
19 msgConnection to Secnews!!
1 msgRe: Message ID
11 msgNew Years Resolution
31 msgTo Jay!!
2 msgMozilla changes at the top
5 msgInteresting article about Firefox, Mozilla......
Subject:Cannot work with the nsIMutableArray in Javasript.
Group:Mozilla-general
From:stony_dreams
Date:13 Jan 2008



Hello,

I was tryin to get nsIMutableArray to work from my extension but could not
do it. My code is as follows:

var testArray =
Components.classes["@mozilla.org/array;1"].createInstance(Components.interfaces. nsIMutableArray);
testArray.appendElement("abc", true);
alert(testArray.length);

Could anyone tell me what is the error, as I never get an alert.

Thanks...
--
View this message in context: http://www.nabble.com/Cannot-work-with-the-nsIMutableArray-in-Javasript.-tp14782 258p14782258.html
Sent from the Mozilla - General mailing list archive at Nabble.com.

_______________________________________________
general mailing list
general
https://lists.mozilla.org/listinfo/general


© 2004-2008 readlist.com