Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 23rd Dec 2009, 04:38 PM   #1
Advanced Warrior
War Room Member
 
Paul Hancox's Avatar
 
Join Date: 2003
Location: United Kingdom
Posts: 938
Thanks: 459
Thanked 648 Times in 276 Posts
Blog Entries: 2
Default
Any Way To Prevent My Exit Pop Up Triggering With Aweber Form?
Share on: 
fb share twitter share gplus share more share

Hi Folks

I'm testing Ultimate Exit Pop Up, which pops up a Javascript box whenever a visitor exits a page. All fine and good, except when they fill out an Aweber form and press the button, the exit pop up comes up, preventing the form from being submitted!

The instructions for Ultimate Exit Pop Up tell me to add onclick="exit=false ;PreventExitPop=true" to any link where I don't want the pop up to activate, ie.

<a href="order.html" onclick="exit=false ;PreventExitPop=true">CLICK HERE TO ORDER</a>

... but here's the problem. I'm using Aweber's javascript code for generating opt-in forms, which look like this:

<script type="text/javascript" src="http://forms.aweber.com/form/11/123456789.js"></script>

So is there any way of using this Javascript, and at the same time prevent the exit pop up?

(I think the Javascript condition PreventExitPop=true will stop it from activating, but I don't know how to use that in conjunction with Aweber's javascript.)

Any help would be much appreciated!

PresellContent.com - How to sell without "selling"
Paul Hancox is offline  
Unread 23rd Dec 2009, 10:03 PM   #2
VIP Warrior
War Room Member
 
ereadergold's Avatar
 
Join Date: 2008
Location: Montreal Canada
Posts: 2,390
Thanks: 1,017
Thanked 836 Times in 572 Posts
Blog Entries: 1
Default
Re: Any Way To Prevent My Exit Pop Up Triggering With Aweber Form?
Share on: 
fb share twitter share gplus share more share

Hi Paul

I don't think you'll be able to do this if you use AWebers JavaScript form. Your script needs to be notified when the submit buttons "onclick" event is raised, and using the AWeber hosted script prevents that from happening.

I would try using the "Raw HTML" option instead. The code is more cumbersome, but it will allow you to make your own modifications.

The code is hard to read as the stylesheet information for the form you choose is embedded in it. Look for the line that starts with
Code:
<input name="submit" class="submit" type="submit" value="Submit"/>
and try inserting your code there.

Hope this is of some help, all the best to you for the holiday season.

Bill
ereadergold is offline  
The Following 2 Users Say Thank You to ereadergold For This Useful Post:
Unread 24th Dec 2009, 06:54 AM   #3
Advanced Warrior
War Room Member
 
Paul Hancox's Avatar
 
Join Date: 2003
Location: United Kingdom
Posts: 938
Thanks: 459
Thanked 648 Times in 276 Posts
Blog Entries: 2
Default
Re: Any Way To Prevent My Exit Pop Up Triggering With Aweber Form?
Share on: 
fb share twitter share gplus share more share

Thanks, Bill. I couldn't see an easy way of doing it... so I may have to resort to the HTML version. Thanks for commenting.

PresellContent.com - How to sell without "selling"
Paul Hancox is offline  
Unread 13th Feb 2010, 04:04 PM   #4
BlackHat Warrior
War Room Member
 
supermail's Avatar
 
Join Date: 2010
Location: San Francisco, California
Posts: 56
Thanks: 11
Thanked 4 Times in 4 Posts
Default
Re: Any Way To Prevent My Exit Pop Up Triggering With Aweber Form?
Share on: 
fb share twitter share gplus share more share

Worked for us... Thanks
supermail is offline  
Unread 27th Oct 2011, 09:30 AM   #5
killerresultssolos.com
War Room Member
 
Matthew Barnett's Avatar
 
Join Date: 2011
Location: UK
Posts: 105
Thanks: 119
Thanked 45 Times in 38 Posts
Default
Re: Any Way To Prevent My Exit Pop Up Triggering With Aweber Form?
Share on: 
fb share twitter share gplus share more share

Hi Guys,

I'm trying to figure this one out too. Supermail - looks like you have done this. I've found the appropriate line as suggested, what exactly should the line look like with the pop up code added - I've tried it most places and it doesn't seem to work

Thanks

Matthew

Matthew Barnett is offline  
Unread 28th Oct 2011, 04:08 AM   #6
killerresultssolos.com
War Room Member
 
Matthew Barnett's Avatar
 
Join Date: 2011
Location: UK
Posts: 105
Thanks: 119
Thanked 45 Times in 38 Posts
Default
Re: Any Way To Prevent My Exit Pop Up Triggering With Aweber Form?
Share on: 
fb share twitter share gplus share more share

Fixed it! I was missing a "

The line of code when complete should look something like this:

<input name="submit" class="submit" type="submit" value="Submit" tabindex="502" onClick="javascriptreventExitPop = true" />

If you just cut and paste the OnClick bit from the text file that comes with the current version it is missing the final " which is why mine wasn't working.

It is now though, and it works brilliantly.

Example of it in action is here:

http://www.cashvolcano.info/free

Matthew Barnett is offline  
Closed Thread


Bookmarks

Tags
altering, aweber, behaviour, exit, form, javascript, pop, prevent, triggering


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:39 AM.