From: Jon A. <jon...@du...> - 2010-04-01 14:16:46
|
A little php code inserted in the javascript could get the host dynamically: Of course, that means we've now added yet another framework to the app, but php is already enabled on the apache server. <script language="Javascript"> var hostName = <?= $_SERVER['SERVER_NAME'] ?> </script> -Jon On Apr 1, 2010, at 10:05 AM, William Piel wrote: > > On Apr 1, 2010, at 8:40 AM, Hilmar Lapp wrote: > >> On Apr 1, 2010, at 9:11 AM, William Piel wrote: >> >>> Rather than a PURL, how about just hard-coding "www.treebase.org"? >>> (do we have a parameter init file where this can be stored?) >> >> >> That's possible, but I'd do that only as a last resort, because it >> would be different between dev/staging/production deployments. >> >> -hilmar > > If using javascript, it would have to change links like this: > > http://www.phylowidget.org/full/?tree='http://localhost:8080/treebase-web/tree_for_phylowidget/TB2:Tr300' > > to this: > > http://www.phylowidget.org/full/?tree='http://www.treebase.org/treebase-web/tree_for_phylowidget/TB2:Tr300' > > on two different pages. This page: > > http://www.treebase.org/treebase-web/search/treeSearch.html > > and this page: > > http://www.treebase.org/treebase-web/search/study/trees.html?id=2344 > > bp > > > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------- Jon Auman Systems Administrator National Evolutionary Synthesis Center Duke University http:www.nescent.org jon...@ne... ------------------------------------------------------ |