[Bio] / FigWebServices / FIG_Config.cgi Repository:
ViewVC logotype

View of /FigWebServices/FIG_Config.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (annotate)
Mon Jun 6 21:58:58 2011 UTC (8 years, 5 months ago) by devoid
Branch: MAIN
CVS Tags: mgrast_dev_08112011, mgrast_dev_06072011, mgrast_dev_08022011, rast_rel_2014_0912, myrast_rel40, rast_rel_2014_0729, mgrast_release_3_1_2, mgrast_release_3_1_1, rast_rel_2011_0928, mgrast_version_3_2, mgrast_dev_12152011, mgrast_dev_10262011, mgrast_release_3_1_0, HEAD
Adding FIG_Config.cgi a cgi-script that produces a javascript document that
contains the neccesary configuration details to boot up content on a given sandbox.
Right now this only includes FIG_CONFIG::cgi_url.

use strict;
use FIG_Config;
use CGI qw(header);

print header('text/javascript');

my $js = <<JAVASCRIPT;
var FIG_Config = {
    "cgi_url" : \"$FIG_Config::cgi_url\",
};

JAVASCRIPT

print $js;

1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3