document.getElementById('minixzt').innerHTML=""; function saveSRSXZT(){ if (document.srsxzt_form.content.value==''){ document.srsxzt_form.content.focus(); return false; } if(document.srsxzt_form.iss.checked) iss=0 else iss=1 getSRSxztdata('Plugins/SRS_XiaoZhiTiao/minixzt.asp?action=post&s=8&content='+encodeURIComponent(document.srsxzt_form.content.value)+'&iss='+iss); } function createxmlhttp(){ var xmlhttp=false; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch (e) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); if (xmlhttp.overrideMimeType) {//设置MiME类别 xmlhttp.overrideMimeType('text/xml'); } } return xmlhttp; } function getSRSxztdata(sURL){ var xmlhttp=createxmlhttp(); if(!xmlhttp){ alert("你的浏览器不支持XMLHTTP!!"); return; } xmlhttp.open("GET",sURL,true); //中文乱码!! //xmlhttp.setrequestheader("content-type","application/x-www-form-urlencoded"); xmlhttp.onreadystatechange= function () { if(xmlhttp.readyState==4){ if(xmlhttp.status==200){ //alert(xmlhttp.responseText); //return xmlhttp.responseText; //return xmlhttp.responseText; document.getElementById('minixzt').innerHTML=xmlhttp.responseText; } } } xmlhttp.send(null); }