We have application where we need to do lots of client side validation and our client application is built completely in JAVA SWING, is there a way to execute JAVASCRIPT validation within a event triggered by an applet. thanks, Sriram.
Sriram, I know that Netscape provides a JSObject class that will let your applet communicate with JavaScript on the page it is in... I personally don't know that much about it, though, so you will have to go to Netscape to look for more information on it... HTH, -Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Peter Gragert
Ranch Hand
Joined: Jan 16, 2001
Posts: 421
posted
0
Hallo, Its definitely possible at least with IE5 do interact applets with java script. I have at least one example from Prof. D. Eck. GummyGraph applet: Here a short impression:< SCRIPT > <!-- function getGraphPoints() { var ct = document.graphApplet.getPointCount(); var str = "Graph has " + ct + " points.\n\n"; for (var i = 0; i < ct; i++) { str = str + "For x = " + document.graphApplet.getX(i) + ", y = " + document.graphApplet.getY(i) + " and dy/dx = " + document.graphApplet.getDerivative(i) + "\n"; } document.control.pointDisplay.value = str; } // --> Contact me if you are interested in full source code and please refer to this 'reply' such that I know ... . Peter [This message has been edited by Peter Gragert (edited March 03, 2001).]