473,473 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

mac stuck on this script

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>
Jul 23 '05 #1
3 1150
Québec wrote:
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

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #2
YES

Thank you

Jean Pierre
"Philip Ronan" <ph***********@virgin.net> a écrit dans le message de
news:BD9C1F61.241B7%ph***********@virgin.net...
Québec wrote:
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

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)

Jul 23 '05 #3
JRS: In article <Mf**********************@weber.videotron.net>, dated
Wed, 20 Oct 2004 07:46:49, seen in news:comp.lang.javascript, Québec
<On**@WasEno.ugh> posted :
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)

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Phill Long | last post by:
this is the the code, now here is the final result.... I get one combo box and one tex box come up, but they are empty... DAMN!!! Any ideas on what Im doing wrong please.. Thanks Again <?php...
1
by: Mitch Amiano | last post by:
I'm getting started working with Jython (hope this is an ok group for the question), and ran into a stumbling block using the jythonc tool. It is a fairly simple Jython script which uses the...
2
by: Vladimir | last post by:
I'm running ASP on IIS 5.1 on Windows XP, the same thing works on Windows 98 with PWS. The function below stuck the IIS - draws only frame with nothing inside and wait for infinite. All other...
3
by: Davíð Þórisson | last post by:
I don't get it... so simple code but it's bringing an error which goes away if I skip that <script Src="initialize.cs"> part... ("CS0038: Cannot access a nonstatic member of outer type...
2
by: azmiza | last post by:
Hi friend, I am new in this area. Hope members can help me on my script below. I want to create Previous and Next button but it runs until maximum execution time. Help me <?php #script...
2
by: Nicholas | last post by:
Hello, I'm new in Javascript and it seems I'm a bit stuck so if someone can help. The problem is 4th button / function. I dont know how to talk to the opend window, the thing with focus i wrote...
4
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.