summaryrefslogtreecommitdiff
path: root/httemplate/elements/xmlhttp.html
diff options
context:
space:
mode:
authorivan <ivan>2006-03-11 05:21:20 +0000
committerivan <ivan>2006-03-11 05:21:20 +0000
commit36d9b47e5c20ae3bc71c0bd0eaf289b566d0cf7c (patch)
tree29289e6312e082e7c3e6190f88a2852113f20380 /httemplate/elements/xmlhttp.html
parent5f155263a2c9837640d2fab0817d1f36b8cb3f8c (diff)
fix the progressbar bug with multiple progressbar forms on a page
Diffstat (limited to 'httemplate/elements/xmlhttp.html')
-rw-r--r--httemplate/elements/xmlhttp.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html
index 28130e501..e03438822 100644
--- a/httemplate/elements/xmlhttp.html
+++ b/httemplate/elements/xmlhttp.html
@@ -4,6 +4,7 @@
my $url = $opt{'url'};
my $method = exists($opt{'method'}) ? $opt{'method'} : 'GET';
#my @subs = @{ $opt{'subs'};
+ my $key = exists($opt{'key'}) ? $opt{'key'} : '';
$url .= ( ($url =~ /\?/) ? '&' : '?' )
if $method eq 'GET';
@@ -38,10 +39,10 @@
%>
- function <%=$func%>() {
+ function <%=$key%><%=$func%>() {
// count args; build URL
var url = "<%=$furl%>";
- var a = <%=$func%>.arguments;
+ var a = <%=$key%><%=$func%>.arguments;
var args;
var len;