Hi Michelle,

Unfortunately, we don't have the resources to help you debug your Java 
code.  Perhaps someone else on this list with some Java expertise might 
reply. Other than that, if this might be a more general issue with how 
Java deals with opening new windows (no idea), you might try something 
like http://stackoverflow.com/.

Good luck!

If you have any additional questions, please reply to: [email protected]
-
Greg Roe
UCSC Genome Bioinformatics Group



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