summaryrefslogtreecommitdiff
path: root/httemplate/elements/rs_init_object.html
diff options
context:
space:
mode:
authorjeff <jeff>2010-01-08 16:05:04 +0000
committerjeff <jeff>2010-01-08 16:05:04 +0000
commit43e42a04ae37ca7a84c05d9ff8b94d9f8cde6dcf (patch)
treede3a12b93ad38d24bc15511d87e65ff5a6d3b9cd /httemplate/elements/rs_init_object.html
parent20b563c398c5c9264a998d31ae0d3d95454d526e (diff)
add a logout link (RT 1330 & 5518)
Diffstat (limited to 'httemplate/elements/rs_init_object.html')
-rw-r--r--httemplate/elements/rs_init_object.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/httemplate/elements/rs_init_object.html b/httemplate/elements/rs_init_object.html
new file mode 100644
index 000000000..3bb0b4279
--- /dev/null
+++ b/httemplate/elements/rs_init_object.html
@@ -0,0 +1,29 @@
+<%doc>
+
+Example:
+
+ include( '/elements/rs_init_object.html' );
+
+</%doc>
+<SCRIPT TYPE="text/javascript">
+
+ function rs_init_object() {
+ var A;
+ try {
+ A=new ActiveXObject("Msxml2.XMLHTTP");
+ } catch (e) {
+ try {
+ A=new ActiveXObject("Microsoft.XMLHTTP");
+ } catch (oc) {
+ A=null;
+ }
+ }
+ if(!A && typeof XMLHttpRequest != "undefined")
+ A = new XMLHttpRequest();
+ if (!A)
+ alert("Can't create XMLHttpRequest object");
+ return A;
+
+ }
+
+</SCRIPT>