ajax - XHR Requests only start when tab is focused on IOS 7 Safari -


following use case:

  1. user clicks button on tab 1
  2. app opens popup tab 2 (about:blank)
  3. severeal xmlhttprequest occur between app on tab1 , server
  4. app uses info create form post request tab1 target=tab2 (action origin, eg. paypal)
  5. tab 2 loads form response
  6. etc

this works pretty anywhere. on ios safari 7 seems not. on ios safari 7, popup opens stays on about:blank, because xmlhttprequest doesn't start because tab1 @ point no longer focused (the browser shows tab2). if user switches tab1, execution resumes , works. (but that's not intuitive).

i cannot create xmlhttprequest before opening popup, because popup has created direct consequence of user action or end in popup blocker. therefore flow "user click starts request, request callback opens popup" not work.

is there way around limitation other restructuring whole app (eg. loading http requests popup)?


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -