473,545 Members | 1,224 Online
Bytes | Software Development & Data Engineering Community
+ 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("web JPD", "lang"))locatio n.replace("pain tings5.htm");

exp = new Date();
exp = exp.setTime(exp .getTime() + (1000 * 60 * 60 * 24 * 365));
function premiereVisite( inName, inWord){
setCookie("webJ PD", new Date(exp).toDat eString(), exp)
setChip("webJPD ", "nom", inName);
setChip("webJPD ", "lang", inWord);
location.replac e("paintings5.h tm");
}

==========
<body>
<SCRIPT language="JavaS cript">
var bienvenue = '<p>Cochez votre langue.</p>'
bienvenue += '<p>Check your language.</p>'
bienvenue += '<form name="R"><p>Fir st name/Prénom:<input type="text"
name="T1" size="20"></p>'
bienvenue += '<p>Français:<i nput type="radio" value="V1" name="R1"
onClick="premie reVisite(docume nt.R.T1.value, \'francais\')"> </p>'
bienvenue += '<p>English:<in put type="radio" value="V2" name="R1"
onClick="premie reVisite(docume nt.R.T1.value, \'english\')"></p></form>'

document.write( bienvenue);

</SCRIPT>
Jul 23 '05 #1
3 1157
Québec wrote:
setCookie("webJ PD", new Date(exp).toDat eString(), 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***********@v irgin.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.2 41B7%ph******** ***@virgin.net. ..
Québec wrote:
setCookie("webJ PD", new Date(exp).toDat eString(), 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***********@v irgin.net
(Please remove the "z"s if replying by email)

Jul 23 '05 #3
JRS: In article <Mf************ **********@webe r.videotron.net >, dated
Wed, 20 Oct 2004 07:46:49, seen in news:comp.lang. javascript, Québec
<On**@WasEno.ug h> 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(ex p.getMonth()+12 )

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.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
7521
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 require_once('..\library_database\Connections\onlinequote.php'); ?> <?
1
1641
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 Apache Batik SVG library, imports the SVG Canvas, and puts up a simple Swing interface to let the user load and display an SVG file. (I translated the...
2
2133
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 requests to IIS are stuck. I presume that it is some permission thing, but what? Is there some log or something that I can check? Please help! ...
3
1826
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 'System.Web.UI.Page' via nested type 'default_aspx.Initialize'") PS it's running .Net 2.0 which explains the "ClassName" attribute in Page directive ...
2
1680
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 view_users.php pg 279 //This script retrieves all the records from the register table. //This new version allows the results to be sorted in different...
2
1550
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 doesen't work so i didn't wrote code for randomizeing location (this i know how to do). Did i do something wrong? window.opener works fine form...
4
3680
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 functionality of php. The extension uses the '$perl->eval' function. i am kind of stuck with the syntax or how to put the php variable into the perl...
0
7398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7416
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5325
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1878
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 we have to send another system
1
1013
muto222
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.