X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fxmlhttp.html;h=2df3c42c9c8dc9423e5aeecf7d796be4ae0fae2f;hp=6efc395f7a94eb3ccb667a6721dfa0dc9710b9f6;hb=43e42a04ae37ca7a84c05d9ff8b94d9f8cde6dcf;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0 diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html index 6efc395f7..2df3c42c9 100644 --- a/httemplate/elements/xmlhttp.html +++ b/httemplate/elements/xmlhttp.html @@ -1,37 +1,22 @@ -% -% my ( %opt ) = @_; -% -% 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'; -% -% +<%doc> +Example: - +<%init> +my ( %opt ) = @_; + +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'; + +