The only thing I can suggest is to make sure the URL in the new web 
browser window includes the hgt.customText parameter.

- Greg


On 6/11/12 4:35 PM, Michelle Ly wrote:
> Hi there,
>
> I'm a new user to genome browsers.  I'm trying to create a GWT
> application that lets users select some parameters and then open a UCSC
> browser.  As a start, I have a button that just opens a custom track.
> I'm testing with one of the examples provided on the website:
>
> http://genome.ucsc.edu/cgi-bin/hgTracks?org=human&position=chr22&hgt.customText=http://genome.ucsc.edu/goldenPath/help/examples/ct_example1.txt
> <http://genome.ucsc.edu/cgi-bin/hgTracks?org=human&position=chr22&hgt.customText=http://genome.ucsc.edu/goldenPath/help/examples/ct_example1.txt>
>
> It works when I simply copy and paste that url into a new window, but if
> I try to open it via code, it doesn't work:
>
> Button b = new Button("Open", new ClickHandler() {
>           public void onClick(ClickEvent event) {
>
> Window.open("http://genome.ucsc.edu/cgi-bin/hgTracks?org=human&position=chr22&hgt.customText=http://genome.ucsc.edu/goldenPath/help/examples/ct_example1.txt";,
> "_blank", "");
>           }
>         });
>
> It opens up a generic view of chromosome 22 instead.  Any ideas?
>
> -Michelle
>
>
> _______________________________________________
> Genome maillist  -  [email protected]
> https://lists.soe.ucsc.edu/mailman/listinfo/genome
_______________________________________________
Genome maillist  -  [email protected]
https://lists.soe.ucsc.edu/mailman/listinfo/genome

Reply via email to