473,563 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Only one of my two popups windows is working...

Hi folks!

Well, my cut-and-paste-and-fiddle Javascript technique has failed me at
last. I'm working on a site with a pre-existing Javascript which
maximizes the size of the home page and then spawns a centered pop-up
window which contains the actual site. So far, so good. But now they
would like an additional, small pop-up window with a bit of info about
a sale. I'd like that to come up at the upper left, not centered - a
standard popup. But only the main window loads - never the popup.

Here is the site: http://www.boysco.com

I've strunge together the multiple "onload" actions with a semicolon in
the BODY tag but still no luck. Can anyone tell me why my code isn't
doing the job, or suggest a solution?

Thanks muchly,

Adam

Jul 23 '05 #1
3 1677
Lee
cosmo_canuck said:

Hi folks!

Well, my cut-and-paste-and-fiddle Javascript technique has failed me at
last. I'm working on a site with a pre-existing Javascript which
maximizes the size of the home page and then spawns a centered pop-up
window which contains the actual site. So far, so good. But now they
would like an additional, small pop-up window with a bit of info about
a sale. I'd like that to come up at the upper left, not centered - a
standard popup. But only the main window loads - never the popup.

Here is the site: http://www.boysco.com


You're trying to load "window.js" , which doesn't seem to exist.

Jul 23 '05 #2
Thanks for pointing that out, Lee! Don't know why that .js file went
away, but
I've restored it. Alas, it's a side issue to the problem in my post.

I placed some javascript in the HEAD section that declares a function
called
"popUp", next to the pre-existing code for "openCentredWin dow".

The openCenteredWin dow function works fine but the other function
doesn't
seem to work - no small, additional popup appears.

I thought I was using the right syntax by simply listing both functions
in the
BODY tag after "onLoad" and separating with a semicolon. But something's
amiss...

Any ideas you have would be much appreciated... thanks!

Adam

*** Sent via Developersdex http://www.developersdex.com ***
Jul 23 '05 #3
Lee
Adam Abrams said:

Thanks for pointing that out, Lee! Don't know why that .js file went
away, but
I've restored it. Alas, it's a side issue to the problem in my post.

I placed some javascript in the HEAD section that declares a function
called
"popUp", next to the pre-existing code for "openCentredWin dow".

The openCenteredWin dow function works fine but the other function
doesn't
seem to work - no small, additional popup appears.

I thought I was using the right syntax by simply listing both functions
in the
BODY tag after "onLoad" and separating with a semicolon. But something's
amiss...


They've both got to be contained within the double-quotes.
You've got:

<body
onload="openAll Windows();";pop Up('http://www.boysco.com/mailouts/2005_06-pop.html');

That should be:
<body onload="openAll Windows();popUp ('http: ...')"

Although, if I was doing it, I would just add the popup code to the
openAllWindows( ) function and leave the onload attribute the way it was:

function openAllWindows( ){
expand();
openCenteredWin dow('2005/boysco_2005.htm l', 'main', 745, 545,
false, false, false, '');
window.open('ht tp://www.boysco.com/mailouts/2005_06-pop.html',
'mailouts',
'resizable,widt h=250,height=51 0');
}

You don't need any of that other stuff.
Then, all you've got to do is convince your client that they should
never resize the visitor's window (absolutely never to full screen)
or pop up a new window.

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2861
by: Art | last post by:
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python ... it is the most elegant and graceful language I have ever used (Fortran, Cobol, Basic, many assemblers, Forth, C, VB, etc.). I don't have the...
52
4381
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional locally-installed application interfaces. I understand some people object, on grounds having nothing to do with disabilities, to links that generate new...
3
1639
by: PSERVE | last post by:
Is the a way of preventing popups from other sites while your page is loading? -- Regards Nik http://www.itconsultancy.org
1
2332
by: dejausenet | last post by:
I have firefox 1.0, running on winxp Firefox blocks popups fine, but sometimes, for selected occassions only, i would like to be able to have window popup; without enabling whole domains, as other popups from same domain are not desired. How can I selectively override the firefox popup blocker, without opening up pop up from many ads from...
7
27480
by: fredo | last post by:
I've studied Eric Meyer's pure css popups, version two: http://meyerweb.com/eric/css/edge/popups/demo2.html which pops up an image when I roll over a text link. Now I want to pop up a large image when I roll over a thumbnail. I've tried some things, but can't make it work. See here (Warning: adult matter):
4
2349
by: Christina | last post by:
A project I am working on requires 5 random popup windows that rotate. A cookie is set each time one of the popups occurs with a 5 day expire period. The visitor isn't supposed to see the same popup within that 5 day period, so it needs to rotate to another popup. I have changed it around several times (setCookie calls randomWin and vice...
3
4366
by: Raffi | last post by:
Hello, I've been struggling and trying to work around this for a while and have even posted on usenet in the past without any working solutions. I'm posting it again in case someone out there has a solution. I'm working on a web application with an i-frame in the main application window. Inside the i-frame are various dynamic links for...
0
1021
by: Mufasa | last post by:
I've got a browser object I'm using in a windows program. If the page I'm going to have a popup, it causes a window to be opened. If the page is reloaded, the popup appears again. Same thing - keeps going until eventually the program get's an error. If you close all of the popups, it starts working again. How can I stop the popups. If not...
1
2331
by: Moe Sisko | last post by:
Using : ASP.NET 2.0, IE 7. This is a strange problem with popups not working in IE to remote sites, even though popups are allowed in IE. To reproduce, create web site with two pages, Default.aspx and Default2.aspx. Note that the example is a deliberately simplified example - just used to reproduce the problem, and not meant to be very...
0
7659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.