I want to load some data via an AJAX GET from a local HTML file.
I can see the request being processed, the response ist sent to the client, but the success callback is never fired – on the iPhone that is.
I am creating a html file in the applicationDataDirectory, which should be treated as a local file, actually, to prevent any cross-domain issues.
Anyway, the following code works perfectly in Simulator, on the device the request is sent and a response is received, but the callback is never processed.
(the code has been reindented for legibility, the testhtml string is all in one line)
Has anybody got any ideas?