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 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    82
    Thanks
    22
    Thanked 0 Times in 0 Posts

    javascript turned off

    It is possible to navigate most of my site without javascript but there are some pages I need to re-direct users away from if they have javascript turned off.

    Please can somebody tell me the best way to do this and the code to use.

    Thanks.

  • #2
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    there are some pages I need to re-direct users away from if they have javascript turned off
    First things first… why?
    What is on those pages that won't be of use or interest to non-js users?

    Depending on the content you're presenting, it may be better to simply notify users of the need for js, rather than redirect those w/o js away from those parts of the site.

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Or make it simple: Either you build your pages to be accessed a way or another by all the users, no matter the javascript enabled/disabled (the best solution) or you build your pages using javascript and don't care about javascript off visitors. A middle way is the worst way, as you must spent too much effort in order to balance the idea.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #4
    Regular Coder
    Join Date
    Jan 2007
    Posts
    213
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Bill Posters View Post
    First things first… why?
    What is on those pages that won't be of use or interest to non-js users?

    Depending on the content you're presenting, it may be better to simply notify users of the need for js, rather than redirect those w/o js away from those parts of the site.
    I am guessing that if he uses a JS navigation then he wants to visitors to still be able to navigate the pages just not with the JS menu, makes sense really
    Matthew Bagley
    Paramiliar Design Studios
    Website Design | Website Development | Search Engine Optimisation (SEO)

  • #5
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Quote Originally Posted by neomaximus2k View Post
    I am guessing that if he uses a JS navigation then he wants to visitors to still be able to navigate the pages just not with the JS menu, makes sense really
    That would indeed make sense, but I don't think that was it.
    It sounded to me that, rather than looking for ways to make the js-oriented content available to non-js users, the OP was seeking a way to prevent non-js users from even reaching js-oriented content.
    i.e. ways to exclude rather than include.


    Until the OP returns to clarify, we're left speculating as to the purpose behind their query.


  •  

    Posting Permissions

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