urgent need!! in jsp

View Poll Results: howz it
hmmm 0 0%
nopess 2 100.00%
Voters: 2. You may not vote on this poll

Reply

Join Date: Jan 2007
Posts: 6
Reputation: sandeep0708 is an unknown quantity at this point 
Solved Threads: 0
sandeep0708 sandeep0708 is offline Offline
Newbie Poster

urgent need!! in jsp

 
0
  #1
Jan 12th, 2007
Hi all,,

the problem is that i have a link in jsp on which i have to open a new jsp page and at that time i want the parent window to be closed ...without any alert to be displayed...
plzz help
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: urgent need!! in jsp

 
0
  #2
Jan 12th, 2007
That has nothing to do with jsp. Ask on a Javascript forum how you might be able to cause a parent window to close after opening a child window.

The real question is, however, why don't you just simply open the new page in the current window?

If it is a matter of erasing the history, you can also do that through JavaScript without having to open a new window. Once again, ask on a JavaScript forum.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: urgent need!! in jsp

 
0
  #3
Jan 12th, 2007
It's also not at all urgent.
Maybe in a decade or so someone we may be able to schedule someone to look at it, our calendar is filled with more urgent things to do (like reading nice books, watching movies, and talking to the dog) until then.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 126
Reputation: Vinoth is an unknown quantity at this point 
Solved Threads: 2
Vinoth Vinoth is offline Offline
Junior Poster

Re: urgent need!! in jsp

 
0
  #4
Jan 19th, 2007
simple , use javascript.

<a href="javascript: self.close ()">Your line of code.</A>
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 353
Reputation: aniseed is an unknown quantity at this point 
Solved Threads: 6
aniseed's Avatar
aniseed aniseed is offline Offline
Posting Whiz

Re: urgent need!! in jsp

 
0
  #5
Jan 19th, 2007
Originally Posted by Vinoth View Post
simple , use javascript.

<a href="javascript: self.close ()">Your line of code.</A>
That will display an alert at least with IE, which the OP does not want.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 126
Reputation: Vinoth is an unknown quantity at this point 
Solved Threads: 2
Vinoth Vinoth is offline Offline
Junior Poster

Re: urgent need!! in jsp

 
0
  #6
Jan 19th, 2007
I am not able to get you , in what you are trying to come out.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 353
Reputation: aniseed is an unknown quantity at this point 
Solved Threads: 6
aniseed's Avatar
aniseed aniseed is offline Offline
Posting Whiz

Re: urgent need!! in jsp

 
0
  #7
Jan 20th, 2007
Originally Posted by Vinoth View Post
I am not able to get you , in what you are trying to come out.
I'm not trying to come out. :p What I am saying is that the original post had a requirement: i want the parent window to be closed ...without any alert to be displayed...

If you are going to do a self.close(), the page is going to give an alert in Internet Explorer "The webpage you are viewing is trying to close the window" (OK/Cancel). So the solution you posted is not what the original question expected.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2656 | Replies: 6
Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC