Passing info to an iframe in jquery.mobile

Passing info to an iframe in jquery.mobile

I have used the map from the example here

http://demos.jquerymobile.com/1.4.0/popup-iframe/#&ui-state=dialog


If you look at map.html (which is the source of the iframe) it has lat/long co-ordinates

How would I pass these co-ordinates from the parent page?

I have tried lots of things but nothing.

When the parent page loads - it loads the map.html page before I get chance in the creating page javascript to be able to pass in the lat/long

I have also tried in the parent page, when I get the lat/long, tried to invoke the javascript in the map.html

And I have tried adding a text box in map.html, setting it to the new lat/long - this works - but I try to force a onchange event on the tet box - but it won't do that either.

Help!!!