R
Robert Mark Bram
Hi All!
I have a piece of JavaScript that attempts to find the location.href
property of another window. For example:
contentWindow =
window.open('', 'someWindowName');
var otherUrl = contentWindow.location.href;
If it happens to find a window named 'someWindowName' that currently has a
document loaded from some other host, the "contentWindow.location.href" code
triggers the following error:
Error: uncaught exception: Permission denied to get property
Location.href
I know I could put this code inside a try-catch. However, while I found this
works on IIS5.1 (my testing server), I also found that the version of
Chilisoft I have to use on the production server does not support
try-catch...
So my question is this: how can I avoid the uncaught exception in this case
without using a try-catch?
Thanks for any advice!
Rob
I have a piece of JavaScript that attempts to find the location.href
property of another window. For example:
contentWindow =
window.open('', 'someWindowName');
var otherUrl = contentWindow.location.href;
If it happens to find a window named 'someWindowName' that currently has a
document loaded from some other host, the "contentWindow.location.href" code
triggers the following error:
Error: uncaught exception: Permission denied to get property
Location.href
I know I could put this code inside a try-catch. However, while I found this
works on IIS5.1 (my testing server), I also found that the version of
Chilisoft I have to use on the production server does not support
try-catch...
So my question is this: how can I avoid the uncaught exception in this case
without using a try-catch?
Thanks for any advice!
Rob