Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can a HTML/JS page sense if a browser won't work with it ??

    Is there some standard method of checking with the brower for JS compatability ??

    I have the following that won't work on IE 5.x in Windows 2000 Pro

    "window.location='navpoint.php?user_id=1234&"

    nothing happens at all, do I need the href in there ??

    Confused

    Chris

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    yorkshire, uk
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts
    window.location sets the whole of the window's address bar. you usually have to put the whole url in there i.e.

    window.location='http://sitename.tld/navpoint.php?user_id=1234&'

    ok?
    neil.c

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i'll try it !!

    thanks Neil !! seems reasonable.

    thing is it's worked in alpha testing on 6 different browsers and configuratons.

    dunno,
    Chirs

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    Western US
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If the user has turned off javascript it will not matter the format it is in. You could do this though
    Code:
    <noscript>
    <meta http-equiv="REFRESH" content="0; url=navpoint.php?user_id=1234&">
    </noscript>
    You might want to check that trailing &... it seems that has caused be problems before, but I think that was in Netscape.

    ShriekForth

  • #5
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ah ha!

    i'll put that in everywhere. sanity check:

    in IE. In InterNet Settings. under advanced : MicroSoft VM / JIT Compiler for virtual machines enabled
    ...this does not effect JScript -- right ??

    Also, what aer the common settings for Java Script enabled on IE ??

    What I know :
    Have security set to medium or low for InterNet security setting.

    ... any other gotchas ??
    Chris

  • #6
    Regular Coder
    Join Date
    Jul 2002
    Location
    Western US
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Scripting --> Active Scripting is what will control the javascripts execution.

    At a Medium setting or lower, javascript will be on. Medium is default for the "internet zone", I think... At High, scripting will be off, along with pretty much everything else. I found this out when my redirect for browsers not using cookies would not work. The client forgot to mention that he had disabled cookies by moving the slider to High, I assumed he just did it via the custom options.

    ShriekForth

  • #7
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    u are the man.

    i believe this is my problem also.

    Chris


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •