Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-15-2009, 11:53 AM   PM User | #1
djp6
New to the CF scene

 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
djp6 is an unknown quantity at this point
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
djp6 is offline   Reply With Quote
Old 05-15-2009, 01:31 PM   PM User | #2
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
Would cookies do your job?
http://www.w3schools.com/JS/js_cookies.asp
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:56 AM.


Advertisement
Log in to turn off these ads.