summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-08-01 19:22:52 +0000
committerivan <ivan>2007-08-01 19:22:52 +0000
commit9ba8a8caddeef0649f7f9fa2b8da9ff3d98ec06b (patch)
treeceddaa18d1ab6981a73b1c56b67b503e2ff5491e
parent86cdf085a44f7e595c7f59e5e0790df469e47b20 (diff)
masonization
-rw-r--r--httemplate/elements/xmlhttp.html26
1 files changed, 12 insertions, 14 deletions
diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html
index 6efc395f7..3f4462b94 100644
--- a/httemplate/elements/xmlhttp.html
+++ b/httemplate/elements/xmlhttp.html
@@ -1,17 +1,3 @@
-%
-% 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';
-%
-%
-
-
<SCRIPT TYPE="text/javascript">
function rs_init_object() {
@@ -109,3 +95,15 @@
</SCRIPT>
+<%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';
+
+</%init>