Forums
This topic is locked
Setting session-variable by clicking image
Posted 19 Aug 2002 12:48:28
1
has voted
19 Aug 2002 12:48:28 Erwin Hendriks posted:
I'm trying to set a session-variable by clicking images.Something like this:
OnClick Call Javascript => the javascript consists of the following statement: session.putValue("language","xx"

where xx is the language-code which is selected.
I keep getting errors.... How do I work this? I want multilingual support in my pages..
Any suggestions?
Replies
Replied 19 Aug 2002 14:10:05
19 Aug 2002 14:10:05 Erwin Hendriks replied:
The (explore) error message on this page: "session is undefined"
Replied 19 Aug 2002 14:28:28
19 Aug 2002 14:28:28 Vince Baker replied:
create a page called Create_Lang_Script.asp
and add the following:
<%
Session("Lang"
= Request.QueryString("Lang"
Response.redirect("YOUR INITIAL PAGE HERE"
%>
Place the following as the link on the image (english image):
Create_Lang_Script.asp?Lang=English
Do the same for the other image just changing the =English to =French etc.
Hope this helps
Vince
and add the following:
<%
Session("Lang"


Response.redirect("YOUR INITIAL PAGE HERE"

%>
Place the following as the link on the image (english image):
Create_Lang_Script.asp?Lang=English
Do the same for the other image just changing the =English to =French etc.
Hope this helps
Vince
Replied 19 Aug 2002 14:31:24
19 Aug 2002 14:31:24 Erwin Hendriks replied:
Thanks again for your response, Vince. I have forgotten to tell that I am using .jsp pages, but I think I can manage with your .asp example.
Nakhba
Nakhba