“dojo is not defined” - Firefox 3.5 issue?

一个人想着一个人 提交于 2019-12-24 03:29:15

问题


Please take a look at this code: http://3wcloud-com-provisioning-qa.appspot.com/testAjaxDojo Just tab off the "domain" input field to try to make the Ajax run. (Note: the test Ajax web service always sends back the same message, it pretends to check if domain is available but it really doesn't).

When running in Firefox 3.5, I get "dojo not defined" on the dojo.xhrGet statement. It works fine in IE7 and Chrome browsers, and one friend tested on Firefox 3.0 and it worked.

1) Is there something wrong with Firefox 3.5 not properly getting the dojo javascript from the CDN? Possibly a caching issue?

2) Do you Dojo gurus know of this problem? Is it something that has already been reported to Firefox?

Thanks, Neal Walters

Update: 9/1/ afternoon - I have uninstalled and re-installed Firefox 3.5.2 (but I kept my profile settings), and got same problem. I'm on Windows Vista Ultimate.


回答1:


Finally found the problem. It was the add-on called "No-Script". Even though I had set No-Script to allow scripts globally, something in that tool was causing the issue. I upgraded to new version of No-Script and still had problem. If I disable the add-on (from the Tools/Add-ons screen), then Dojo loads perfectly from the CDN and life is good again.

I probably lost 6-8 hours on this stupid issue. Hope this posts saves someone else the time. Please "vote-up" the answer if it does.




回答2:


As I stated in my comment, on Firefox 3.5 (mac) works fine. Try to do the following on your Firefox browser, insert the dojo library url in the url bar:

http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js

Usually it helps to solve any cache problems and forces Firefox to fetch the file.

If it still doesn't work, just store dojo in your server and use it locally.




回答3:


It's working fine here with NoScript enabled. I just needed to allow both "3wcloud-com-provisioning-qa.appspot.com" and "ajax.googleapis.com".



来源:https://stackoverflow.com/questions/1362444/dojo-is-not-defined-firefox-3-5-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!