Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Modify array in opener (Firefox VS IE)

Reply
Thread Tools

Modify array in opener (Firefox VS IE)

 
 
Soren Schimkat
Guest
Posts: n/a
 
      07-08-2005
Hi Guys

I'm having trouble with the following code running in a popup window:

------------------------------------------
var NewTag = 'test';
var tagdescription = 'test';
var value = 'test';

window.opener.actionarray.push('add_tag:' + NewTag);
window.opener.document.dhcp.elements['dhcptags'].options[window.opener.document.dhcp.elements['dhcptags'].length]
= new Option(tagdescription + ' ---> ' + value, NewTag);
------------------------------------------

The code works fine in Firefox: A new element is pushed onto the
actionarray in the opening window, and a new element is create in the
selection list dhcptags in the opening window.

The code dosn't work in IE: A new element is pushed onto the actionarray
in the opening window, but no elemest is added to the selection list and
sometimes IE crash when at this point.

Any comments on this one?

Regards Søren Schimkat
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener, form.opener? jojowebdev@gmail.com Javascript 5 07-14-2006 07:08 PM
modify structure array pointer in the function s88 C Programming 5 11-21-2005 05:35 PM
Modify array and selection list in opener (Firefox VS IE) Soren Schimkat Javascript 0 07-08-2005 09:02 AM
opener.opener ? Yaron C. Javascript 4 11-02-2003 06:11 AM
trigger event on opener from popup when closing it or run opener script from popup Urs Gubler Javascript 0 07-02-2003 02:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57