waytech2003
Programmer
I have a webpage that contain frames. Left sided (Frame1) has menu buttons, right side (Frame2) is where the action occurs.
I use Javascript functions that are stored in Frame1, to manipulate Frame2's content. Several of my functions involve writing messages to the right frame document.
Example:
top.Frame2.document.write("<p align='center'><b>Loading Billing Form. Please Wait.</b></p>");
This is working well except when I have previously loaded a jpeg picture into the Frame2, and then try to write() a message after a button is pressed.
IE6 works without any problems, but testing with Firefox3 I get a "Permission denied to get property Window.document" error on line 2 code snippet below
1 var z
2 z=top.Frame2.document;
3 z.open();
4 z.write("stuff");
5 z.close();
I have tried replacing Frame2 with a blank page, before writing, but I guess it does not get loaded fast enough.
As I said IE works, Firefox errors. Any ideas?
I use Javascript functions that are stored in Frame1, to manipulate Frame2's content. Several of my functions involve writing messages to the right frame document.
Example:
top.Frame2.document.write("<p align='center'><b>Loading Billing Form. Please Wait.</b></p>");
This is working well except when I have previously loaded a jpeg picture into the Frame2, and then try to write() a message after a button is pressed.
IE6 works without any problems, but testing with Firefox3 I get a "Permission denied to get property Window.document" error on line 2 code snippet below
1 var z
2 z=top.Frame2.document;
3 z.open();
4 z.write("stuff");
5 z.close();
I have tried replacing Frame2 with a blank page, before writing, but I guess it does not get loaded fast enough.
As I said IE works, Firefox errors. Any ideas?