Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > href target Is Not Working In JS Generated Popup Window

Reply
Thread Tools

href target Is Not Working In JS Generated Popup Window

 
 
MotherBored
Guest
Posts: n/a
 
      07-05-2003
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='javascriptpener.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.


 
Reply With Quote
 
 
 
 
Janwillem Borleffs
Guest
Posts: n/a
 
      07-05-2003

"MotherBored" <> schreef in bericht
news:84HNa.4417$...
....
>
> I have two href tags being displayed in the pop-up window. They look
> like this:
>
> <td><a
> href='javascriptpener.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='javascriptpener.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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Href - Please do not reload with target specified Mel Javascript 1 04-23-2007 07:16 PM
difference between location.href and window.location.href? saiho.yuen Javascript 3 09-14-2004 06:51 PM
New Popup Window from an existing Popup Window Raffi Javascript 4 08-12-2004 01:21 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
href target Is Not Working In JS Generated Popup Window MotherBored HTML 1 07-05-2003 09:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57