开发者

will disabling javascript in browser affect ajax calls and js functions

i have a doubt

i guess there are some options like disabling javascript in the browser.

if so then ajax an开发者_开发问答d javascript functions wont work isnt it? if so is there any solution? .


YES disabling JS will disable JS... so no AJAX as it's done with JS...

only solutions are server-sided fallbacks.


The solution is what is called progressive enhancement:

  • Make your site work without Javascript, then
  • Add the fancy ajaxy layer on top.

That way, users without Javascript will still get a functional site.


AJAX = Asynchronous JavaScript and XML, so of course ajax and javascript functions won't work. Javascript has to be enabled.


Ajax and jQuery are Javascript, so yes, they're disabled also.although you didn't ask for jQuery but still.

Something to learn about Graceful Degradation


Simple answer: no, they won't work.

And there is no particular solution, only thing you can do is use <noscript> tag and notify the user about his browser settings.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜