Ajax without JavaScript

后端 未结 11 2625
Happy的楠姐
Happy的楠姐 2020-12-10 13:18

As JavaScript can be disabled in the browser by the user, I wonder if there is any way of developing an Application which uses Ajax but it doesn\'t use Javascript, so even i

相关标签:
11条回答
  • 2020-12-10 13:21

    Well, you can't literally use Ajax without Javascript, since the "J" in Ajax is for "Javascript"

    The best you can do is test for Javascript functionality and load a non-Ajax version of the page instead.

    0 讨论(0)
  • 2020-12-10 13:22

    As others said, AJAX is JavaScript. But there are Alternatives (but each one requires plugins to be present)

    • Silverlight (works as Moonlight on Linux too!)
    • Flash
    • Java

    But be sure, if somebody deactivated JavaScript, he has these deactivated as well. I believe most people don't deactivate JavaScript because nowadays it is very safe and performant and doesn't annoy very much in contrast to other plugins. Besides, most modern websites require JavaScript.

    You can also use server sided scripting like PHP and then use HTTP-META-REFRESH to refresh your page, this can in some cases simulate cases where you would have used JavaScript otherwise.

    But it greatly depends on what you are trying to do, it would be nice to hear that from you.

    0 讨论(0)
  • 2020-12-10 13:29

    AJAX actually means Asynchronous Javascript And Xml -- note the Javascript part.

    You cannot use Ajax without Javascript : HTML by itself is not dynamic : you need Javascript for that.


    (Yeah "Ajax" means more than just AJAX -- but the idea is the same)

    0 讨论(0)
  • 2020-12-10 13:29

    Dude ! AJAX is Javascript.

    0 讨论(0)
  • 2020-12-10 13:30

    actually, not sure if this helps or not, if it's sending data that you need through GET, you can use a simple image, like:

    <img src="/myfile.php?a=log&id=myuser&page=index.php" />
    

    I would not go calling this an AJAX application though :D

    0 讨论(0)
  • 2020-12-10 13:32

    Ajax = Asynchronous JavaScript And XML. You can't have Ajax without JavaScript!

    0 讨论(0)
提交回复
热议问题