ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Modal login & "undefined" result page or incompleted login

August 20, 2012 3:49am

Subscribe [2]
  • #1 / Aug 20, 2012 3:49am

    ejaedesign

    240 posts

    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!

  • #2 / Aug 21, 2012 6:09am

    ejaedesign

    240 posts

    Hey guys,

    Just a gentle nudge here to see pick your brains over this one. Thanks!

  • #3 / Aug 21, 2012 4:35pm

    Shane Eckert

    7174 posts

    Hello ejaedesign,

    I am sorry to hear you are running into this problem.

    What version of ExpressionEngine are you currently running?

    Can you show me the entire template? That would help.

    Cheers,

  • #4 / Aug 24, 2012 4:34am

    ejaedesign

    240 posts

    Hi Shane,

    I just tried to send you access to the site via PM, but it says the PM inbox is full. Any other way to send the code/access?

    Jae

  • #5 / Aug 24, 2012 3:42pm

    Shane Eckert

    7174 posts

    Hey ejaedesign,

    Can you just post the template code in here?

    Thank you,

  • #6 / Aug 27, 2012 3:12am

    ejaedesign

    240 posts

    Hi Shane,

    We’ve found a workaround. Thanks!

  • #7 / Aug 27, 2012 2:58pm

    Kevin Smith

    4784 posts

    Great, Jae! Let us know if there’s anything else we can help with.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases