[Pro] Spawn New Window - Trigger Close?

This question pertains to the SNW that can be accessed by clicking the “Get Started Form” link in the middle of the paragraph.

Is there a way for me to get the “pop-up” window to close when the Submit button is clicked?

Currently, the Thank You/Success page opens in the “pop-up” window. I would much prefer to have the “pop-up” close upon Submittal and the Thank You/Success page open in the original, full window.

I tried applying “javascript:window.close( )” to the text in the Submit button, but I’m guessing this button can only perform a single function since this did not do the trick.

Any advice appreciated…

Thanks,

Aaron

www.appliedcognistics.com/i’m_ready.php


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you have an actual daughter window (full window with close button) rather than the iPad-friendly overlay format, then you need to do the following:

In the form setup dialog for the page that is appearing in the daughter window, click on the Extended button and click New in the sub-dialog. Add the following pair:

  • Name: onsubmit
  • Value: window.opener.location.href=‘thanks.html’; window.close()

That should work. If you use the iPad-friendly format, then you don’t need to do anything – just make sure your form submission points to the thanks page.

If you’re using the PHP Feedback Form Action, then you may have an issue with the daughter window technique, because it will always redirect to the thanks page even if an error is detected. I’m not sure what the work-around would be. Ditto if you’re using the iPad-friendly (overlay) technique, because the back button from the error page will take you to a page without the form (the default state of the page when it loads).

Walter

On Sep 17, 2012, at 4:05 PM, Aaron Corey wrote:

This question pertains to the SNW that can be accessed by clicking the “Get Started Form” link in the middle of the paragraph.

Is there a way for me to get the “pop-up” window to close when the Submit button is clicked?

Currently, the Thank You/Success page opens in the “pop-up” window. I would much prefer to have the “pop-up” close upon Submittal and the Thank You/Success page open in the original, full window.

I tried applying “javascript:window.close( )” to the text in the Submit button, but I’m guessing this button can only perform a single function since this did not do the trick.

Any advice appreciated…

Thanks,

Aaron

www.appliedcognistics.com/i’m_ready.php


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I do have the iPad Friendly selection enabled, and the Thanks Page is in the “Divert To Page” setting for Submit.

I am using the PHP easiForm actions. The error detection message shows up in the new window. Do you think this is the reason the Thanks Page does as well?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I do have the iPad Friendly selection enabled, and the Thanks Page is in the “Divert To Page” setting for Submit.

I am using the PHP easiForm actions. The error detection message shows up in the new window. Do you think this is the reason the Thanks Page does as well?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Sep 17, 2012, at 6:10 PM, Aaron Corey wrote:

I do have the iPad Friendly selection enabled, and the Thanks Page is in the “Divert To Page” setting for Submit.

I am using the PHP easiForm actions.

Never used these.

The error detection message shows up in the new window. Do you think this is the reason the Thanks Page does as well?

Yes. To get the thanks page into a whole window, you’re going to need to set the form (on the daughter page) to have a target of _top. You’ll probably need to use the Extended dialog for this.

This will also force the error page into the whole page. If you like having the error page appear in the little iframe that the SNW Action adds, then you could add my Frame Buster Action to the thanks page. The page will briefly load into the iframe, and then it will take over the entire page.

http://actionsforge.com/actions/view/216-framebuster

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, Walter. I’ll give it a shot.

(sent with webmail disabled…)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, Walter. I’ll give it a shot.

(sent with webmail disabled…)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Alas, doubled again. Maybe it’s Outlook – wouldn’t put it past Microsoft…

Walter

On Sep 17, 2012, at 10:13 PM, Aaron Corey wrote:

Thanks, Walter. I’ll give it a shot.

(sent with webmail disabled…)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options