jai
10-23-2003, 09:17 AM
I need immediate help.
The error I am getting is
Error: uncaught exception: Permission denied to get property Window.scriptglobals
My flow is like this :
I call a webservice that returns me a html code. The I use window.open and this return html to a popup window.
The return html looks like this:
"<html> <head> <title>Print Postage</title> </head> <frameset rows='70,1,606' framespacing='0' border='0' frameborder='0'> <frame scrolling='no' noresize target='middle' src='http://singhj2-pc/ie50sample/h38bda3c8-c73c-4757-ad2a-27bdde53044f.htm' name='mainFrame' noresize marginwidth='0' marginheight='0'> <frame target='bottom' src='http://singhj2-pc/ie50sample/Images/f9e286250-77ae-4517-abba-72f0c82297b2.gif' name='topFrame' marginwidth='0' marginheight='0' scrolling='no' noresize> <frame src='http://singhj2-pc/ie50sample/Images/s9e286250-77ae-4517-abba-72f0c82297b2.gif' name='middleFrame' noresize marginwidth='0' marginheight='0' scrolling='auto'> <noframes> <body> <p>This page uses frames, but your browser does not support them.</p> </body> </noframes> </frameset> </html>"
It contains html code to create three frames (mainFrame,topFrame,middleFrame)
topFrame contains an image
middleFrame also contains an image.
mainFrame has an HTML page which has two buttons to print image in above frame.
the URL for the site which created the popup is for example http://testserver.me.com/testpage.aspx
the url for for images and html page for frame are for example
http://imageserver.me.com/images/a1.gif
http://imageserver.me.com/images/a2.gif
http://imageserver.me.com/printit.html
I am using javascript to print the images in the frame.
Now if I get the popup window and try to print it. It does not works and I get and this error
Error: uncaught exception: Permission denied to get property Window.scriptglobals
but if I move images and testserver.me.com to any other virtual directory then it works fine.
I tested it a lot and I found out that if server name is same in mainweb page url and html frame url, it works. if it is different it does not work.
I have this problem in Netscape 6.x only. In IE everything just works fine.
Any comments will be helpful.
Thanks,
Jai
The error I am getting is
Error: uncaught exception: Permission denied to get property Window.scriptglobals
My flow is like this :
I call a webservice that returns me a html code. The I use window.open and this return html to a popup window.
The return html looks like this:
"<html> <head> <title>Print Postage</title> </head> <frameset rows='70,1,606' framespacing='0' border='0' frameborder='0'> <frame scrolling='no' noresize target='middle' src='http://singhj2-pc/ie50sample/h38bda3c8-c73c-4757-ad2a-27bdde53044f.htm' name='mainFrame' noresize marginwidth='0' marginheight='0'> <frame target='bottom' src='http://singhj2-pc/ie50sample/Images/f9e286250-77ae-4517-abba-72f0c82297b2.gif' name='topFrame' marginwidth='0' marginheight='0' scrolling='no' noresize> <frame src='http://singhj2-pc/ie50sample/Images/s9e286250-77ae-4517-abba-72f0c82297b2.gif' name='middleFrame' noresize marginwidth='0' marginheight='0' scrolling='auto'> <noframes> <body> <p>This page uses frames, but your browser does not support them.</p> </body> </noframes> </frameset> </html>"
It contains html code to create three frames (mainFrame,topFrame,middleFrame)
topFrame contains an image
middleFrame also contains an image.
mainFrame has an HTML page which has two buttons to print image in above frame.
the URL for the site which created the popup is for example http://testserver.me.com/testpage.aspx
the url for for images and html page for frame are for example
http://imageserver.me.com/images/a1.gif
http://imageserver.me.com/images/a2.gif
http://imageserver.me.com/printit.html
I am using javascript to print the images in the frame.
Now if I get the popup window and try to print it. It does not works and I get and this error
Error: uncaught exception: Permission denied to get property Window.scriptglobals
but if I move images and testserver.me.com to any other virtual directory then it works fine.
I tested it a lot and I found out that if server name is same in mainweb page url and html frame url, it works. if it is different it does not work.
I have this problem in Netscape 6.x only. In IE everything just works fine.
Any comments will be helpful.
Thanks,
Jai