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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to read a value from text box & set a session type var that stays after refresh?

    Hi

    I'm presently working on an existing web mapping site written in 'old' asp (not .net) using JavaScript on server side and JavaScript on client.

    I'm more familiar with .net and vb, rusty with both 'old' asp and JavaScript so please forgive me if this question is too easy!

    I need to set variables from web page tools, (e.g. a combo box) that have been coded in client JavaScript then save those variable back to the server as something like a session or application var. As when the page is refreshed (every time the map is paned for e.g.) I need the selected variable to stay and not have the user have to reset it every time.

    Could some body please show me some basic code on how to achieve this as its driving me mad!

    I havent posted any code as I dont real know where to start!

    I have no problem passing session vars from asp to the page but not collecting data from the page and saving back to server.

    Any help / advice would be much appreciated.

    Cheers

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Would cookies do your job?
    http://www.w3schools.com/JS/js_cookies.asp
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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