summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-cust_main-censustract.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/xmlhttp-cust_main-censustract.html')
-rw-r--r--httemplate/misc/xmlhttp-cust_main-censustract.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/httemplate/misc/xmlhttp-cust_main-censustract.html b/httemplate/misc/xmlhttp-cust_main-censustract.html
new file mode 100644
index 000000000..4b00898da
--- /dev/null
+++ b/httemplate/misc/xmlhttp-cust_main-censustract.html
@@ -0,0 +1,14 @@
+<% objToJson($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>