#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    6
    Rep Power
    0

    Unhappy 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:&nbsp;
    </font></td>
    <td width="82%" colspan="2"><input type="text" size="30"
    name="cSTREET_NAM" tabindex="3" value="<%= Session("cSTREET_NAM") %
    >"></td>
  2. #2
  3. Procrastinator Extraordinaire
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    240
    Rep Power
    11
    cookies my friend, cookies. I don't know much about them myself but try this:
    http://www.google.com/search?hl=en&i...TF-8&q=cookies
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    6
    Rep Power
    0

    Unhappy


    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.

IMN logo majestic logo threadwatch logo seochat tools logo