Hi Arne,
Personally, I'd vote for call() over eval() any day.
There was also a detailed example posted here recently by Rolan de Ruiter: -http://groups.google.com/group/comp.lang.java.programmer/msg/77df273b...
(It looks really good, but on the 1.4 (dev) box I tried it on I got casting
errors so you'll probably need Java 6)
He manipulates the html/DOM directly from Java where some lazier people
(including moi) would have sent the width/height to a Javascript function
and seen if it couls be done from there.
Cheers Richard Maher
PS. I'm just working on a small Applet example that reads UDP messages in a
seperate thread with send some messages to a TextArea in a Frame and yet
others will cause the values of html <input > fields to change. From what
I've seen, multiple threads play happily with the browser event processing,
but I have to admit to being curious as to why it just works. Especially
with JSObject.call() being able to return a function result and the
potential for recursion with JS->Applet->JS->Applet->JS and so on. .
.(imagine a circle
PS. It looks like Java will be available on the iPhone after all? Does
anyone know more?
- Show quoted text -