WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-12-2007, 04:26 PM
Dinghus Dinghus is offline
WebProWorld Pro
 

Join Date: Sep 2006
Location: Hawai'i
Posts: 164
Dinghus RepRank 0
Default Manipulating Popups

A client wants to have a popup window that thank a person for visiting when they leave the site UNLESS they click on the SUBMIT button for the purchase form.

I've tried using JS with the button to disable the popup but seem to be missing something, like maybe it can't be done.

Anybody know how to do this?
Reply With Quote
  #2 (permalink)  
Old 06-12-2007, 04:45 PM
DaveSawers's Avatar
DaveSawers DaveSawers is offline
WebProWorld Veteran
 

Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 333
DaveSawers RepRank 1
Default Re: Manipulating Popups

Anything can be done... Even naff features like a thank you message!

Are you using the "onunload=somefunction() in the body tag for the page?

Instead of using the SUBMIT button to submit the form directly, fire off a Javascript function instead that sets a flag and then submits the form. Then use the flag in your unload function to bypass the display of the message. You will need to do some thinking about how to cope with users who have Javascript disabled, otherwise, they won't be able to submit the form.
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
  #3 (permalink)  
Old 06-13-2007, 06:57 PM
DrTandem1's Avatar
DrTandem1 DrTandem1 is offline
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default Re: Manipulating Popups

If someone wants to leave the site, they don't want to see a pop-up. They want to leave. The best "thanks" you can give them is not to screw with their navigation.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #4 (permalink)  
Old 06-13-2007, 08:16 PM
Dinghus Dinghus is offline
WebProWorld Pro
 

Join Date: Sep 2006
Location: Hawai'i
Posts: 164
Dinghus RepRank 0
Default Re: Manipulating Popups

Well, as much as you may believe people want to leave a page unmolested, the stats prove you wrong. Popups of all sorts actually work to bring in revenue. Why else do you think the porn industry uses them so much? If they didn't work, nobody would use them.

However, saying "thank you, please come again" is the same as having a person standing at the door to the store saying the same thing.

Now the reason many are going to exit popups vice entrance popups is the PPC industry which won't allow landing pages that open a popup onload. However, they don't stop popups created other ways. So the industry is shifting and we have to keep up or lose out.

Besides. If a customer says "make me a popup" and they are paying me for it and it is not illegal, immoral or whatever, then who am I to say "no"?

Anyway, what I'm trying to do is exactly that. The button is clicked to go to the checkout and it calls a javascript that redirects to the desired page. It also tries to block the popup. I'm almost to the point of having it close the popup as soon as it opens.
Reply With Quote
  #5 (permalink)  
Old 06-14-2007, 08:12 AM
DaveSawers's Avatar
DaveSawers DaveSawers is offline
WebProWorld Veteran
 

Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 333
DaveSawers RepRank 1
Default Re: Manipulating Popups

Can you link to or post the code you are using? Hard to debug something that should be quite simple to fix without seeing anything.
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: manipulating, popups



Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manipulating images with code like PHP. kgun Graphics & Design Discussion Forum 0 10-16-2006 06:37 PM
Is google manually manipulating seach results? scanmonkey Google Discussion Forum 9 07-11-2006 07:06 PM
Google manipulating SERPs divinewrite Google Discussion Forum 1 08-24-2005 07:43 PM
Help needed with my Popups steveo Web Programming Discussion Forum 1 07-12-2005 05:58 PM
Google manipulating search results in favor of Adwords imagolfer Google Discussion Forum 60 04-30-2004 03:46 AM


Search Engine Friendly URLs by vBSEO 3.0.0