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
Post a Comment