Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 13th, 2004, 01:03 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with closing popup

I have a frameset wherein I have a page that has the following link...

check out your <a href='#' target='_blank' onClick="MM_openMDialog('quizscores.htm','','cente r:yes;help:no;resizable:no;scroll:no;status:no;tit le:no;edge:sunken;dialogWidth:400px;dialogHeight:4 00px')">scores</a>!

The link works just fine and opens up the modal popup.

My popup is pretty simple at this point. I just simply built a table that pulls info from an array which in turn pulls from a Unix box. That all works fine.

I created a simple close link as follows...

<a href="#" onclick="javascript:window.close();">Close
Quiz Scores</a>

Here is my problem. When I close the modal, whether I do it via the link or the x on the window itself, it opens up the opener document it came from in its own window outside any frame. I do not want it to do that. Can someone give me a hint as to why it would do that?



Clay Hess
__________________
Clay Hess
 
Old May 18th, 2004, 12:51 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can someone take a look at this message and thow me a possible solution?

Clay Hess
 
Old May 18th, 2004, 11:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

sorry to not replying before, check this:

Code:
<a href="#" onClick="Dlg=window.open('quizscores.htm','','center:yes;help:no;resizable:no;scroll:no;status:no;title:no;edge:sunken;dialogWidth:400px;dialogHeight:400px')">scores</a>
Code:
<a href="#" onclick="Dlg.close();">Close</a>
Always:),
Hovik Melkomian.
 
Old May 19th, 2004, 08:21 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Greetings,

Thanks for responding. I actually figured it out on my own late last night. I removed the target=_blank and it worked just fine.

Clay Hess
 
Old May 20th, 2004, 09:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

was MM_openMDialog a function name?!
I was looking for that in JavaScript & couldnt find any!!!
plz be more carefullin ur codes

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Tags closing problem igna36 XSLT 5 May 14th, 2008 07:02 AM
Problem in closing the parent window from a popup rakesh.kashnia1 Javascript 4 July 9th, 2007 05:39 AM
problem with closing the child window swarnap Javascript How-To 4 November 16th, 2006 12:54 AM
Closing Pages and popup alerts Quick209 ASP.NET 2.0 Basics 0 November 14th, 2005 09:26 PM
refresh the parent window when closing the popup ram_siddinen VS.NET 2002/2003 1 January 30th, 2004 04:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.