G
GhislainTanguay
Hi everyone. I'm not from Internet word i have some difficulties with
events.
I have a session variable who change the selected language (French or
English) and i try to change this variable when someone click on my anchor.
This is my code
<%
if session("IdVersion")="" THEN
intIdVersion=1
Else
intIdVersion=session("IdVersion")
End if
%>
<script language="JavaScript" type="text/JavaScript">
function GetLangue(intIdVersion)
{
if (intIdVersion ==1)
intIdVersion ==2;
Else
intIdVersion ==1;
return intIdVersion;
}
</script>
<a href="default.asp?IdMenuBande=2&IdVersion=<%=intIdVersion%>"
onclick="javascript:GetLangue(<%intIdVersion%>)"
class="texteBandeHaut"><font color="#990000"><%=strVersion%></font></a>
I liked to return my new version only when a user click on the top menu
where he have the possibility with this two language.
But for now all i received is an error messaor who tell me that there's an
error on the page.
events.
I have a session variable who change the selected language (French or
English) and i try to change this variable when someone click on my anchor.
This is my code
<%
if session("IdVersion")="" THEN
intIdVersion=1
Else
intIdVersion=session("IdVersion")
End if
%>
<script language="JavaScript" type="text/JavaScript">
function GetLangue(intIdVersion)
{
if (intIdVersion ==1)
intIdVersion ==2;
Else
intIdVersion ==1;
return intIdVersion;
}
</script>
<a href="default.asp?IdMenuBande=2&IdVersion=<%=intIdVersion%>"
onclick="javascript:GetLangue(<%intIdVersion%>)"
class="texteBandeHaut"><font color="#990000"><%=strVersion%></font></a>
I liked to return my new version only when a user click on the top menu
where he have the possibility with this two language.
But for now all i received is an error messaor who tell me that there's an
error on the page.