From 9e342300c380e29af1b9678f1a9604609e0061b6 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 10 Sep 2005 14:50:57 +0000 Subject: ajax-style xmlhttprequest state/county/country selector! --- httemplate/misc/counties.cgi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 httemplate/misc/counties.cgi (limited to 'httemplate/misc/counties.cgi') diff --git a/httemplate/misc/counties.cgi b/httemplate/misc/counties.cgi new file mode 100644 index 000000000..80ae616c9 --- /dev/null +++ b/httemplate/misc/counties.cgi @@ -0,0 +1,17 @@ +<% + + my( $state, $country ) = $cgi->param('arg'); + + my @counties = + sort + map { s/[\n\r]//g; $_; } + map { $_->county; } + qsearch( 'cust_main_county', + { 'state' => $state, + 'country' => $country, + }, + ) + ; + + +%>[ <%= join(', ', map { qq("$_") } @counties) %> ] -- cgit v1.2.1