August 14th, 2003, 03:29 PM
-
asp form and javascript
This is what I have and it does work, but if I hit the back
button in the broswer to revise the search, these two fields (cminHouse_nr & cmaxHouse_nr) are empty. But the other fields in the form (street, city, and ect.)
still have the input. How would I retain the input and still use this
javascript?
<p align="left"><input type="text" size="14" name="cminHOUSE_NR"
id="cminHOUSE_NR" tabindex="1" onblur="javascript:<%= Session
("cminHOUSE_NR") %>
x=document.main.cmaxHOUSE_NR;if(x.value=='')
{x.value=this.value;}" /></td>
<td width="44%" align="center">
<p align="left"><input type="text" size="14" name="cmaxHOUSE_NR"
id="cmaxHOUSE_NR" tabindex="2" onblur="javascript:<%= Session
("cmaxHOUSE_NR") %>
x=document.main.cminHOUSE_NR;if(x.value=='')
{x.value=this.value;}" /></td>
<td width="41%" align="right"><font size="2">Street Name:
</font></td>
<td width="82%" colspan="2"><input type="text" size="30"
name="cSTREET_NAM" tabindex="3" value="<%= Session("cSTREET_NAM") %
>"></td>
August 15th, 2003, 05:33 AM
-
August 15th, 2003, 06:50 AM
-
I'm sorry but I don't think cookies have anything to do with this.
This code is a way that when I hit tab after inputing the
Min field that the same info automaticly appiers in
Max input field so I don't have to type it twice.