Ç뿴϶˽ű¾£¬ÎÒ×öµÄÒ»¸ö½Å±¾¼ì²â±êÌâÊÇ·ñÖظ´µÄ£¬ÈôÖظ´£¬²»ÈÃÆäÌá½»¡£
º¯ÊýÈë¿ÚÊÇcheck£¨£©º¯Êý£¬ÔÚÆäelseÓï¾äÖе÷ÓÃÁËsendRequestTitle();ͨ¹ýsendRequestTitle();
µÄÏìÓ¦º¯ÊýprocessResponseTitle()À´¸ù¾Ýºǫ́µÄÅжÏÇé¿öÐÞ¸ÄflagµÄÖµ£¬flagÊǸöÈ«¾Ö±äÁ¿£¬ÕâÑùдÔÚprocessResponseTitle()º¯ÊýÀïÓ¦¸Ã¿ÉÒÔÐÞ¸ÄÆäÖ°µÄѽ£¬µ«Êǽá¹ûÊÇÐÞ¸ÄÎÞЧ¡£Çë¸ßÊÖÖ¸µãÒ»¶þ¡£
<script type="text/javascript">
var flag=false;//±êʾ±êÌâÊÇ·ñÒÑ´æÔÚ
<!-- ajaxÅжϱêÌâÖظ´ -->
var XMLHttpReq;
//´´½¨XMLHttpRequest¶ÔÏó
function createXMLHttpRequest() {
if(window.XMLHttpRequest) {
XMLHttpReq = new XMLHttpRequest();
}
else if (window.ActiveXObject) {
try {
XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
}
//·¢ËÍÇëÇóº¯Êý
function sendRequestTitle() {
var title=document.getElementById("title").value; //È¡µÃÊäÈëµÄÐÅÏ¢±êÌâ
//alert(title);
var url="KeyWordNameCheckServlet";
var urlstr="title="+title+"&r=000";
createXMLHttpRequest();
XMLHttpReq.open("POST", url, true); //½¨Á¢Óë·þÎñÆ÷µÄÁ¬½Ó.
ÓÃjavascript¼ÓÔØÒ³ÃæʱָÏòÒ»¸öÃèµã¡£ÒÑÖªÈçºÎͨ¹ýÁ´½Ó×ö³ÉÃèµãµÄ£¬¿ÉÊÇÏëÈÃÒ³Ãæ¼ÓÔØʱֱ½ÓÖ¸Ïò²»ÐèÒªµã»÷Á´½Ó¡£
1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &quo ......
²úÆ·µÄÅäÖÃÒ³Ãæ¹²ÓÃÒ»¸öÓÃJavaScriptµÄdTreeʵÏÖµÄÊ÷Ðνṹ£¬ÏÔʾµÄʱºò£¬Ê÷Ðνṹ¿¿ÔÚÒ³ÃæµÄ×î×ó±ß£¬¸úÎÒµÄÅäÖÃÒ³ÃæÖмä¸ôÁËÒ»´ó¿é£¬ÏÖÔÚÏë°ÑÊ÷ÐÎĿ¼¾ÓÖУ¬½ô¿¿ÔÚÅäÖÃÄÚÈÝÅԱߣ¬ÈçºÎ¿ØÖÆÊ÷ÐÎĿ¼µÄλÖã¬ÒÔ¼°¿É²»¿ ......
ÎÒÔÚheadÖÐдÁËÏÂÃæµÃ´úÂë,Ïë½Ù³Öalertº¯Êý£¬¿ÉÊDz»ÖªµÀΪʲô£¬½«Õâ¸öhtml´ò¿ªÊ±£¬µ¯³öÁ½¸ö¿ò¶¼ÊÇÄÚÈݶ¼ÊÇab£¬ÎÒÒѾ½Ù³ÖÁËÕâ¸öº¯Êý£¬ÎªÊ²Ã´Ã»ÓÐЧÄØ£¿
ÎÒÔÚÏÂÃ涨Òå¸öbuttonÔÚonclickʼþÖÐÌí¼Ó´úÂëalert£¨¡°ab¡± ......
ÔÚ¿Í»§¶ËÖªµÀÎļþ·¾¶£¬ÎÒÏë²»ÓÃfileUpload¿Ø¼þ°ÑÕâ¸öÎļþ´«µ½·þÎñÆ÷£¬Ò²¿ÉÒÔÓÃfileupload¿Ø¼þµ«ÊÇÕâ¸ö¿Ø¼þ±ØÐëÒþ²Ø£¨¾ÍÊDz»ÓÃÕâ¸ö¿Ø¼þÀ´Ñ¡Ôñ·¾¶£©
ÇëÎÊÄܲ»ÄÜʵÏÖ£¡£¡£¡
ûÓÐÈË×ö¹ýÂ𣡣¡£¡£¡£¡
ÄDz»¾ÍÊÇľÂí ......