chr1 | 4747 | 479 | 673 | 408 | 89 | 68.23 | 26.21 | http://genome.ucsc.edu/cgi-bin/hgTracks?db=m9&position=chr1:4747-4119 |
chr1 | 4998 | 476 | 919 | 499 | 16 | 95.93 | 22.77 | http://genome.ucsc.edu/cgi-bin/hgTracks?db=m9&position=chr1:4798-4316 |
Hi,
I want to do this using a function which converts each URL into an html link ( after the .text() was called).
(For example to use: https://github.com/maranomynet/linkify).
But now the galaxy code is a bit different and I can't find where should I change the code.
I have found the _renderCell function here: static/scripts/mvc/data.js, but I didn't succeed in changing it to add links to the html.
What am I doing wrong?
Thanks,
HagaiOn Sun, Feb 3, 2013 at 1:06 PM, Hagai Cohen <hagai26@gmail.com> wrote:
Right.
I will convert it to text, allowing only simple links (<a> with href only) to be shown.
Thanks,
HagaiOn Wed, Jan 30, 2013 at 8:03 PM, James Taylor <james@jamestaylor.org> wrote:
You may want to be careful with this solution because it allows script
injection, any HTML including javascript in the uploaded tabular file
will be executed by the .html call, with complete access to everything
in the Galaxy browser window (like your session cookies).
--
James Taylor, Assistant Professor, Biology/CS, Emory University
> ___________________________________________________________
On Tue, Jan 29, 2013 at 7:18 AM, Hagai Cohen <hagai26@gmail.com> wrote:
> Hi,
> I found a simple solution.
>
> In the file:
> templates/dataset/tabular_chunked.mako
> inside the method: renderCell - replace all jQuery .text(..) calls with
> .html(..) calls.
>
> Note:
> Any entry in the csv with html syntax will be shown like html (links, tags.
> etc).
>
>
>
>
>
>
> On Tue, Jan 29, 2013 at 1:39 PM, Hagai Cohen <hagai26@gmail.com> wrote:
>>
>> Hi,
>> I have a tool which outputs a csv file with links.
>> When I press the eye icon - I would like these links to be shown as links
>> in the browser.
>> It is possible?
>>
>> Thanks,
>> Hagai
>
>
>
> 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/