mac stuck on this script

Q

Québec

Hi to the excellent newsgroup,

I got a script that works on pc with Opera, IE and Netscape. But some mac
users told me they could not access my web site at--
http://jeanpierredaviau.com where the script is.
I am using this cookies script for years. So, I think the problem might [?]
be in the page script.
Could someone help me on this please?

Jean Pierre

===========
<head>
if(getChip("webJPD", "lang"))location.replace("paintings5.htm");

exp = new Date();
exp = exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 365));
function premiereVisite(inName, inWord){
setCookie("webJPD", new Date(exp).toDateString(), exp)
setChip("webJPD", "nom", inName);
setChip("webJPD", "lang", inWord);
location.replace("paintings5.htm");
}

==========
<body>
<SCRIPT language="JavaScript">
var bienvenue = '<p>Cochez votre langue.</p>'
bienvenue += '<p>Check your language.</p>'
bienvenue += '<form name="R"><p>First name/Prénom:<input type="text"
name="T1" size="20"></p>'
bienvenue += '<p>Français:<input type="radio" value="V1" name="R1"
onClick="premiereVisite(document.R.T1.value, \'francais\')"></p>'
bienvenue += '<p>English:<input type="radio" value="V2" name="R1"
onClick="premiereVisite(document.R.T1.value, \'english\')"></p></form>'

document.write(bienvenue);

</SCRIPT>
 
P

Philip Ronan

Québec said:
setCookie("webJPD", new Date(exp).toDateString(), exp)

The "toDateString()" method isn't supported in versions of IE prior to 5.5

The last version of Internet Explorer for the Macintosh was 5.2
 
Q

Québec

YES

Thank you

Jean Pierre


Philip Ronan said:
The "toDateString()" method isn't supported in versions of IE prior to 5.5

The last version of Internet Explorer for the Macintosh was 5.2
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated
Wed, 20 Oct 2004 07:46:49, seen in Québec
exp = new Date();
exp = exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 365));

Also, if you want a year, why not set a year?

exp = exp.setMonth(exp.getMonth()+12)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top