Question: embedding javascript into custom tool for galaxy xml
0
gravatar for ali
4.2 years ago by
ali20
Canada
ali20 wrote:

Is it possible to embed javascript code into galaxy's tool .xml files that when the tool is loaded in the browser, it will be executed?

This is to allow for custom event styling using javascript to have responsive animations on the tool page as demonstration

i have tried simple 

 

<script type="text/javascript">
//<![CDATA[
  alert((1 < 2) && (3 > 2));
//]]>
</script>

but it does not work

 

javascript tool galaxy xml • 1.4k views
ADD COMMENTlink modified 4.2 years ago • written 4.2 years ago by ali20
3
gravatar for Bjoern Gruening
4.2 years ago by
Bjoern Gruening5.1k
Germany
Bjoern Gruening5.1k wrote:

This is currently not possible. But you can link out your tool to a webserver, do your changes and link the data/paramters back in, if you want. For an example please the many of the get-data tools.

Moreover, a big rewrite of the tool rendering is on its way. Aysam is doing a lot of work to make the tool form more advanced and prettier.
 

ADD COMMENTlink written 4.2 years ago by Bjoern Gruening5.1k

Im sorry, I do not quite understand by what you mean to link out your tool to a web server,

"For an example please the many of the get-data tools", I do not quite understand what you are trying to say here

please elaborate

ADD REPLYlink written 4.2 years ago by ali20

Have a look at: https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/data_source/jmoleditor

You can draw a molecule and play around with JS and get the results back into Galaxy.

ADD REPLYlink written 4.2 years ago by Bjoern Gruening5.1k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 169 users visited in the last hour