Ç뿴϶˽ű¾£¬ÎÒ×öµÄÒ»¸ö½Å±¾¼ì²â±êÌâÊÇ·ñÖظ´µÄ£¬ÈôÖظ´£¬²»ÈÃÆäÌá½»¡£
º¯ÊýÈë¿ÚÊÇ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); //½¨Á¢Óë·þÎñÆ÷µÄÁ¬½Ó.
ÎÒѧµÄÊÇC++,¶ÔÓÚJava²»ÊǺÜÁ˽⡣×î½ü¿´ÁËJava·½ÃæµÄÊ飬¶ÔÓÚһЩ¸ÅÄîÓÐÁ˳õ²½Á˽⣬ϣÍû´ó¼ÒºÍÎÒÁÄÁÄ£¬Ì¸Ì¸Java £¬JSP JavaScriptÕ⼸¸ö¸ÅÄî¡£
1. javascriptºÍCSS, HTMLÒ»Æ𽫻ᷢË͸øä¯ÀÀÆ÷½øÐÐÖ´ÐУ¬×îÖÕ½«Ò³Ã ......
ÔÚ¿Í»§¶ËÖªµÀÎļþ·¾¶£¬ÎÒÏë²»ÓÃfileUpload¿Ø¼þ°ÑÕâ¸öÎļþ´«µ½·þÎñÆ÷£¬Ò²¿ÉÒÔÓÃfileupload¿Ø¼þµ«ÊÇÕâ¸ö¿Ø¼þ±ØÐëÒþ²Ø£¨¾ÍÊDz»ÓÃÕâ¸ö¿Ø¼þÀ´Ñ¡Ôñ·¾¶£©
ÇëÎÊÄܲ»ÄÜʵÏÖ£¡£¡£¡
ûÓÐÈË×ö¹ýÂ𣡣¡£¡£¡£¡
ÄDz»¾ÍÊÇľÂí ......