summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-cust_main-censustract.html
blob: 4c708a4c4694c5b96434fa3dc48fa2ca16f7e1d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<% encode_json($return) %>\
<%init>

my %arg = $cgi->param('arg');
my $year = delete($arg{'year'});
my $return = get_censustract(\%arg, $year);
if ( $return =~ /^\d/ ) {
  $return = { 'censustract' => $return };
}
else {
  $return = { 'error' => $return };
}

</%init>