Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10507 closed enhancement (invalid)

ipad in offline mode and ajax

Reported by: Arne Goedeke <jquery@…> Owned by: Arne Goedeke <jquery@…>
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.

Change History (3)

comment:1 Changed 8 years ago by addyosmani

Component: unfiledajax
Owner: set to Arne Goedeke <jquery@…>
Priority: undecidedlow
Status: newpending

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.

comment:2 Changed 8 years ago by jaubourg

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?

comment:3 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

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!

Note: See TracTickets for help on using tickets.