From 9dc88f6c738f30ce1eb6339ba4b739b45555dea4 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 8 May 2008 12:47:13 +0000 Subject: address standardization part one, finally checked in from here --- httemplate/edit/cust_main.cgi | 66 +++++++++++++++- httemplate/elements/xmlhttp.html | 16 ++++ .../xmlhttp-cust_main-address_standardize.html | 87 ++++++++++++++++++++++ httemplate/misc/xmlhttp-cust_main-search.cgi | 2 +- 4 files changed, 168 insertions(+), 3 deletions(-) create mode 100644 httemplate/misc/xmlhttp-cust_main-address_standardize.html (limited to 'httemplate') diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index aae809370..3d727dd2c 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -210,9 +210,19 @@ Service address ) %> +<% include( '/elements/xmlhttp.html', + 'url' => $p.'misc/xmlhttp-cust_main-address_standardize.html', + 'subs' => [ 'address_standardize' ], + #'method' => 'POST', #could get too long? + ) +%> + -
+ % foreach my $hidden ( % 'birthdate', % @@ -438,7 +500,7 @@ function copyelement(from, to) {
-"> +" onClick="document.bottomform.submitButton.disabled=true; bottomfixup(this.form);">
diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html index 3f4462b94..d0c799095 100644 --- a/httemplate/elements/xmlhttp.html +++ b/httemplate/elements/xmlhttp.html @@ -1,3 +1,19 @@ +<%doc> + +Example: + + include( '/elements/xmlhttp.html', + # required + 'url' => $p.'misc/something.html', + 'subs' => [ 'subroutine' ], + + # optional + 'method' => 'GET', #defaults to GET, could specify POST + 'key' => 'unique', #unique key + + ); + +