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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

netscape "document.fm.elements["straat" + tel] has no properties&

Status
Not open for further replies.

DeSn

Programmer
Nov 20, 2001
111
BE
Hi,

I have to following error in Netscape(4.76): document.fm.elements["straat" + tel] has no properties. In IE everything works fine.

This is the JS code:


document.fm.elements["straat"+tel].value=klagergegevens.straat;

and this tr:
<tr>
<td class=&quot;label&quot;>Straat:</td>
<td>
<table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td><input name=&quot;straat<%=i%>&quot; type=&quot;text&quot; class=&quot;textfield&quot; size=&quot;50&quot; value=&quot;<%=klager.getStraat()%>&quot;></td>
<td class=&quot;label&quot;>  Nr.:  <input name=&quot;nummer<%=i%>&quot; type=&quot;text&quot; class=&quot;textfield&quot; size=&quot;7&quot; value=&quot;<%=klager.getNummer()%>&quot;></td>
<td class=&quot;label&quot;>  Bus:  <input name=&quot;bus<%=i%>&quot; type=&quot;text&quot; class=&quot;textfield&quot; size=&quot;7&quot; value=&quot;<%=klager.getBus()%>&quot;></td>
</tr>
</table>
</td>
</tr>


Can anyone help me?
 
I had a similiar problem, I just did this and it seemed to work again. Instead of using
Code:
 document.fm.elements[&quot;straat&quot;+tel].value = klagergegevens.straat; [/color]
Try using:
Code:
 document.getElementById(&quot;straat&quot;+tel).value = klagergegevens.straat; [/color]

I hope this helps.


Sean.
psa.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top