P
pat_cdp
Hi,
I have a need to conditionally navigate from a remote web page
which contains some html, some Java, and a signed java
applet, to a local html file. The condition will be based off of
a flag that I determine at run-time in a Java function; when the
condition is true, I want to redirect to something local, and
when the condition is false, I want to redirect to something
remote.
So far, we've tried document.write'ing various things from the the
javascript code (like adding a 0-second redirect, or adding a
'location.href = http://blahblahblah.com'.
I moved on to Java, where I've tried to change location by accessing
the DOM through JSObject and by trying various incantations to
getAppletContext().showDocument(). I was hoping that by running
in a secure context (from a SIGNED applet) I'd be able to
bypass these issues, but it doesn't help us directly. We can,
however, with the help of Java, run the browser from the command-
line with the new URL, and that will (sometimes) help us do what
we need, but it seems like a lot to go through to change a
simple URL.
Is there a blessed way to do this, or does this expose some
strange security issue?
TIA
I have a need to conditionally navigate from a remote web page
which contains some html, some Java, and a signed java
applet, to a local html file. The condition will be based off of
a flag that I determine at run-time in a Java function; when the
condition is true, I want to redirect to something local, and
when the condition is false, I want to redirect to something
remote.
So far, we've tried document.write'ing various things from the the
javascript code (like adding a 0-second redirect, or adding a
'location.href = http://blahblahblah.com'.
I moved on to Java, where I've tried to change location by accessing
the DOM through JSObject and by trying various incantations to
getAppletContext().showDocument(). I was hoping that by running
in a secure context (from a SIGNED applet) I'd be able to
bypass these issues, but it doesn't help us directly. We can,
however, with the help of Java, run the browser from the command-
line with the new URL, and that will (sometimes) help us do what
we need, but it seems like a lot to go through to change a
simple URL.
Is there a blessed way to do this, or does this expose some
strange security issue?
TIA