Javascript disabled

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eraimondi
    New Member
    • Feb 2008
    • 2

    #1

    Javascript disabled

    Is there a way in asp to check if a client has javascript disabled?
    I know that the object MSWC.BrowserTyp e retrieves a bool value that determine if browser client supports Javascript but not if is disabled
    Thanks in advance.
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    I don't believe that comes up normally. All of the data the browser sends to the server can be listed like this:
    [code=asp]for each x in request.serverV ariables
    response.write x & ": " & request.serverV ariables(x) & "<br>" & vbNewLine
    next[/code]If what you want is not in this list, then it isn't available.

    You could easily do a route function in javascript: send the user an almost script-free version of the page with only a script to redirect to a full version of the page. This way, non-javascript users will stay on the basic page and everyone else goes on to the full page.

    Jared

    Comment

    Working...