Closed
Bug 99490
Opened 24 years ago
Closed 24 years ago
Netscape 6.1 has problems with arrays in Javascript
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: Ted.Ast, Assigned: jst)
Details
Attachments
(2 files)
Netscape 6.1 does not handle arrays properly. IE 5.5 and Netscape 4.73 handle
the following code with no problems. Netscape 6.1 consistently fails.
/* Set the entry for DLM name, type and value pairs for the server */
for (var i = 0; i<dlm.length ; i++)
{
if (setdlmvalue[i] == true)
{
DOC.DLMName[i].name = "Name";
DOC.DLMType[i].name = "Type";
DOC.DLMValue[i].name = "Value";
}
}
where DLMName is a defined hidden value as follows:
<p>
<input type="hidden" name="DLMName" value= "HTTP_XCM_CO_DLM_PORT9100">
<input type="hidden" name="DLMType" value="TypeNumber">
<input type="hidden" name="DLMValue" value="<!-- loa fn=HTTP_XCM_Get_fn
arg="HTTP_XCM_CO_DLM_PORT9100"-->">
<input type="hidden" name="DLMName" value= "HTTP_XCM_CO_DLM_LPD">
<input type="hidden" name="DLMType" value="TypeNumber">
<input type="hidden" name="DLMValue" value="<!-- loa fn=HTTP_XCM_Get_fn
arg="HTTP_XCM_CO_DLM_LPD"-->">
<input type="hidden" name="DLMName" value= "HTTP_XCM_CO_DLM_MSNETWORK">
<input type="hidden" name="DLMType" value="TypeNumber">
<input type="hidden" name="DLMValue" value="<!-- loa fn=HTTP_XCM_Get_fn
arg="HTTP_XCM_CO_DLM_MSNETWORK"-->">
<input type="hidden" name="OIDName" value="HTTP_XCM_CO_INTERFACE_TCPIP">
<input type="hidden" name="OIDType" value="TypeNumber">
<input type="hidden" name="OIDValue" value="">
The following is the error out of the javascript console:
Error: DOC.DLMName[i] has no properties
Source File: http://13.231.134.5/devadmin/s_tcpip.dhtml
Line: 1305
This is the same type of error we receive from other parts of our site when
using arrays in a similar fashion.
Error: theForm.InvocationName[FILING_ACCESS_TYPE] has no properties
Source File: http://13.231.134.5/print/scan_to_file/dist_to_itnet_folder.dhtml?
ParserFilename=/tmp/template/pool/web/ted.xst&InvocationName=1&ActionRequested=c
reate
Line: 348
what are you trying? get some real example of your code here, because i cannot
see the bug. i have attached a small testcase that works in build 2001081504.
btw, the comments in the tags are something that my build really doesnt like,
but even with them it works.
Comment 3•24 years ago
|
||
Could you please tell us how you populate the arrays? A full example would be
very useful. Thanks in advance!
Comment 4•24 years ago
|
||
What is DOC in that code? I just tried writing up a testcase and it works in a
linux build from 2001-09-12
Comment 5•24 years ago
|
||
Comment 6•24 years ago
|
||
Oh, and what's |setdlmvalue| ? I bet that's testing true when it should not...
Reporter, please work with us on this one... I've spent the last few hours trying
to get this to break and have yet to succeed. Please comment within the next
week or so; otherwise we may have to resolve this worksforme...
Please cancel this problem report, it is not a mozilla problem. It is inherint
to Netscape 6.1. I have reported the problem to Netscape.
Comment 8•24 years ago
|
||
Ted, thanks for the response. Resolving this as worksforme per comments.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•