X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Frs_init_object.html;h=ec44d439abe68aeed06008011876f2ed1cf359bc;hb=d4114381c5d95e8acd0d0fc2bbc2b3528bde2ecf;hp=3bb0b4279ec77198c606f0119983c3abf355c241;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git 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++ ) { +% }