making json/jsonp xhr requests on the file: protocol
I'm writing a javascript app that will be hosted on a file: protocol (ie: the application is just a folder of html, css, and javascript sitting someplace on my hard drive). When I try normal XHR requests they fail because of the same origin policy afaict. So my question is this, what's the best way to request json/jsonp files with an app as described above? Note: So far I've got all of my jsonp files using a hard-coded callback functions, but I'd like to be able to use dynamic callback functions for these requests.. is there a way to do this? This is kind of a hatchet job, but it will get you