Forums
This topic is locked
Cookies and/or Function
Posted 30 Jan 2002 16:38:28
1
has voted
30 Jan 2002 16:38:28 Tony Chronopoulos posted:
Hi guys..I decided to use cookies for the first time and I think I might be forgetting a parameter or something. All I wanted to do was remember the users response for that session.
When you arrive at the index page and click on "Sourire" (french) or "Smile" (english), nothing happens on some computers, your stuck on the index page. But on other computers, there's no problem.
Basically, I know it's either (or both) the cookie code or the code that I use to open an html page in the same browser. (which has to be a js function)
If anyone can help me out, the URL is:
www.microdesign2.com/clinique
and here are my functions for both buttons (french or english):
<script language="JavaScript">
<!--
function french_selected() {
document.cookie = 'french'
if (parent.location.href == self.location.href){
window.location.href = 'site.html'
}
}
function english_selected() {
document.cookie = 'english'
if (parent.location.href == self.location.href){
window.location.href = 'site.html'
}
}
//-->
</script>
Thanks in advance,
Tony
Edited by - bloodtrain on 30 Jan 2002 16:49:35