473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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 1670
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 "openCentredWindow".

The openCenteredWindow 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 "openCentredWindow".

The openCenteredWindow 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="openAllWindows();";popUp('http://www.boysco.com/mailouts/2005_06-pop.html');

That should be:
<body onload="openAllWindows();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();
openCenteredWindow('2005/boysco_2005.html', 'main', 745, 545,
false, false, false, '');
window.open('http://www.boysco.com/mailouts/2005_06-pop.html',
'mailouts',
'resizable,width=250,height=510');
}

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
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...
52
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...
3
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
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...
7
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...
4
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...
3
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...
0
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 -...
1
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,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.