Title: Message
Hi all,
Thanks Nate for your help.
I was able to solve the problem by writing a "close.js" file which has the following code(stored in the wwwroot):
 
<!--
    function closeWindow(windowRef){
      windowRef.close();
     }
-->
 
and then I included the following codes to the pages I wanted to close:
 
<!--- below the title tag --->
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.truth.com/close.js">
</SCRIPT>
 
<!--- bottom of page --->
<button >HOME</button>
 
Again, thanks for your help Nate!
 
Ron
-----Original Message-----
From: Nate Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 11:55 AM
To: [EMAIL PROTECTED]
Subject: Re: Permission Denied...

Gotta be client unless you are running an applet.
 
You need to close the window from where you opened it, is that being done?
 
Nate Nielsen
817.726.8644
----- Original Message -----
From: Ron Mast
Sent: Wednesday, February 27, 2002 11:43 AM
Subject: RE: Permission Denied...

It's still giving me that Permission Denied error...
What you gave me is just another avenue to closing the second window...
I have a feeling it's a server issue...I'm not positive though.
 
Ron
-----Original Message-----
From: Nate Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 11:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Permission Denied...

put this in your opener window :
 
<script>
    function closeWindow(windowRef){
      windowRef.close();
     }
</script>
 
(what this does - it gets passed a window object, then closes that window object)
 
 
 
put this in your second window:
 
<button >HOME</button>
 
(what this does - calls the closeWindow function in the opener page, and passes its own window object to it)
 
;)
 
Nate Nielsen
817.726.8644
 
----- Original Message -----
From: Ron Mast
Sent: Wednesday, February 27, 2002 11:25 AM
Subject: RE: Permission Denied...

I'm sorry,
The focus is on the second window and the button that the client is pressing(HOME) is on the second window.  I guess I don't understand.
 
How do you propose I use the code you gave below?
Do I apply that to my second window with the focus?
I don't want my clients to have to give the opener focus in order for them to close the second window.
 
Ron
-----Original Message-----
From: Nate Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 11:26 AM
To: [EMAIL PROTECTED]
Subject: Re: Permission Denied...

try closing your window from your opener window  =D
 
opener.[thisWindowName].close();
 
Nate Nielsen
817.726.8644
 
----- Original Message -----
From: Ron Mast
Sent: Wednesday, February 27, 2002 11:14 AM
Subject: Permission Denied...

Hi all,
I have a test server and I have a flash insterface with buttons.  When I click on a button it opens up a new window with the specified page.  I added the following JS code to one of the page:

<!--- Between <title> tag --->
<script language="JavaScript">
<!--

function closeThisPage()
{
window.opener.location.reload();
window.close();
}

//-->
</script>


<!--- bottom of page --->
<center>
<button >HOME</button><button >BACK</button>
</center>

It works on my test server, but not on my live server. 
I end up with a JavaScript error saying, "Permission Denied"

Does anyone have any idea what I need to do to my live server to get rid of this error?

Thanks!

Ron Mast
Truth Hardware
Webmaster
(507)444-4748

Reply via email to