page 1: get Google API lat & long; (dialog) link to page 2 (loaded via Ajax)
page 2: PUT to 'foobar' URL; 'foobar' server method will redirect back to page 1
*now, back in page1, the Google API lat & long don't get loaded anymore
I approached this issues from 2 sides:
1. Tried to see why the Google API lat & long loading event is not fired. I tried putting it in many different events: pageshow, pageinit, ready, etc. Nothing worked after the redirect from 'foobar' happened. I abandoned this one, even though I would be curious why it doesn't work.
2. When 'foobar' redirects to page 1, I tried to fully reload page 1, so that it will reload the Google API lat & long. So, in page 2, the link to 'foobar' had 'data-ajax' = false. To my surprise that didn't work. I suspect that page 1 is still loaded through Ajax. I added a 'data-url' tag to page 1, but that didn't do anything... mostly because I don't understand how 'data-url' is supposed to work.
I was able to make it work by adding 'data-ajax' = false and target='_self' to the link from page 2 to 'foobar'. But I really hate that I don't understand why 'data-ajax' = false by itself doesn't work.
I apologize for the long explanation, but did anyone come across this?