Click to See Complete Forum and Search --> : Java, Javascript and LiveConnect


November 24th, 1999, 11:29 AM
I have a very specific question. First, however, I need to give a little background. I know that LiveConnect can be used so that Java Applets can communicate with JavaScript functions. However, I can only get it to work in IE (even though LiveConnect was developed by Netscape). What's more, I can only get the communication to work if frames are not used.

So my question is, can LiveConnect (or anything) be used to allow Java Applets to control javascript functions? Specifically, when the user rolls over various parts of my applet (in one frame) I want an image to change (in another frame). THESE REQUIREMENTS CAN'T CHANGE!!! In other words, don't suggest that I use a big graphic in one frame and when I roll over different parts of it, the image changes in another frame. I already know how to do that. Isn't it funny that you're always asked to do what you don't know how to do?! Anyway, any help will be appreciated.

Mike Lauve
December 9th, 1999, 04:18 PM
I'm trying to do the same thing, but so far have not been successful. Could you possibly share some code examples?

mlauve@unisrv.com

MLauve
mlauve@unisrv.com
Emergent Technologies, Inc.

Sarfin
February 5th, 2000, 11:33 PM
I don't know if it would work, but if you put a "requestFocus()" in your applet and give it a public variable that defines what picture to display, then theoretically you could set up javascript to detect the focus then check the variable repeatedly to see if the picture needs changing. Then the javascript could actually change the picture.

Hope that helps..

Sarfin