473,737 Members | 8,878 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 1685
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
2871
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 resources or the
52
4424
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 browser windows. I don't know what the basis of their objection is, but I wonder whether the same...
3
1657
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
2355
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 same domain. Tx
7
27502
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
2356
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 versa) but now have brain burnout. I'm probably complicating it - a bad habit I have. My randoms...
3
4380
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 opening data entry popups. One of these popups has a couple of i- frames itself. These i-frames also...
0
1028
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 that - how can I figure out there's a popup there and close it myself. This is a system that...
1
2353
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 useful. Default.aspx - add button1. In codebehind, hookup click event :
0
8968
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8786
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9470
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9258
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9207
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6749
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6052
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4569
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2192
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.