22 <script type=\"text/javascript\">
23 function js_url(val, url)
25 window.location.assign(url+val);
47 $HTML .=
"\n<div id='dmessage'>";
49 $HTML .=
"<button name='eraseme' value='close' class='btn btn-default btn-sm' onclick='rmMsg()'> $text</button>\n";
51 $HTML .= $keep .
"\n</p>";
54 $HTML .=
"<script type='text/javascript'>\n" .
55 "function rmMsg(){\n" .
56 " var div = document.getElementById('dmessage');\n" .
57 " var parent = div.parentNode;\n" .
58 " parent.removeChild(div);\n" .
93 if ($IncludeScriptTags) {
94 $HTML=
"<script language='javascript'>\n<!--\n";
97 $HTML .=
"var $RequestName=null;\n";
99 $HTML .=
"function {$RequestName}_Get(Url)\n";
101 $HTML .=
"if (window.XMLHttpRequest)\n";
103 $HTML .=
" $RequestName=new XMLHttpRequest();\n";
106 $HTML .=
"else if (window.ActiveXObject)\n";
108 $HTML .=
" $RequestName=new ActiveXObject('Microsoft.XMLHTTP');\n";
111 $HTML .=
"if ($RequestName!=null)\n";
113 $HTML .=
" $RequestName.onreadystatechange={$RequestName}_Reply;\n";
119 $HTML .=
" $RequestName.open('GET',Url,true);\n";
120 $HTML .=
" $RequestName.send(null);\n";
124 $HTML .=
" alert('Your browser does not support XMLHTTP.');\n";
125 $HTML .=
" return;\n";
129 if ($IncludeScriptTags) {
130 $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.