<script type= "Text/javascript" >
Create Ajax
function Initxmlhttp ()
{
var xmlhttp
try {
Xmlhttp=new ActiveXObject ("msxml2.xmlhttp");
catch (e) {
try {
Xmlhttp=new ActiveXObject ("Microsoft.XMLHTTP");
catch (E) {
Xmlhttp=false;
}
}
if (!xmlhttp && typeof xmlhttprequest!= ' undefined ') {
try {
XMLHTTP = new XMLHttpRequest ();
catch (e) {
Xmlhttp=false;
}
}
if (!xmlhttp && window.createrequest) {
try {
XMLHTTP = Window.createrequest ();
catch (e) {
Xmlhttp=false;
}
}
return XMLHTTP;
}
Show
PType Column ID
Liclass node Identification ID
ID Bar ID
VC node points
function Drawselect (PTYPE,LICLASS,ID,VC) {
element = document.getElementById ("S_" + VC);//Get the next node position
var xmlhttp=initxmlhttp ();
var url= "type.php?act=selectx&ptype=" + ptype + "&liclass=" + Liclass + "&id=" + ID + "&vc=" + VC;
Xmlhttp.open ("Get", url,true);/Asynchronous transfer
Xmlhttp.open ("Get", url,false)//synchronous transmission for all levels
Xmlhttp.onreadystatechange=function () {
if (xmlhttp.readystate==4 && xmlhttp.status==200) {
Element.innerhtml=xmlhttp.responsetext;
}
}
Xmlhttp.send (NULL); Start running
}