Example of Java Applet passing Object as parameter to JavaScript Event
$30-200 USD
Kapalı
İlan edilme: 15 yıldan fazla önce
$30-200 USD
Teslimde ödenir
I need an example of how to write a Java Appet that triggers an event in JavaScript in HTML page, where a parameter of the event is an object.
For example, Let's say I have an applet? Applet1, that triggers and event? Event1 with 2 parameters? ? ? Param1, Param2.? ? ? ? I want to be able to have Param1 be able to be an object with 3 or 4 properties of it's own.? ? So the JavaScript will have code in the event subroutine that reads and/or sets the properties of Param1.? ? ? ?
What is needed is sample code for the Java Applet, and JavaScript in an HTML page.? ? ?
## Deliverables
Basically this project is intended to help me learn how to implement a feature in a Java Applet.
I need an example of how to write a Java Appet that triggers an event in JavaScript in HTML page, where a parameter of the event is an object.
For example, Let's say I have an applet? Applet1, that triggers and event? Event1 with 2 parameters? ? ? Param1, Param2.? ? ? ? I want to be able to have Param1 be able to be an object with 3 or 4 properties of it's own.? ? So the JavaScript will have code in the event subroutine that reads and/or sets the properties of Param1.? ? ? ? ?
Example, user clicks some area inside the Java Applet,? An event is triggered to be captured in the JavaScript, with a parameter Position having
two properties X and Y which the Java Applet can read? ? ? Param1.X, and Param1.Y? .
For a BONUS - I would also like to be able to have the Applet have Object like properties so that I can write some JavaScript code like
? ? ? ? Applet.SomeObject.X = value?
? ? ? ? Applet.SomeObject.Y = value
=============================