Details
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
> 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