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