开发者

Dojo code not loading in Firefox

I am attempting to reuse some open source code that exists at http://code.google.com/p/earth-api-samples/source/browse/trunk#trunk%2Fdemos%2Fdom-tree. I copied the code, including the javascript file included at this same location, and when i run开发者_运维问答 it, it runs great in ie 8.0. Will not run in 9.0 for some reason. But my real problem is that it will not run in FireFox. What gets me, is that there is a demo of this code online, and it runs just fine in Firefox. I cannot see a difference at all in it. This code will take me a long ways towards completing a project i am working on, and so any help would be very much appreciated! The Demo is at http://earth-api-samples.googlecode.com/svn/trunk/demos/dom-tree/index.html.

Thank you!!!!!!


If you're trying to see the demo in a local folder in your computer, it won't work. Most of the time Dojo code and respective demos requires the page to be loaded from a server. I don't know exactly why this happens (because javascript runs locally right?), but it is so.

If you want to check, test and modify the code locally, do it using a local server setup, such as XAMPP (in case you've never used it before, it's really easy to setup, especially in Windows).

To run Dojo code in IE9 make sure you use the latest 1.6.1 version; previous versions won't work very well, or at all.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜