Contact Us Forum Rules Search Archive
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 01-15-2004, 01:46 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Falmouth, UK
Posts: 37
harrythehound RepRank 0
Default Java Script Problem - the sequel

After posting my first stupid question and getting such a quick response, I thought I'd try again.

This time I'm having problems with a pop-up window java script on my home page:

http://www.min-eng.com

it's only supposed to pop up once ever for each visitor, but it pops up every time.

Why?!?

Thanks for any help....
__________________
www.min-eng.com
Reply With Quote
  #2 (permalink)  
Old 01-15-2004, 03:46 PM
wclew's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: Iowa
Posts: 196
wclew RepRank 0
Default

Harry,
I just looked at your site and it worked correctly for me. I only have IE 6.0 on this machine, however.
Good luck,
Dennis
__________________
"Go sell crazy someplace else, lady! We're all stocked up here."
- Jack Nicholson in "As Good As It Gets"

Affordable Iowa Custom Web Design
Reply With Quote
  #3 (permalink)  
Old 01-17-2004, 12:06 AM
Nargule's Avatar
WebProWorld Member
 

Join Date: Nov 2003
Location: Gainesville, FL, USA, Earth, MilkyWay
Posts: 84
Nargule RepRank 0
Default pop-up

The pop-up opend only once for me in IE6 and Netscape6 on WinXP.

When you are viewing the page, are you looking at it from the server or locally on your hard drive?
__________________
Tom Corwine

Please review my site at http://www.santaslane.com?source=WebPro
and be sure to check out http://www.corwine.tv <--- It's fixed now.
Reply With Quote
  #4 (permalink)  
Old 01-17-2004, 02:41 AM
mikmik's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 3,406
mikmik RepRank 1
Default

Make sure that cookies are allowed, and not being deleted between sessions either.
If browser is not 'cookie friendly', then the popup will launch every time you visit, because it uses a cookie on the client browser to remember visits.

I just checked, and the script works in IE6. It only reappears if I delete the cookie. Your script is working properly!
__________________
What I am is what I am, are you what you are, or what.
Eddie Brickel
Reply With Quote
  #5 (permalink)  
Old 01-18-2004, 12:20 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Hi Amanda,

Mik made the important point about the visitor's browser being able to accept cookies, if they don't, then the popup will appear every time they visit your homepage.

I think the script could be improved; after the popup loads, I click the link in the popup, and a new window (call.html) opens in a new location. So I now have three separate windows open. The homepage, the popup, and the target page! :O

A script I came across on simplythebest.net seems to work a lot better.
"An auto close popup window script. The popup window automatically closes once you click on a link. The script shows the new page in the main window."

I realise you've chosen to use a popup to attract people's attention, but remember a lot of site visitors get extremely irritated by popups.. especially if they're loading automatically! - hence the popularity of popup blockers. So possibly the best solution would be to have a "feature" spot on your homepage to highlight particular events.

Hope that helps,

Paul
Reply With Quote
  #6 (permalink)  
Old 01-19-2004, 10:35 AM
WebProWorld Member
 

Join Date: Aug 2003
Location: Falmouth, UK
Posts: 37
harrythehound RepRank 0
Default

Thanks everyone

I have a sneaky suspicion that my boss (who reported that the ad kept popping up all the time)probably has cookies blocked. I'll have to check his computer for him.

Paul - that looks like a great script, and just what I need. Thanks a lot.
__________________
www.min-eng.com
Reply With Quote
Reply

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



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


Search Engine Optimization by vBSEO 3.2.0