Reputation:
I just started a new project with the Dojo toolkit, and no sooner did I drop my dojo.js script tag in than firebug started telling me
Could not load 'dojo._firebug.firebug'; last tried './_firebug/firebug.js'
I know dojo has a reputation for bad debugging messages, but this is ridiculous....
If anyone has any ideas about this I would appreciate it.
Upvotes: 4
Views: 2924
Reputation: 3566
I've run into this issue on Firefox, if you access a local HTML page that is not being passed through a server, Firefox will give you errors because if does not allow directory traversal.
Other browsers allow local directory traversal though.
The best solution is to run the page through a server (local or remotely) since a server allows this type of directory traversal to occur.
Upvotes: 1
Reputation: 19181
Dojo.js
should be in the root/Dojo
folder.
It should work that way.
Upvotes: 0
Reputation: 1
Like people have said the error comes when firebug.js
isn't there. I got the same error but it was because I created a custom build but left my DjConfig
value isDebug
to be true
.
As soon as I changed it to isDebug:false
dojo quit trying to load firebug.
Upvotes: 0
Reputation: 3411
It is possible to work without a web server. go through the below mentioned steps.
http://www.dojotoolkit.org/support/faq/why-does-dojo-fail-load-file-urls-firefox-3
Set Security.fileuri.strict origin policy to false and retry.
Upvotes: 2
Reputation: 86216
Why not start with the skeleton code? When in doubt, go with the beginner's tutorial.
Upvotes: 1
Reputation: 881695
You need to put it on a web server, per this thread -- probably a local web server that only serves to your own machine, of course, for development purposes.
Upvotes: 4