Add applet initialization callback

Registered by Ivan Zolotukhin

Our SAMPified http://ocl.sai.msu.ru application needs to know the exact moment when SAMP applet was initialized in a browser and ready to respond to JavaScript instructions. For that purpose we propose to add (hardcoded) JavaScript callback function inside JS websampconnector object that is called right after applet initialization. JS developer will be able to use the function for his convenience then.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Essential
Drafter:
None
Direction:
Approved
Assignee:
JBerthier
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon release-1.5rc1
Started by
JBerthier
Completed by
JBerthier

Related branches

Sprints

Whiteboard

A mechanism of callback function has been implemented in the JApplet. But it is not an anonymous callback function, because the JApplet calls a Javascript method by its name, and thus it needs to know its name. Moreover, as the Java JSObject call method does not allow to call a namespaced function, a binding between the name of the callback function (without namespace) and its real name (with namespace) must be add at the end of the Javascript file (websampconnector.js). By default, the callback function is the setStatusIcon method.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.