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

enable javascript: execution by the applet via the link out mechanism

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Component/s: JVL-Ajax
    • Labels:
      None

      Description

      On 21/07/2010 14:33, Patrick Winters wrote:
      > Hi,
      > I was wondering if it would be possible to have an embedded applet
      > execute some javascript. I'm embedding jalview into a larger web
      > application, and I need to jalview to notify javascript of some
      > events. It seems like it should be possible with a few tweaks. The
      > link-out mechanism could be used (for example) with a link url of
      > "javascript:doSomething();", although jalview is hard coded to open
      > links in new windows. I had a similar problem with an applet called
      > PhyloWidget, but this applet allows you to customize its context
      > menus. I was able to extend the standard LinkOut class and override
      > the opening of links to load in the same target as the applet. Can
      > Jalview be extended or customized in this way? If not, can you point
      > me to the appropriate code so that I can modify and use my own jalview
      > build?
      >
      > ex.
      > <applet>
      > <param name="linkLabel_1" value="Set Target">
      > <param name="linkUrl_1"
      > value="javascript:PFP.Family.ProteinTarget.setTarget({protein:$SEQUENCE_ID$,domain:null});">
      > </applet>
      > --
      > Patrick

        Attachments

          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: