Forum Moderators: open

Message Too Old, No Replies

reloading the parent browser

runtime error: Error permission deined

         

absolute beginner

1:58 pm on Jan 19, 2002 (gmt 0)

10+ Year Member



hi guys,

i am new here, so i hope you dont frown on me.

i have had some terrible trouble this week. i am responsilbe for implementing the companies new website, however i am totally stuck and must ask for your help please if you are able.

heres the problem:

the parent window (http://www.impossiblemedia.no) is built in two frames. the left frame contains html and flash layers. whilst the right frame contains a flash movie.

when the user clicks the "For Applicants" option in the left frame a new browser "child" (http://www.impossiblemedia.co.uk) is opened.

when the user closes this browser, i have tried to get the child to access the parent. but the following message returns each time.

A Runtime Error has occurred.
Do you wish to Debug?

Line 6:
Permission denied.

this references the command onunload="opener.window.location.reload()
in the body line of the child window.

i actually would rather that the child instead would execute the script

function reloadPage(){
var movie = top.music.myMovieName;
movie.TGotoFrame("_level0",0);
}

in the parent when it is closed as this would tell the flash movie in the right hand frame to return to the first frame.

however, this merely generates other runtime errors.

my question is how can we achieve this? and is there any possiblity that this denial could be server based? iis4 on the nt is the server.

looking forward to your responses, and want to thankyou in advance for your time.

-ab

tedster

3:48 pm on Jan 19, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World, absolute_beginner

I don't get exactly the same behavior you report, but I do get different errors with different browsers. Maybe this can help your debug:

Netscape 6.2
Error: movie has no properties
Source File: index2.html
Line: 28
--Nevertheless, all works fine in Netscape 6.2, Flash movie restarts, etc.

Netscape 4.7
JavaScript Error: index2.html, line 27:
top.music has no properties.
--Flash movie also restarts in NN 4.7

Opera 6:
On index2.html
Error:
name: TypeError
message: Attempted to call non-function: has undefined value: 'GotoFrame'
--No restart

IE 6
No errors reported, but no music plays either. Top-right Flash movie restarts as you intended.

absolute beginner

7:47 am on Jan 21, 2002 (gmt 0)

10+ Year Member



thanks tedster,

i am really in it here. cant seem to figure it out at all.

if you come up with anything let me know. i am online now all day.

thanks again. good to hear from you,

-ab