Hi there,
We have a dev site where the login happens on a modal window, that loads a separate include template.
The include template uses a standard EE login form, but upon logging in either of any of of these results happen:
* The login form loads within the modal
* If used a window.top function, the returned page results in an “undefined” page location and login is not completed
* Adding onClick=“window.open(’{path="site_index"}’,‘_parent’) to the submit input field itself results in loading the homepage outside of the modal (i.e., “parent” page) but login is not completed
Method 1:
The submit input field:
<input type="submit" class="myClass" name="submit" value="Sign In">And the JS at the bottom of the include file:
$('.myClass').bind('click', function(event) {
event.preventDefault();
window.top.showMyFunction($(event.currentTarget).attr('href'));
});Method 2:
onClick added to the input field w/o any extra JS:
<input type="submit" class="myClass" name="submit" value="Sign In">Let me know what I may be missing here. Thank you!