From: William P. <wil...@ya...> - 2010-04-01 21:18:43
|
Thanks Youjun, the javascript doesn't seem to be responding here: http://130.132.27.212:8080/treebase-web/search/study/trees.html?id=264 bp On Apr 1, 2010, at 4:13 PM, youjun guo wrote: > Hi, Guys, > > These javascrpt work on my server and I expect they will also work on treebase.org: > > function openPhylowidget(tree_id) > { > var realURL = "http://www.phylowidget.org/full/?tree='http://"+location.host+"${url}"+"TB2:Tr"+tree_id+"'"; > window.open(realURL,'myplwidget') > } > > and then > > <a href="javascript:void(0)" onClick="openPhylowidget(${tree.id}"> > > Code was submitted to sourceforge and need a re-deployment to see the change. > > Thank you for all of you, have a good good Friday. > > Youjun > > On Thu, Apr 1, 2010 at 10:46 AM, Hilmar Lapp <hl...@ne...> wrote: > > On Apr 1, 2010, at 10:16 AM, Jon Auman wrote: > >> A little php code inserted in the javascript could get the host dynamically: > > Just a note, you don't need PHP for this. JavaScript can give you the server name directly. The PHP code would be wrong, as it executes server-side, not browser-side. > > -hilmar > > -- > =========================================================== > : Hilmar Lapp -:- Durham, NC -:- informatics.nescent.org : > =========================================================== > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Treebase-devel mailing list > Tre...@li... > https://lists.sourceforge.net/lists/listinfo/treebase-devel > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev_______________________________________________ > Treebase-devel mailing list > Tre...@li... > https://lists.sourceforge.net/lists/listinfo/treebase-devel William H. Piel Associate Director for Evolutionary Informatics Peabody 401, Yale University 170 Whitney Ave. New Haven CT 06511 (203) 436-4957 wil...@ya... |