A window.open() on my main page (default.aspx) in the onClick of an <a>
works but the exact same code in a different page doesn't work. Any Ideas?
Thanks,
Tom 5 986
what does it do instead?
show code
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Tom Jackson" <tj************@home.com> wrote in message
news:uB**************@tk2msftngp13.phx.gbl... A window.open() on my main page (default.aspx) in the onClick of an <a> works but the exact same code in a different page doesn't work. Any Ideas?
Thanks,
Tom
When it works, it opens the new window. When it doesn't, absolutly nothing
happens.
The code is html in a aspx label (part of the menu system):
aspxText.Append("<tr><td><a class=\"leftAnchor\" href=\"glossary.aspx\"
onclick =\"window.open('glossary.aspx','dialogPopup','heig ht=250,
width=250,status=no, resizable=no, scrollbars=no,
toolbar=no,location=no,menubar=no');window.event.r eturnValue =
false;\">Glossary</a><br /><br /></td></tr>");
this exact code is in both?
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Tom Jackson" <tj************@home.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl... When it works, it opens the new window. When it doesn't, absolutly nothing happens.
The code is html in a aspx label (part of the menu system): aspxText.Append("<tr><td><a class=\"leftAnchor\" href=\"glossary.aspx\" onclick =\"window.open('glossary.aspx','dialogPopup','heig ht=250, width=250,status=no, resizable=no, scrollbars=no, toolbar=no,location=no,menubar=no');window.event.r eturnValue = false;\">Glossary</a><br /><br /></td></tr>");
Yes -- I am sure because the same routine populates the label.
tom
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eE**************@TK2MSFTNGP14.phx.gbl... this exact code is in both?
-- Curt Christianson Site & Scripts: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"Tom Jackson" <tj************@home.com> wrote in message news:%2***************@TK2MSFTNGP15.phx.gbl... When it works, it opens the new window. When it doesn't, absolutly
nothing happens.
The code is html in a aspx label (part of the menu system): aspxText.Append("<tr><td><a class=\"leftAnchor\" href=\"glossary.aspx\" onclick =\"window.open('glossary.aspx','dialogPopup','heig ht=250, width=250,status=no, resizable=no, scrollbars=no, toolbar=no,location=no,menubar=no');window.event.r eturnValue = false;\">Glossary</a><br /><br /></td></tr>");
do a view source and see whats getting placed in there
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Tom Jackson" <tj************@home.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Yes -- I am sure because the same routine populates the label.
tom
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:eE**************@TK2MSFTNGP14.phx.gbl... this exact code is in both?
-- Curt Christianson Site & Scripts: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"Tom Jackson" <tj************@home.com> wrote in message news:%2***************@TK2MSFTNGP15.phx.gbl... > When it works, it opens the new window. When it doesn't, absolutly nothing > happens. > > The code is html in a aspx label (part of the menu system): > aspxText.Append("<tr><td><a class=\"leftAnchor\" href=\"glossary.aspx\" > onclick =\"window.open('glossary.aspx','dialogPopup','heig ht=250, > width=250,status=no, resizable=no, scrollbars=no, > toolbar=no,location=no,menubar=no');window.event.r eturnValue = > false;\">Glossary</a><br /><br /></td></tr>"); > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael |
last post by:
I am trying to allow a user to view a PDF in a new window. I
currently have this working using the following:
<a href="./pdf.do?parameter=01121980" target="top"><b>pdf</b></a>
The problem...
|
by: Jamie Jackson |
last post by:
The crux of the problem is I only know if the popup *has been* opened,
but not if it *is* open. Therefore, the script doesn't know whether to
simply refocus, or whether to popup a fresh window.
...
|
by: Les |
last post by:
Hi,
I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but
didn't get any replies. Since it's javascript, maybe someone...
|
by: HarveyB |
last post by:
I would like to generate non-modal popup windows from
ASP.Net code-behind. I have tried using Client Side
scripting like "function Test(){
window.open('test.htm',_blank,...
|
by: Carlos Andr?s |
last post by:
Hi everybody.
I've got a problem. I'd like to avoid opening a new window when you
have pressed the shift key and you click in the left button of the
mouse. I've tried the next solution, in the...
|
by: Eli |
last post by:
How can I POST a form into a new window where I control the size and
other attributes of the new window?
Also. Are there any implications, perhaps due to browser security
(Interne Explorer?)...
|
by: cschang |
last post by:
I am not sure this is the right place to ask this question. I have a
web page composed with two frames (left and right). Then in my
frmae2(right one) , I open a pop-up window by javscript:...
|
by: Dominic Tocci |
last post by:
I'm searching for a way to use window.open on my web page to open a window
in firefox that allows the sidebars to work (bookmarks, history, etc).
When I use the following:
var...
|
by: johnsonholding |
last post by:
Here is the code for a pop-up window that works in Firefox and not in
IE - I get a java error or something,
Here is the code :
</script>
<SCRIPT language="JavaScript"...
|
by: Dr J R Stockton |
last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in
IE6, IE7, Firefox 2, and wherever else practicable, with the control
labelled F.X0 fully visible at the top of the window and...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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...
| |