Hello gurus! I am not a javascript person, so I hope there is a simple
answer / solution to this problem I'm having. I'm xposting this to the
HTML group, if perhaps this is an HTML issue.
I have a java applet which allows interaction through javascript. For
example, I can click a point on the applet and a new window will open
containing information about the point I clicked on. The information is
gathered via javascript & displayed in the pop-up window.
I have two href tags being displayed in the pop-up window. They look
like this:
<td><a
href='javascript:opener.document.mapApplet.selectO bject(\""+lyrId+"\","+
rec.getId()+");'>On Map</a></td><td><a
href='http://host/page.php?id="+rec.getId()+"
target=\"_blank\"'>Detailed Information</a></td>
The second one is the one I'm having a problem with. I wish to have
that link open in a *NEW* window (not the pop-up window, nor the
original window with the java applet). Regardless of what target I set
(e.g., _blank, _top, _new), the link always opens in the pop-up window.
I can set <base target="_blank"> in the head section of my HTML
(pop-up window), and that fixes the problem - however, it screws up the
first link which still needs to interact with the java applet window.
What can I do? I just want that one little link to open in a new window.
Thanks for your help. 2 4917
"MotherBored" <mo*********@nospam.newgulfwar.com> schreef in bericht
news:84****************@fe01.atl2.webusenet.com...
.... I have two href tags being displayed in the pop-up window. They look like this:
<td><a href='javascript:opener.document.mapApplet.selectO bject(\""+lyrId+"\","+ rec.getId()+");'>On Map</a></td><td><a href='http://host/page.php?id="+rec.getId()+" target=\"_blank\"'>Detailed Information</a></td>
The second one is the one I'm having a problem with. I wish to have that link open in a *NEW* window (not the pop-up window, nor the original window with the java applet). Regardless of what target I set (e.g., _blank, _top, _new), the link always opens in the pop-up window. I can set <base target="_blank"> in the head section of my HTML (pop-up window), and that fixes the problem - however, it screws up the first link which still needs to interact with the java applet window.
What can I do? I just want that one little link to open in a new window.
I think that this is a matter of displaced quotes.
Try this:
<td><a
href='javascript :opener.document.mapApplet.selectO bject(\""+lyrId+"\","+
rec.getId()+");'>On Map</a></td><td><a
"href='http://host/page.php?id="+rec.getId()+"'
" target=\"_blank\">Detailed Information</a></td>
JW
In article <3f***********************@news.euronet.nl>, "Janwillem Borleffs"
<jw*@jwbfoto.demon.nl> writes: <td><a href='javascript:opener.document http://www.jibbering.com/faq/#FAQ4_24
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Scott |
last post by:
I'm new to ASP, but I've been programming in VB for
several years, and I'm having a few issues with this ASP
enhancement I'm working on. I've found ASP to be a lot
different than what I'm use to...
|
by: Jez |
last post by:
Hi,
I've created a function which opens a popup window containing a
calendar. When a day is clicked, the date is entered into a text box
on the parent page and the popup is closed.
The link...
|
by: Lars Vatland |
last post by:
Hello, if i have
frameset
frame name=A
frame name=B
How can i target all links in A to B?
Via a script in the frameset?
(i can only code the frameset file, not the frames)
Maybe something...
|
by: Dana Smith |
last post by:
Can anybody explain why when I have a hyperlink on a page with the code
similar to below, after the user clicks on the link, the desired window
opens but the page with the hyperlink changes to a...
|
by: Mel |
last post by:
can i specify width and height of the popup window in my href ?
something like:
<a href=xxxx width=200 height=200 target=AAA>YYYYYYYYYYY</a>
OBVIOUSLY that did not work !
thanks for your...
|
by: usenet |
last post by:
See
<ul>
<li><a name="link1" onClick="alert(this.name);return false;"
href="#">Link1</a></li>
<li><a name="link2" href="javascript:alert(this);">Link2</a></li>
<li>Item 3</li>
</ul>
...
|
by: Leon |
last post by:
From parent windows, I have created a popup windows that comprises two
frames.
When I have clicked a link button in one of the frames, I would like
to redirect the parent windows to somewhere.
So...
|
by: Gernot Frisch |
last post by:
Hi,
I'm currently writing:
<span onclick="window.open(...);">Klick Here</span>
but I want to use the <a href> for this, since it is defined in the
css script the way I want my link to open....
|
by: Wolfman |
last post by:
Hi guys
I recently added a popup HREF script to a page, but I'd also like to make the page itself change when the HREF command is clicked. When the user clicks, not only would the popup window...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |