Tech and a few other things RSS 2.0
# Monday, September 13, 2010


Error Readout:
XMLHttpRequest cannot load file: Cross origin requests are only supported for HTTP

Fix:
Host your code on a webserver when working with Dojo and access it through the webserver and not directly on your machine.

Explanation:
I've been ramping up my Dojo skills, by reading the wonderful O'Reilly book above. One thing they forget to explain is most modern browsers won't let javascript traverse your directories when running directly from a folder on your desktop...per say. :) Consequently you need to run that bad boy by accessing it through your very own webserver. It's a big duh when you figure it out as this would be an awesome exploit for some javacript wiener that's up to no good.


(note: I don't like O'Reilly books for learning particular topics, I believe they are only mostly good for reference, and even code references don't vary much from the documentation, but Amazon readers rated this one as one of the best so I picked it up),

Monday, September 13, 2010 9:17:39 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
dojo | javascript
Navigation
About the author/Disclaimer
        

My name is Ben Coffman. I like to build things: programs, programming teams, programming departments and maybe one day a company with lots of programmers. When I turn the internet off I focus on my family, random hobbies, and sharing moments in life.

Blogs I follow:

1. 2andahalfd.com

2. Jeff Lamarche

3. Scott Hanselman

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Ben Coffman

Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
All Content © 2012,

Sign In