|
-
Jun 17th, 2005, 06:19 AM
#1
Thread Starter
Frenzied Member
JS and session?
Is it possible to write a session varible from JS instead of writing an URL?
Code:
function data6()
{location.href = "gf2004.aspx?seg=data6";}
The disadvantage of the code above is that the page is loaded again. Using a session the page will not have to reload.
The function is activated when clicking my menubar which is written in JS.
-
Jun 17th, 2005, 11:25 AM
#2
Re: JS and session?
Short answer: no.
Long answer: it's possible to make requests in the background without reloading the page.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 22nd, 2005, 08:14 AM
#3
Addicted Member
Re: JS and session?
yup,
i agree with cornedbee. it is possible for you to process a page without submitting with techniques like xmlhttp. i am not able to guess what you are going to write from javascript to a session variable.. if you clear it then suggesstions can be given.
--Kishore...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|