Re: [galaxy-dev] html output with javascript

2014-02-05 Thread Dannon Baker
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 laure.quint...@ifremer.frwrote:

 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/

Re: [galaxy-dev] html output with javascript

2014-02-05 Thread 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
laure.quint...@ifremer.fr mailto:laure.quint...@ifremer.fr 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/


Re: [galaxy-dev] HTML output with Javascript

2012-03-22 Thread Dannon Baker
Assuming everything is generated correctly for the html report, what you're 
probably running into is Galaxy's html sanitization.  In your Galaxy instance's 
universe_wsgi.ini you can set the following option (to false) to disable this:

# Sanitize All HTML
# By default, all tool output served as 'text/html' will be sanitized
# thoroughly. This can be disabled if you have special tools that require
# unaltered output.
#sanitize_all_html = True

-Dannon

On Mar 22, 2012, at 7:35 PM, Jose Navas wrote:

 Hi Galaxy developers,
 
 I have a tool that generates an html output which executes some javascript 
 functions that are defined in a *.js file. I put this file under the 
 $output1.files_path but when I display the html file in the galaxy browser, 
 it doesn't executes the Javascript. What can I do to execute Javascripts in 
 the Galaxy browser?
 
 Thanks,
 
 Jose
 ___
 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/

___
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/


Re: [galaxy-dev] HTML output with Javascript

2012-03-22 Thread Jose Navas

Hi Dannon,
Thank you for your quick answer. I search in my Galaxy instance's 
universe_wsgi.ini and I didn't find this option... Where can I add this option?
Thanks,
Jose

 Subject: Re: [galaxy-dev] HTML output with Javascript
 From: dannonba...@me.com
 Date: Thu, 22 Mar 2012 19:44:05 -0400
 CC: galaxy-dev@lists.bx.psu.edu
 To: josenavasmol...@hotmail.com
 
 Assuming everything is generated correctly for the html report, what you're 
 probably running into is Galaxy's html sanitization.  In your Galaxy 
 instance's universe_wsgi.ini you can set the following option (to false) to 
 disable this:
 
 # Sanitize All HTML
 # By default, all tool output served as 'text/html' will be sanitized
 # thoroughly. This can be disabled if you have special tools that require
 # unaltered output.
 #sanitize_all_html = True
 
 -Dannon
 
 On Mar 22, 2012, at 7:35 PM, Jose Navas wrote:
 
  Hi Galaxy developers,
  
  I have a tool that generates an html output which executes some javascript 
  functions that are defined in a *.js file. I put this file under the 
  $output1.files_path but when I display the html file in the galaxy browser, 
  it doesn't executes the Javascript. What can I do to execute Javascripts in 
  the Galaxy browser?
  
  Thanks,
  
  Jose
  ___
  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/
 
  ___
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/

Re: [galaxy-dev] HTML output with Javascript

2012-03-22 Thread Dannon Baker
It's in the [app:main] section.  See the universe_wsgi.ini.sample file for the 
exact position-- this file will always be up-to-date with the initial 
configuration options that might have shown up as you've updated your galaxy 
instance.

-Dannon


On Mar 22, 2012, at 7:50 PM, Jose Navas wrote:

 Hi Dannon,
 
 Thank you for your quick answer. I search in my Galaxy instance's 
 universe_wsgi.ini and I didn't find this option... Where can I add this 
 option?
 
 Thanks,
 
 Jose
 
  Subject: Re: [galaxy-dev] HTML output with Javascript
  From: dannonba...@me.com
  Date: Thu, 22 Mar 2012 19:44:05 -0400
  CC: galaxy-dev@lists.bx.psu.edu
  To: josenavasmol...@hotmail.com
  
  Assuming everything is generated correctly for the html report, what you're 
  probably running into is Galaxy's html sanitization. In your Galaxy 
  instance's universe_wsgi.ini you can set the following option (to false) to 
  disable this:
  
  # Sanitize All HTML
  # By default, all tool output served as 'text/html' will be sanitized
  # thoroughly. This can be disabled if you have special tools that require
  # unaltered output.
  #sanitize_all_html = True
  
  -Dannon
  
  On Mar 22, 2012, at 7:35 PM, Jose Navas wrote:
  
   Hi Galaxy developers,
   
   I have a tool that generates an html output which executes some 
   javascript functions that are defined in a *.js file. I put this file 
   under the $output1.files_path but when I display the html file in the 
   galaxy browser, it doesn't executes the Javascript. What can I do to 
   execute Javascripts in the Galaxy browser?
   
   Thanks,
   
   Jose
   ___
   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/
 

___
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/