33 <script type=\"text/javascript\"> 34 function js_url(val, url) 36 window.location.assign(url+val); 60 $HTML .=
"\n<div id='dmessage'>";
62 $HTML .=
"<button name='eraseme' value='close' onclick='rmMsg()'> $text</button>\n";
64 $HTML .= $keep .
"\n</p>";
67 $HTML .=
"<script type='text/javascript'>\n" .
68 "function rmMsg(){\n" .
69 " var div = document.getElementById('dmessage');\n" .
70 " var parent = div.parentNode;\n" .
71 " parent.removeChild(div);\n" .
106 if ($IncludeScriptTags) {
107 $HTML=
"<script language='javascript'>\n<!--\n";
110 $HTML .=
"var $RequestName=null;\n";
112 $HTML .=
"function ${RequestName}_Get(Url)\n";
114 $HTML .=
"if (window.XMLHttpRequest)\n";
116 $HTML .=
" $RequestName=new XMLHttpRequest();\n";
119 $HTML .=
"else if (window.ActiveXObject)\n";
121 $HTML .=
" $RequestName=new ActiveXObject('Microsoft.XMLHTTP');\n";
124 $HTML .=
"if ($RequestName!=null)\n";
126 $HTML .=
" $RequestName.onreadystatechange=${RequestName}_Reply;\n";
132 $HTML .=
" $RequestName.open('GET',Url,true);\n";
133 $HTML .=
" $RequestName.send(null);\n";
137 $HTML .=
" alert('Your browser does not support XMLHTTP.');\n";
138 $HTML .=
" return;\n";
142 if ($IncludeScriptTags) {
143 $HTML .=
"\n// -->\n</script>\n";
displayMessage($Message, $keep=null)
Display a message.
ActiveHTTPscript($RequestName, $IncludeScriptTags=1)
Given a function name, create the JavaScript needed for doing the request.