[wplug] Web Development....A problem with OnClick......

Gonffen gonffen at gonffen.cjb.net
Tue Nov 19 16:38:37 EST 2002


Maybe it's a problem in IE6.  The code looks like it should work...

 ---------------------------------------------------------------
                            | "They that can give up essential
     JOIN THE CAMPAIGN!!!   |  liberty to obtain a little
 /"\                        |  temporary safety deserve neither
 \ / ASCII ribbon campaign  |  liberty nor safety."
  X  against HTML mail      |
 / \                        |  Benjamin Franklin
 --------------------------------------------------------------- 

-----Original Message-----
From: wplug-admin at wplug.org [mailto:wplug-admin at wplug.org] On Behalf Of
Phil Walther, Jr.
Sent: Sunday, November 17, 2002 3:54 PM
To: wplug at wplug.org
Subject: [wplug] Web Development....A problem with OnClick......

Hopefully someone can figure out why this is not working.  I have a bit
of
an issue with the attributes of OnClick and IE....

Here's the beginning code, using an image map:

<img src="statemap.jpg" width="269" height="227" border="0"
USEMAP="#statemap">
<MAP NAME="statemap">
<AREA SHAPE=polygon
COORDS="74,67,96,166,238,129,242,119,251,117,259,103,
243,88,246,55,225,38,96,75,88,59,76,70" ALT="Pennsylvania"
OnMouseOut="window.status=''; return true"
OnMouseOver="window.status='Selecting Pennsylvania'; return true"
ONCLICK="window.open ('state-pa.html', 'PA State Motorcycle Laws',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=n
o,
resizable=no,copyhistory=no,width=550,height=430' ) ">

By the way, this works JUST FINE in mozilla, but I need to work in IE(6)
as
well.  Silly class assignments!  Anyway, what I found was that:
1. The OnClick was giving the problem
2. Narrowed down to "window.open
3. If I left the attributes of "window.open ('state-pa.html')"  IT
WORKED!!
4. IE seems not to be enjoying the name or window attributes.

ANYONE have any ideas why, this is driving me nuts!

Thanks!
Phil

_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug






More information about the wplug mailing list