Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts

    browser back / input title

    have a custom drop down (forinstance selection of states) where on selection the item selected (forinstance Austria), gets into input, and input gets title ('au' which is the code for Austria), needed for sending to server.

    Now, if I surf somewhere else, return to above page, 'Austria' is stil there but 'au' is lost.

    How can I at least clear 'Austria' too ?
    Or where to put 'au' to make it 'persistant' ?
    Last edited by BubikolRamios; 07-02-2009 at 01:54 AM.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    and input gets title ('au' which is the code for Austria), needed for sending to server.
    Do you do this with some Javascript code or something?

    Why not assign "AU" to the "value" element of the option in the select box? That is what gets sent to the server.

    Code:
    <select name="countryselect">
    <option value="AU">Austria</option>
    .
    .
    .
    </select>

  • #3
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts
    jep, sending 'au' via ajax, Users does not know what 'au' is but knows 'Austria'

    Custom drop down allso shows hirearchical data (slide out menu), and the on select writes value and title to specific input, it is not simple <select ..>

    besides there are things like
    1 dog
    2 cat
    ...

    thinking to have hidden input, but don't like it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •