Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-621

javascript structure viewer harness to pass messages between Jmol and Jalview when running as distinct applets

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.7
    • 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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jprocter James Procter
              Reporter:
              jprocter James Procter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: