• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

tracking url in jsp

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i have a small problem with jsp's in my application..
in my jsp iam using one link to call one site..
when we click the link the site is populating on another tab..
but i need to popolate that page in the same page instead of opening in
different tab..
can anyone please help me..

Thanks in advance...
--Naresh
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the link have a target attribute? That would cause it to open in another tab or window.
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
Does the link have a target attribute? That would cause it to open in another tab or window.



It doesn't have any attribute and it is opening in a new tab not window..
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code for that link?
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here iam elaborating this one...
if i click the link it is going to call that website in the current page
here the code is like
<a href="javascript:openURL('www.snowcaponline.net/admin','{d1e02aaa-7ef4-4911-906c-adf62eceb5af}','Alerts','0');" class="body">Alerts</a>

In that website's page iam going to click one more link(this is not our application link,website's link), now what's happening is if i click this one it is going to open in new tab, but i need to control in this rendering..
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't a typical anchor tag.
It's calling a Javascript function to open the page.

I'm going to move this to our HTML/Javascript forum because the solution to this issue isn't going to involve JSP.
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
k can you please let me know the solution ASAP...
Thanks in advance...
--Naresh
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is JavaScript function openURL?

Eric
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The openURL() function render that website into current page...
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm...you are calling a function (openURL) that does not do what you need to do. The "solution" seems pretty obvious...you need to either change the openURL function or write/use one that does what you want. Can you post the code to that function?

- Brent
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Naresh Talluri:
The openURL() function render that website into current page...



I meant show us the code....

Your answer is...do not use window.open

Eric
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam sorry
here iam not able to send the code ....
it is showing like some html errors, can you please help me out.
 
My pie came with a little toothpic holding up this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic