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

div in IE and NN

Status
Not open for further replies.

DeSn

Programmer
Nov 20, 2001
111
BE
Hi,

This is my html code:

<div id=&quot;binnenland<%=i%>&quot; style=&quot;position:absolute; top:<%=(i+1)*104+(i*61)%>px; left:150px;&quot;>
<table border=&quot;0&quot;>
<tr>
<td class=&quot;label&quot;><input name=&quot;postcode1<%=i%>&quot; class=&quot;textbox&quot; type=&quot;text&quot; size=&quot;7&quot; value=&quot;<%=klager.getPostcode()%>&quot; onBlur=&quot;javascript:setTeller(<%=i%>);doPostcode_onBlur();&quot;></td>
<td>  Gemeente: <input type=&quot;hidden&quot; name=&quot;gemeentenaam1<%=i%>&quot;>
<select name=&quot;gemeente1<%=i%>&quot; class=&quot;keuzelijst&quot; onchange=&quot;javascript:setTeller(<%=i%>);doGemeenteLB_onChange();&quot;>
<option value=&quot;&quot;></option>
<%= datamanager.cache.getGemeentenProv(conn, sese.getNisCode())%>
</select></td>
<td><a href=&quot;javascript:setTeller(<%=i%>);doAlleGemeentenBT_onClick();&quot; onMouseOut='MM_swapImgRestore()' onMouseOver=&quot;MM_swapImage('gemeenten','','../gif/gemeenten_sel.gif',1);&quot;><img name=&quot;gemeenten&quot; alt=&quot;alle gemeenten&quot; src=&quot;../gif/gemeenten.gif&quot; border=&quot;0&quot;></a></td>
</tr>
</table>
</div>
<div id=&quot;buitenland<%=i%>&quot; style=&quot;position:absolute; top:<%=(i+1)*105+(i*61)%>px; left:150px;&quot;>
<table border=&quot;0&quot; >
<tr>
<td class=&quot;label&quot;><input name=&quot;postcode2<%=i%>&quot; type=&quot;text&quot; class=&quot;textbox&quot; size=&quot;7&quot; value=&quot;<%=klager.getPostcode()%>&quot;></td>
<td class=&quot;label&quot;>Gemeente:</td><td><input type=&quot;text&quot; name=&quot;gemeentenaam2<%=i%>&quot; class=&quot;textbox&quot; size=&quot;30&quot; value=&quot;<%=klager.getGemeente()%>&quot;></td>
<td class=&quot;label&quot;>Land:</td><td><input type=&quot;text&quot; name=&quot;land<%=i%>&quot; class=&quot;textbox&quot; size=&quot;15&quot; value=&quot;<%=klager.getLand()%>&quot;></td>
</tr>
</table>
</div>


In javascript I want to put a value into some fields from the divs, want I constantly get an error 'has no properties' with the following code:


var bi=document.layers['binnenland'+tel];
var bu=document.layers['buitenland'+tel];
bi[&quot;postcode1&quot;+tel].value=&quot;&quot;;
bi[&quot;gemeentenaam1&quot;+tel].value=&quot;&quot;;


PS In IE this works fine with document.fm.elements[&quot;postcode1&quot;+tel].value=&quot;&quot;; but not in NN4.76, that's why I tried the code above, but this doesn't work eather :(
 

I know this doesn't answer your question, but I'd *seriously( (and I can't stress that enough) look at upgrading away from NN4.76. It's buggy as hell.

Just my advice (and that of a few thousand others, no doubt ;o)

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top