mac stuck on this script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Québec

    #1

    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>


  • Philip Ronan

    #2
    Re: mac stuck on this script

    Québec wrote:
    [color=blue]
    > setCookie("webJ PD", new Date(exp).toDat eString(), exp)[/color]

    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
    phil.ronanzzz@v irgin.net
    (Please remove the "z"s if replying by email)


    Comment

    • Québec

      #3
      Re: mac stuck on this script

      YES

      Thank you

      Jean Pierre


      "Philip Ronan" <phil.ronanzzz@ virgin.net> a écrit dans le message de
      news:BD9C1F61.2 41B7%phil.ronan zzz@virgin.net. ..[color=blue]
      > Québec wrote:
      >[color=green]
      > > setCookie("webJ PD", new Date(exp).toDat eString(), exp)[/color]
      >
      > 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
      > phil.ronanzzz@v irgin.net
      > (Please remove the "z"s if replying by email)
      >
      >[/color]


      Comment

      • Dr John Stockton

        #4
        Re: mac stuck on this script

        JRS: In article <Mfsdd.142444$H 45.2061704@webe r.videotron.net >, dated
        Wed, 20 Oct 2004 07:46:49, seen in news:comp.lang. javascript, Québec
        <Once@WasEno.ug h> posted :
        [color=blue]
        >exp = new Date();
        >exp = exp.setTime(exp .getTime() + (1000 * 60 * 60 * 24 * 365));[/color]

        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.

        Comment

        Working...