User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 402,369 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,034 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
View Poll Results: howz it
hmmm 0 0%
nopess 2 100.00%
Voters: 2. You may not vote on this poll

Views: 2067 | Replies: 6
Reply
Join Date: Jan 2007
Posts: 6
Reputation: sandeep0708 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sandeep0708 sandeep0708 is offline Offline
Newbie Poster

Help urgent need!! in jsp

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,377
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 120
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Virtuoso

Re: urgent need!! in jsp

  #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  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,698
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 195
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: urgent need!! in jsp

  #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.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Jun 2004
Posts: 125
Reputation: Vinoth is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
Vinoth Vinoth is offline Offline
Junior Poster

Re: urgent need!! in jsp

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

<a href="javascript: self.close ()">Your line of code.</A>
Reply With Quote  
Join Date: Apr 2006
Location: Mumbai, India
Posts: 351
Reputation: aniseed is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 5
aniseed's Avatar
aniseed aniseed is offline Offline
Posting Whiz

Re: urgent need!! in jsp

  #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  
Join Date: Jun 2004
Posts: 125
Reputation: Vinoth is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
Vinoth Vinoth is offline Offline
Junior Poster

Re: urgent need!! in jsp

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

Re: urgent need!! in jsp

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 12:14 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC