html output with javascript

classic Classic list List threaded Threaded
3 messages Options
| Threaded
Open this post in threaded view
|

html output with javascript

Laure QUINTRIC
Hello galaxy users,

one of my tools returns an html output in which I have links to images
and javascripts.
Images and Javascripts of the dataset_XXX.dat file are located in a
dataset_XXX_files directory. Images are well displayed in galaxy output
but javascripts aren't executed. Even an alert('foo') cannot be retrieved.

Has somebody already experiment this ? In other related posts, it's said
to look at rgenetics fastqc wrapper but no javascript fonctions are
called in the fastqc_report.html.

Thanks,
Laure
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/
| Threaded
Open this post in threaded view
|

Re: html output with javascript

Dannon Baker-2
Hi Laure,

This is intentional behavior; galaxy sanitizes all html output as a security measure by default.  You can turn this off on your instance by changing "sanitize_all_html" to False in your universe_wsgi.ini.

There's a Trello card to track implementation of allowing administrators to individually pick which tools to trust, which you can see (and vote for, or follow) here:  https://trello.com/c/8iMhKlPX

-Dannon


On Wed, Feb 5, 2014 at 9:44 AM, Laure QUINTRIC <[hidden email]> wrote:
Hello galaxy users,

one of my tools returns an html output in which I have links to images and javascripts.
Images and Javascripts of the dataset_XXX.dat file are located in a dataset_XXX_files directory. Images are well displayed in galaxy output but javascripts aren't executed. Even an alert('foo') cannot be retrieved.

Has somebody already experiment this ? In other related posts, it's said to look at rgenetics fastqc wrapper but no javascript fonctions are called in the fastqc_report.html.

Thanks,
Laure
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
 http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
 http://galaxyproject.org/search/mailinglists/


___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/
| Threaded
Open this post in threaded view
|

Re: html output with javascript

Laure QUINTRIC
Hi Dannon,

It works after setting sanitize_all_html to True, thanks a lot.

Laure

Le 05/02/2014 16:42, Dannon Baker a écrit :

> Hi Laure,
>
> This is intentional behavior; galaxy sanitizes all html output as a
> security measure by default.  You can turn this off on your instance by
> changing "sanitize_all_html" to False in your universe_wsgi.ini.
>
> There's a Trello card to track implementation of allowing administrators
> to individually pick which tools to trust, which you can see (and vote
> for, or follow) here: https://trello.com/c/8iMhKlPX
>
> -Dannon
>
>
> On Wed, Feb 5, 2014 at 9:44 AM, Laure QUINTRIC
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hello galaxy users,
>
>     one of my tools returns an html output in which I have links to
>     images and javascripts.
>     Images and Javascripts of the dataset_XXX.dat file are located in a
>     dataset_XXX_files directory. Images are well displayed in galaxy
>     output but javascripts aren't executed. Even an alert('foo') cannot
>     be retrieved.
>
>     Has somebody already experiment this ? In other related posts, it's
>     said to look at rgenetics fastqc wrapper but no javascript fonctions
>     are called in the fastqc_report.html.
>
>     Thanks,
>     Laure
>     _____________________________________________________________
>     Please keep all replies on the list by using "reply all"
>     in your mail client.  To manage your subscriptions to this
>     and other Galaxy lists, please use the interface at:
>     http://lists.bx.psu.edu/
>
>     To search Galaxy mailing lists use the unified search at:
>     http://galaxyproject.org/__search/mailinglists/
>     <http://galaxyproject.org/search/mailinglists/>
>
>
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/