Details
-
Type: New Feature
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.6
-
Fix Version/s: 2.7
-
Component/s: JVL-Ajax, Scriptable API, Structures
-
Labels:None
Description
A javascript broadcast/relay mechanism is needed to reliably pass events and commands between different applets that are running on the same page (the reason for this is that each applet is only able to reliably access objects within its own context - see comments below and this URL: https://jdk6.dev.java.net/plugin2/liveconnect/#MULTI_JVM ).
Script on the page would explicitly register applets with the mechanism:
with (jalviewJsBridge.js) {
jjsRegisterParticipant(document.jalviewApplet)
jjsRegisterParticipant(document.jmolApplet)
jjsRegisterParticipant(<javascript object implementing handler methods>)
}
In the case of jalview/interaction, this code should also provide tools to resolve positions in different coordinate frames - e.g. Structure position->alignment Position, Structure position->Sequence Position, Sequence Position->Alignment Position.
Script on the page would explicitly register applets with the mechanism:
with (jalviewJsBridge.js) {
jjsRegisterParticipant(document.jalviewApplet)
jjsRegisterParticipant(document.jmolApplet)
jjsRegisterParticipant(<javascript object implementing handler methods>)
}
In the case of jalview/interaction, this code should also provide tools to resolve positions in different coordinate frames - e.g. Structure position->alignment Position, Structure position->Sequence Position, Sequence Position->Alignment Position.
Attachments
Issue Links
- blocks
-
JAL-569 enable jalviewLite to automatically associate sequences in an alignment to structures in an existing Jmol instance
- Open
-
JAL-856 document new javascript functions for jalview 2.7
- Resolved
- depends on
-
JAL-927 certain sequences of javascript method calls to applet API fatally hang browser
- Resolved