javascript - jQuery $.get doesn't work for "local" files in Phonegap or Mobile Safari -


i have templating system trying use phonegap app utilizes jquery , $.get() function.

$.get('templates/' + name + '.html', somefunctionhere(){});

when run app server on localhost , view through chrome or safari templating system works perfectly.
when run app through phonegap on ios simulator, doesn't work. no file returned , "somefunctionhere()" doesn't run.
important note: when use mobile safari under ios simulator view page served localhost not work.

to me, sounds webkit browser mobile safari , phonegap use won't allow access local files? feels incorrect that's how looks.

has encountered problem before, or know of way around it?

i think safari not support async call on default , need turn off async mode in order worked in safari.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -