jQuery UI Dialog with iFrame, link to reload parent -
i have page loads jquery ui dialog iframe in it. iframe has login form, want link in iframe says "click here if member" can click redirect parent different page (and thereby close modal).
right links in modal (and in iframe) redirects iframe)
here code calls modal iframe in it:
$(document).ready(function() { $("#modaliframeid").attr("src","http://site.com/wordpress/register-now/?the_email_address=<?php echo $the_email_address; ?>"); $("#divid").dialog({ autoopen: true, modal: true, closeonescape: true, draggable: false, resizable: false, dialogclass: 'no-close', height: 570, width: 500, title: 'sign up', close: function(event, ui) { window.location.href = window.location.pathname; } }); });
this within wordpress framework , page called above has form in (that works) , need have link redirect parent page.
any thoughts? thanks! chris
i guess old=school "lo-tech" way 1 forget. found thread: stack overflow reminded me target="_top" needed...and did. tested in ff , android , works in both (wider testing expected work too).
thanks
Comments
Post a Comment