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. Currently leading the release of Mobile into Canada for Capital One. I have a strong focus on mobile development, building effective development teams and a drive for rapid prototyping and continuous integration using nearly all SDLCs. When I turn the internet off I focus on my family, random hobbies, and sharing moments in life.

My pseudo provactive thoughts
--> Twitter @coffmanben

Learn About Me
--> Linkedin

Blogs I follow:
  1. Big Nerd Ranch
  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
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
All Content © 2013,

Sign In