Side navigation
#10507 closed enhancement (invalid)
Opened October 16, 2011 10:59PM UTC
Closed November 02, 2011 08:08AM UTC
ipad in offline mode and ajax
Reported by: | Arne Goedeke <jquery@smells-like-ass.com> | Owned by: | Arne Goedeke <jquery@smells-like-ass.com> |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | ajax | Version: | 1.7b2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
when using manifest files on iOS devices to save website to your homescreen as an application, safari does a static analysis of all js code. If xhr objects are used, it will refuse to start the app in offline mode. This can be worked around by wrapping all references to window.XMLHttpRequest in eval statements. This makes it possible to start and use the app in offline mode when using jquery.
Attachments (0)
Change History (3)
Changed October 17, 2011 02:25AM UTC by comment:1
component: | unfiled → ajax |
---|---|
owner: | → Arne Goedeke <jquery@smells-like-ass.com> |
priority: | undecided → low |
status: | new → pending |
Changed October 18, 2011 06:00PM UTC by comment:2
If the only solution is to use eval, I don't see this happening in jQuery.
I don't have an iPad, but wouldn't it be possible to do something like [ "XML", "HTTPRequest" ].concat() or something?
Changed November 02, 2011 08:08AM UTC by comment:3
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Thanks for submitting an enhancement. Could you possibly supply us with a test case on jsFiddle (or as an upload given this may require separate local files) demonstrating the issue where scripts using jQuery which are to be added to the homescreen as an application might fail?. Does this apply to all situations where XHR is used or does it analyze to check whether the XHR URL is local or remote?. Thanks for any further information you can provide.