From: Hilmar L. <hl...@ne...> - 2010-04-01 21:15:34
|
Youjun - doesn't this also mean that we are not using a locally modified version of PhyloWidget anymore? -hilmar On Apr 1, 2010, at 5: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 > > -- =========================================================== : Hilmar Lapp -:- Durham, NC -:- informatics.nescent.org : =========================================================== |