Popup Issue

J

Jim Cheshire

JCO said:
I have a script that creates a popup window when a person views that
page. Works when I use Preview, but not on the server.

What can cause a popup to work fine using the preview mode but does
not work when you update it to the server?
http://www.dfwtejanos.com/Tournaments/Tournaments.html
Thanks

JCO,

You might want to check out JIMCO Software Spawn from my site as an
alternative.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com
http://www.jimcoaddins.com

The premiere add-in and software source
for Microsoft FrontPage.
 
M

Mark Fitzpatrick

It seems to work fine. Or rather, I should say that it seems as if it is
working because I get a notification that my browser has blocked the popup.
If you're using the Preview mode of FP that could explain it since the
preview mode of FP is an embedded IE browser and may not enable full
functionality that enables the pop-up blocking that's available with the
recent XP Service Packs.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
J

Jim Cheshire

Mark said:
It seems to work fine. Or rather, I should say that it seems as if it
is working because I get a notification that my browser has blocked
the popup.

Ahhh... I didn't even notice the blocked pop-up. I saw a JavaScript error
on the page and assumed that it was related to the pop-up.

JCO, if you don't spawn a pop-up onload, the Windows XP pop-up blocker won't
intercept it.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com
http://www.jimcoaddins.com

The premiere add-in and software source
for Microsoft FrontPage.
 
J

JCO

Thanks both of you for your input. And I do use your (Jimco) Spawn in many
places.
I simply wanted this particular popup to occure on when you go to that page.
This popup stays up for 10 seconds then automatically closes.

I'm not sure how to add it as an "on load"???
I disabled my popup blocker to test this. I'm not sure why it is not
working still (yet you guys seem to get it).
 
J

JCO

Disregard my last post.
My firewall seems to be preventing it. Now it is working, however, the
popup seems to happen behind the website (page).

What causes that?
What can I do to have it popup in front?
Does it popup in front or in back for you guys?
 
M

Mark Fitzpatrick

When I allow pop-ups, it displays in front quickly, then gets shoved behind.
Not sure exactly why this would happen, but it seems that a lot of the
pop-ups nowadays are doing this for me.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
J

JCO

Are you saying that this is out of my control. Seems that I should be able
to control that as part of the website design. You comments suggest that it
is not the website designer that determines if the popup is in front or
back?
 
J

JCO

I understand. Interesting how things evolve.
Maybe I should rework the whole thing. Should be easy enough to do.
Thanks


MD Websunlimited said:
Hi JCO,

The pop up is working however is blocked by the popup blocker for
unsolicited popups, i.e., clicking on a link that pop up a window
 
C

cookoonest

I had same problem and then found this script which seems to stop popup from
going to the back. Give it a try.

Put between <head> tags.

<script type="text/javascript" language="javascript">

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit
http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

</script>


Put in <body> tag.

onLoad="NewWindow('http://www.yourpopup.htm','popup','475','410','center','front')"

You can change width and height.

Don't know much about Javascript but it works in both IE and Firefox.
 
A

Andrew Murray

Onload goes in the <body> tag. It basically is saying "when this page
loads, make this window popup and load this html page".....

But the majority of fire walls etc block these nowadays (especially since
SP2 in windows xp) because sites use these "pop ups" using the onload();
method for advertising.
 
A

Andrew Murray

There are "pop-ups" and "Pop=unders" which is another advertising method
(less intrusive) but it pops under or behind, the main site window.
 
J

JCO

Jim,
Have you thought about modifying your Popup Control to add a checkbox asking
if you want the popup to occur when the page is entered (or refreshed)?

And if you do so by avoiding the onload command, it will not be detected as
spam or advertisement.

Thanks
 
J

JCO

One question.
What is the syntax when you have multiple onload statements.
OnLoad= "one, two"; or
OnLoad="one; two;"; or what?

Thanks
 
J

Jim Cheshire

JCO said:
Jim,
Have you thought about modifying your Popup Control to add a checkbox
asking if you want the popup to occur when the page is entered (or
refreshed)?

And if you do so by avoiding the onload command, it will not be
detected as spam or advertisement.

Thanks

Hi JCO,

Not possible. If you configure the pop-up to go when the page is loaded, it
will always be intercepted by pop-up blockers.

The main reason why I don't go this route with Spawn is because I HATE
pop-ups that show up when I haven't clicked on something. I refuse to write
software that enables people to do that.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com
http://www.jimcoaddins.com

The premiere add-in and software source
for Microsoft FrontPage.
 
J

JCO

Fair enough!
I only use the popups when my site has an important message from the
president.
I also use you Spawn for the same message... for those that see it and click
it.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top