Showing posts with label XMLHttpRequest. Show all posts
Showing posts with label XMLHttpRequest. Show all posts

Tuesday, May 21, 2013

Chrome error: Cross origin request are only supported for HTTP

If you are trying to load a XML that is on you local computer you might get and error that looks like this:

Cross origin requests are only supported for HTTP

Use --disable-web-security via the command prompt to remove this error. Watch the video for more details.



Get the files here

Load a XML file using JavaScript in Chrome

If you are trying to load a XML that is on you local computer you might get and error that looks like this:

Cross origin requests are only supported for HTTP

Use --disable-web-security via the command prompt to remove this error. Watch the video for more details.



Get the files here

Sunday, July 8, 2012

Calling a Tweeter JSON web service

The following code allows you to call JSON data from a Tweeter search API.



The output will look like this

NOTE: I could only get this to work in IE9. It would not work in Chrome, Opera, or FireFox. If anyone knows why please let me know. It will not work in IE8