Dojo Is Not Defined Error On Firefox
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta
Uncaught Referenceerror Dojo Is Not Defined
Discuss the workings and policies of this site About Us Learn require is not defined dojo more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us dojo.require is not a function Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you,
Dojo Is Undefined Error In Ie
helping each other. Join them; it only takes a minute: Sign up dojo tutorial: dojo is not defined up vote 0 down vote favorite I want to get startet with dojo. Therefore I am useing their tutorials: http://dojotoolkit.org/documentation/tutorials/1.8/hello_dojo/ The simplest tutorial displays this page
Hello
Dojo Multipledefine
I now open the page (tried both localy and hosted version on their page). And when I write dojo.query("h1") in my firebug console I get the message: ReferenceError: dojo is not defined Please help javascript html dojo share|improve this question asked Jan 30 '13 at 7:26 RCK69 2311819 add a comment| 4 Answers 4 active oldest votes up vote 1 down vote accepted are your sure your source for dojo is in "//ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.js" because your folder structure look like in googleapis folder which is "http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.js" share|improve this answer answered Jan 30 '13 at 7:31 user1875420 394 2 That is called a protocol-relative URL and will work just fine. No error there. –Christofer Eliasson Jan 30 '13 at 7:33 1 When I use the full url and replace line 10 and 11 with: script function init() { alert("Dojo ready, version:" + dojo.version); // More initialization here } function slide() { // The piece we had before - change our innerHTML dojo.byId("greeting").innerHTML += ", from " + dojo.version; // Now, slide the greeting dojo.fx.slideTo({ top: 200, left: 300, node: dojo.byId("greeting") }).play(); } // New: Require in the dojo.fx module dojo.require("dojo.fx"); // Remember, dojo.ready waits for both the DOM and all dependencies dojo.ready(slide);