noscript and ajax?

Discussion in 'PHP' started by vetrivel, Oct 22, 2009.

  1. #1
    Hi,
    Will ajax work if javascript is disabled in the browser ?

    How to check it?

    what is the use of noscript?

    What will you do if javascript is disabled in the browser?
     
    vetrivel, Oct 22, 2009 IP
  2. donmarcos

    donmarcos Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If javascript is disabled on the client's browser , then you will have to relay on simple hidden fields and server side validation if that is a form, other wise anything dynamic on the page will not work as well as it should.
    I guess it all depends on the functionality that you have at that point
     
    donmarcos, Oct 23, 2009 IP
  3. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #3
    You may check if javascript is enabled at client side by creating a cookie with javascaript then test the document.cookie with php if it exists. Noscript tag is used to display alternative text snippet to those visitors who have javascript disabled.
    Thanks
     
    Bagi Zoltán, Oct 23, 2009 IP