netformx
asked on
eval in Netscape does not work properly
I have the following code:
var VendorId123Array = ....
...
var vendorId = 123;
var selectedArray = eval("VendorId" + vendorId + "Array");
in Netscape selectedArray is null, why?
In IE - works OK
var VendorId123Array = ....
...
var vendorId = 123;
var selectedArray = eval("VendorId" + vendorId + "Array");
in Netscape selectedArray is null, why?
In IE - works OK
ASKER
I should support Netscape 7.1, 7.2, 8, Firefox
Hmnn...ur code works fine in FF 1.0.5.
I will check the issue with NN.
Regards
WC
PS: But...did that 2 line idea work?
I will check the issue with NN.
Regards
WC
PS: But...did that 2 line idea work?
ASKER
no it didn't
Could you try the whole thing?
eval("var selectedArray = VendorId" + vendorId + "Array");
eval("var selectedArray = VendorId" + vendorId + "Array");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Works is Netscape 8.0.3.3
--------------------------
var selectedArrayStr="VendorId
var selectedArray=eval(selecte
--------------------------
And...what version of Netscape are u using?
Regards
WC