From c82d349f864e6bd9f96fd1156903bc1f7193a203 Mon Sep 17 00:00:00 2001 From: cvs2git Date: Mon, 27 Dec 2010 00:04:45 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'. --- httemplate/elements/xmlhttp.html | 112 --------------------------------------- 1 file changed, 112 deletions(-) delete mode 100644 httemplate/elements/xmlhttp.html (limited to 'httemplate/elements/xmlhttp.html') diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html deleted file mode 100644 index ac6f9916e..000000000 --- a/httemplate/elements/xmlhttp.html +++ /dev/null @@ -1,112 +0,0 @@ -<%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 - - ); - - -<% include( '/elements/rs_init_object.html' ) %> - -<%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'; - - -- cgit v1.2.1