943,544 Members | Top Members by Rank

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

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 2849
  • JSP RSS
Jan 12th, 2007
0

urgent need!! in jsp

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sandeep0708 is offline Offline
6 posts
since Jan 2007
Jan 12th, 2007
0

Re: urgent need!! in jsp

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.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Jan 12th, 2007
0

Re: urgent need!! in jsp

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Jan 19th, 2007
0

Re: urgent need!! in jsp

simple , use javascript.

<a href="javascript: self.close ()">Your line of code.</A>
Reputation Points: 13
Solved Threads: 2
Junior Poster
Vinoth is offline Offline
125 posts
since Jun 2004
Jan 19th, 2007
0

Re: urgent need!! in jsp

Click to Expand / Collapse  Quote originally posted by Vinoth ...
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.
Reputation Points: 48
Solved Threads: 7
Posting Whiz
aniseed is offline Offline
353 posts
since Apr 2006
Jan 19th, 2007
0

Re: urgent need!! in jsp

I am not able to get you , in what you are trying to come out.
Reputation Points: 13
Solved Threads: 2
Junior Poster
Vinoth is offline Offline
125 posts
since Jun 2004
Jan 20th, 2007
0

Re: urgent need!! in jsp

Click to Expand / Collapse  Quote originally posted by Vinoth ...
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.
Reputation Points: 48
Solved Threads: 7
Posting Whiz
aniseed is offline Offline
353 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC