|
 |
asp_web_howto thread: Why my pop up window does not work?
Message #1 by "cindy zhou" <czhou@w...> on Tue, 22 Oct 2002 20:24:47
|
|
Hi,
I need a pop up window to appear when I click a button.
<input type="button" value="View List" name="B4" onClick="window.open
('popList.asp','ISOList','width=555,height=445,left=110,top=25,screenX=0,sc
reenY=100')">
When I click the button, the new window ("popList.asp") does not show up.
What could be wrong here?
I appreciate your help.
Cindy
Message #2 by "Scott Heath" <scott@s...> on Tue, 22 Oct 2002 14:34:09 -0500
|
|
Cindy,
Where you have onclick="window.open..." you should have:
Onclick="javascript:window.open..."
The following line works (make sure it's ALL on one line with NO line
breaks or it wont work either:
<input type="button" value="View List" name="B4"
onClick="javascript:window.open('popList.asp','ISOList','width=555,heigh
t=445,left=110,top=25,screenX=0,screenY=100')">
Scott
Website | http://www.scottspad.com
E-mail | scott@s...
Phone: | xxx-xxx-xxxx
Alpha Pager | www.scottspad.com/phone.asp
--------------------------------------------
There are 10 types of people in the world,
those that can read binary and those that can not.
-----Original Message-----
From: cindy zhou [mailto:czhou@w...]
Sent: Tuesday, October 22, 2002 8:25 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Why my pop up window does not work?
Hi,
I need a pop up window to appear when I click a button.
<input type="button" value="View List" name="B4" onClick="window.open
('popList.asp','ISOList','width=555,height=445,left=110,top=25,screenX=0
,sc
reenY=100')">
When I click the button, the new window ("popList.asp") does not show
up.
What could be wrong here?
I appreciate your help.
Cindy
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #3 by "cindy zhou" <czhou@w...> on Tue, 22 Oct 2002 20:55:10
|
|
Thanks, Scott.
I did it according to your suggestion. The window still does not pop up.
It's just so wield. I really cannot think of the reason.
Thankx,
cindy
> Cindy,
Where you have onclick="window.open..." you should have:
Onclick="javascript:window.open..."
The following line works (make sure it's ALL on one line with NO line
breaks or it wont work either:
<input type="button" value="View List" name="B4"
onClick="javascript:window.open('popList.asp','ISOList','width=555,heigh
t=445,left=110,top=25,screenX=0,screenY=100')">
Scott
Website | http://www.scottspad.com
E-mail | scott@s...
Phone: | xxx-xxx-xxxx
Alpha Pager | www.scottspad.com/phone.asp
--------------------------------------------
There are 10 types of people in the world,
those that can read binary and those that can not.
-----Original Message-----
From: cindy zhou [mailto:czhou@w...]
Sent: Tuesday, October 22, 2002 8:25 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Why my pop up window does not work?
Hi,
I need a pop up window to appear when I click a button.
<input type="button" value="View List" name="B4" onClick="window.open
('popList.asp','ISOList','width=555,height=445,left=110,top=25,screenX=0
,sc
reenY=100')">
When I click the button, the new window ("popList.asp") does not show
up.
What could be wrong here?
I appreciate your help.
Cindy
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #4 by "Drew, Ron" <RDrew@B...> on Tue, 22 Oct 2002 15:43:59 -0400
|
|
In heading
<script language=3D"JavaScript">
<!--
function newWindow() {
document.formmail.PayMethod[0].checked =3D=3D false;
var
x=3Dwindow.open('Vendorformmailsub.asp','sub','height=3D500,width=3D450,l
eft=3D4
50');
}
//-->
</script>
In Body
<table>
<tr><!--<td><p align=3D"left"><font size=3D"5" color=3D"black">2001 >
</font></p></td>-->
<td><form id=3D"form1" name=3D"form1">
<font size=3D"3" color=3D"green">Accounts Payable ---
<input type=3D"button" value=3D"Click Here"
onClick=3D"window.open('popList.asp','','width=3D800,height=3D650');"
id=3D"button1" name=3D"button1">
<font size=3D"2" color=3D"black">
</form></FONT></FONT></td>
</tr>
</table>
-----Original Message-----
From: cindy zhou [mailto:czhou@w...]
Sent: Tuesday, October 22, 2002 4:25 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Why my pop up window does not work?
Hi,
I need a pop up window to appear when I click a button.
<input type=3D"button" value=3D"View List" name=3D"B4"
onClick=3D"window.open
('popList.asp','ISOList','width=3D555,height=3D445,left=3D110,top=3D25,sc
reenX=3D0
,sc
reenY=3D100')">
When I click the button, the new window ("popList.asp") does not show
up.
What could be wrong here?
I appreciate your help.
Cindy
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
Message #5 by "cindy zhou" <czhou@w...> on Tue, 22 Oct 2002 21:11:29
|
|
Thanks for all your reply. They are helpful.
But I have tried everything you suggested, it just did not work. I
searched a bit on the net, there are some samples. It is not working even
when I try their samples. So I am wondering if it is resulted from some
setting of the browser. My browser is IE 5.0, SP2. The javascript runs
just fine on current browser. Anyone can help me out?
Thank you,
Cindy
Message #6 by "Ken Schaefer" <ken@a...> on Wed, 23 Oct 2002 15:10:56 +1000
|
|
Check to make sure there isn't some kind of scripting error. If there is,
Internet Explorer will display a little yellow triangle in the status bar at
the bottom of the screen. Double-click this to see what the error is.
Otherwise, check to make sure you have "Active Scripting" enabled in the
current zone. If unsure, goto Tools | Internet Options | Security, and reset
the security for all zones to the default.
Lastly, if you have *any* pop-ad blocker installed on your machine, then
your javascript isn't going to work - why? Because the ad-blocker can't tell
the difference between your code, and and some ad code.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "cindy zhou" <czhou@w...>
Subject: [asp_web_howto] RE: Why my pop up window does not work?
: Thanks for all your reply. They are helpful.
:
: But I have tried everything you suggested, it just did not work. I
: searched a bit on the net, there are some samples. It is not working even
: when I try their samples. So I am wondering if it is resulted from some
: setting of the browser. My browser is IE 5.0, SP2. The javascript runs
: just fine on current browser. Anyone can help me out?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Message #7 by "cindy zhou" <czhou@w...> on Wed, 23 Oct 2002 13:55:04
|
|
Thank you, ken.
I have checked those three things you suggested. For the first two, it is
just fine. I think the pop ad blocker thing might be the reason. But how
can I find out if I have one on my machine? I would appreciate your reply.
Cindy
> Check to make sure there isn't some kind of scripting error. If there is,
Internet Explorer will display a little yellow triangle in the status bar
at
the bottom of the screen. Double-click this to see what the error is.
Otherwise, check to make sure you have "Active Scripting" enabled in the
current zone. If unsure, goto Tools | Internet Options | Security, and
reset
the security for all zones to the default.
Lastly, if you have *any* pop-ad blocker installed on your machine, then
your javascript isn't going to work - why? Because the ad-blocker can't
tell
the difference between your code, and and some ad code.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "cindy zhou" <czhou@w...>
Subject: [asp_web_howto] RE: Why my pop up window does not work?
: Thanks for all your reply. They are helpful.
:
: But I have tried everything you suggested, it just did not work. I
: searched a bit on the net, there are some samples. It is not working even
: when I try their samples. So I am wondering if it is resulted from some
: setting of the browser. My browser is IE 5.0, SP2. The javascript runs
: just fine on current browser. Anyone can help me out?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
 |