you could try using the splice method, set the deletCount (2nd property)
to 0 and put the elements to be added as the last set of properties.
Christopher Go wrote:
> Hi all,
>
> Just wondering if anybody knows what the workaround is for the push()
> function for arrays in MSIE.
>
> Code below works in Netscape 4.7 but not in MSIE 5.0.
>
> ===========================
>
> <html>
> <head>
> <title>Array Test for MSIE</title>
>
> <script language="JavaScript">
> var ieArray = new Array;
>
> ieArray[0] = "arrayItem1";
> ieArray[1] = "arrayItem2";
> ieArray[2] = "arrayItem3";
> ieArray[3] = "arrayItem4";
>
> ieArray.push("arrayItem5");
>
> for (i=0; i<ieArray.length; i++) {
> document.write(ieArray[i] + "<br>");
> }
>
> </script>
>
> </head>
>
> <body>
> </body>
> </html>
>
> ===========================
>
> Thanks,
> Chris
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help