I'm using jquery mobile pop-up with an iframe inside. In my case the content of the iframe could do none, one or more page submit. The problem is that when I try to close the popup without doing a iframe content submit, everything goes ok, but when I do a submit into the iframe and then I call popup close, the content of the opener goes into iframe.
Seems like if iframe content loses information about his parent.
In my case there is a button that has an onclick function that do something and in the end opens the popup. The part that opens the popup is "function called on open": it only does click on a tag <a> with data-rel="popup" and inserts the iframe tag into a div present in my page
I load into the iframe src a jsp page. In that page there is a form with some inputs and two buttons. One button does form submit and the other does parent.$("#mobilePopup").popup("close"); with an onclick funcion.
The form when is submitted reloads the same page into iframe.
In jsfiddle is there the possibility to load another jsfiddle page into iframe src? In that case it will be my complete example. Later I'll try to do that