X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Frs_init_object.html;h=ec44d439abe68aeed06008011876f2ed1cf359bc;hp=3bb0b4279ec77198c606f0119983c3abf355c241;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=624b2d44625f69d71175c3348cae635d580c890b diff --git a/httemplate/elements/rs_init_object.html b/httemplate/elements/rs_init_object.html index 3bb0b4279..ec44d439a 100644 --- a/httemplate/elements/rs_init_object.html +++ b/httemplate/elements/rs_init_object.html @@ -1,10 +1,19 @@ <%doc> +The rs_init_object javascript function defined by this include instantiates and +returns a new object for XMLHTTP communication: on Microsoft browsers, an +ActiveXObject ("Msxml2.XMLHTTP" or "Microsoft.XMLHTTP"), or on other browsers, +an XMLHttpRequest object. + Example: - include( '/elements/rs_init_object.html' ); + <& /elements/rs_init_object.html &> +<%shared> +my $initialized = 0; #won't work if component is "preloaded"... so don't do that + +% if ( ! $initialized++ ) { +% }