diff options
Diffstat (limited to 'httemplate/elements/xmlhttp.html')
-rw-r--r-- | httemplate/elements/xmlhttp.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html index a9e65c790..2f4f0d555 100644 --- a/httemplate/elements/xmlhttp.html +++ b/httemplate/elements/xmlhttp.html @@ -14,17 +14,19 @@ Example: ); </%doc> +<%shared> +my %initialized = ();#won't work if component is "preloaded"... so don't do that +</%shared> <& /elements/rs_init_object.html &> <& /elements/init_overlib.html &> <SCRIPT TYPE="text/javascript"> % foreach my $func ( @{$opt{'subs'}} ) { % -% my $furl = $url; -% $furl =~ s/\"/\\\\\"/; #javascript escape -%#" -% - +% next if $initialized{$key.$func}++; +% +% my $furl = $url; +% $furl =~ s/\"/\\\\\"/; #javascript escape (fix gvim syntax: ") function <%$key%><%$func%>() { // count args; build URL |