masonization
authorivan <ivan>
Wed, 1 Aug 2007 19:22:52 +0000 (19:22 +0000)
committerivan <ivan>
Wed, 1 Aug 2007 19:22:52 +0000 (19:22 +0000)
httemplate/elements/xmlhttp.html

index 6efc395..3f4462b 100644 (file)
@@ -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() {
 
 
 </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>