"Andrew T." <> skrev i melding
news: oups.com...
> Dag Sunde wrote:
>> "Andrew T." <> skrev i melding
>> news: ups.com...
>> > Dag Sunde wrote:
>> >> I have an applet with some public methods
>> >> I call from Javascript in a .html page.
> ...
>> It seems like jre 1.5 plugin needs a little more time to 'wake up' before
>> you can call any of the applet's methods...?
>
> Uh-Huh, OK. To safeguard yourself for that situation, you can
> delay your JS a little and check the applet.isAlive(?) method to
> wait for it.
That's what we did. But I was suprised by the difference and the
need to do so.
We developed two different ways to "wait". The first one we used
a small loop with a JS try/catch block, calling the method in the
try, and introducing a small (250mS) delay in the catch before retrying.
The otherone uses the netscape JSObject in the applet to call back to
a JS function when the Applet's start() method is executed.
I like the latter best, leaving it to the applet to announce when its
ready.
>
> ( But depsite yours and Roedy's logical countering of my
> security worries, I still feel it is only a matter of time before
> most invisible elements in pages will be considered at least
> slightly suspicious.
I definitely share your worries... Thats why I made some effort to
understand and check the consequences. And my conclusion is that
there is none.
But, that doesn't solve the problem that the users or their
IT-departmens will be suspicious about hidden, active content.
The only solution I can see to that is education and documentation.
--
Dag.