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
In jsfiddle is there the possibility to load another jsfiddle page into iframe src?
even I dont have clue about that...
will you be able to share whats in the form(jsp) not whole... just <head> and <form actions method etc..>(not all input fields.. just those buttons.....submit and popup close) ....
1) open popup, click on close popup button -> ok, regular popup close
2) open popup, click on submit form (and then it reloads iframe src with same page), click on close popup button -> ko, the content of the page that opens the popup goes into the iframe src (!!)