HTML output with Javascript
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
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:
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: dannonbaker@me.com Date: Thu, 22 Mar 2012 19:44:05 -0400 CC: galaxy-dev@lists.bx.psu.edu To: josenavasmolina@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:
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: dannonbaker@me.com Date: Thu, 22 Mar 2012 19:44:05 -0400 CC: galaxy-dev@lists.bx.psu.edu To: josenavasmolina@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:
participants (2)
-
Dannon Baker
-
Jose Navas