Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.getElementById problems in Netscape

Status
Not open for further replies.

questhaven

Programmer
Mar 28, 2001
81
US
Is there any reason anyone can see why this would not work in Netscape? Thanks!

document.getElementById('aContent' + parseInt(x+1)).value = aList[x];
document.getElementById('aType' + parseInt(x+1)).value = tList[x];
 
Gary - Thanks for your help - I wish that worked, but Netscape still doesn't pick it up - it just stops processing prior to the first reference to document.getElement. Here is the complete function:

function fillForm() {

for(x=0; x < aList.length; x++) {
document.getElementById('aContent' + (parseInt(x)+1)).value = aList[x];

document.getElementById('aType' + (parseInt(x)+1)).value = tList[x];
}

document.NoteForm.submit();

}

When I take out the two references to document.getElementById the form posts - however - the data that these two calls to document.getElementById handle is missing - so I figure it must be a syntax issue...I am just ripping my hair out trying to figure out what. Any ideas?
 
could you provide a link or more source code as well?

Another question as well is what version of Netscape are you trying this with?

did you try typeing javascript: in the location bar to see what the errors are? Gary Haran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top