Myeclipse+Ajax Àý×Ó
Ò»¸öMyEclipseÀïµÄAJAXÀý×Ó2008-03-19 19:53±¾Àý½«ÔÚÒ³ÃæµÄ²ÎÊýÒÔGetºÍPOSTÁ½ÖÖ·½Ê½´«µÝµ½·þÎñÆ÷£¬²¢»ØÏÔµ½Ò³Ã棻 ±¾Àý¹²°üÀ¨Á½¸öÖ÷ÒªÎļþgetAndPostExample.htmlºÍGetAndPostExample.javaÒÔ¼°Ò»¸öÅäÖÃÎļþweb.xml ½¨Á¢ÎļþµÄ²½Ö裺 1.ÔÚEclipseн¨Ò»¸öweb project-->ajax1 2.ÔÚajax1ÀïÃæÐ½¨Ò»¸ögetAndPostExample.html 3.ÔÚajax1ÀïÃæÐ½¨Ò»¸öservlet-->GetAndPostExample.java getAndPostExample.htmlÈçÏÂ
This is the description of my J2EE component This is the display name of my J2EE component GetAndPostExample com.ajax1.GetAndPostExample GetAndPostExample /GetAndPostExample index.jsp ÔÚÕâ¸ö¼òµ¥µÄAJAXµÄÀý×ÓÀïgetAndPostExaple.html¸ºÔð±íµ¥²ÎÊýµÄÊäÈëºÍ´«µÝ£¬¶øservlet GetAndPostExample.java¸ºÔðÔÚ·þÎñÆ÷¶Ë½ÓÊܲÎÊý¡£²ÎÊý´«µÝʱ¼ÓµÄʱ¼ä´ÁÊDZ£Ö¤URLµÄΨһÐÔ¡£
Ïà¹ØÎĵµ£º
// ´«¹ýÈ¥Ò»¸ö¼òµ¥Öµ£¬»ñȡһ¸ö¼òµ¥Öµ
$.ajax({
type: "GET",
url: '<%= Url.Action("xx", "Corp") % ......
½ñÌì³Á˶ÎÊéÉÏС´úÂ룬´úÂëÈçÏÂ
<html>
<head>
<script type="text/javascript" src="zxml.src.js"></script>
<script type="text/javascript">
function start() {
var oXmlHttp = zXmlHttp.createRequest();
oXmlHttp.open("get", "info11.txt", true);
oXmlHttp.onreadystatecha ......
±¾ÎÄÊÕ¼¯ÁËһЩÓÐȤ²¢ºÜÓÐÓõÄ×Ô¶¯Ìáʾ½Å±¾£¬ËûÃÇÎÞÂÛ¶ÔÓÚ³õѧÕß»¹ÊÇרҵǰ¶Ë¿ª·¢ÈËÔ±¶¼ÊÇÊÊÓõġ£ÕâЩ½Å±¾°üÀ¨±ê×¼µÄ×Ô¶¯ÌáʾЧ¹û¡¢·Â
del.icio.usЧ¹û¡¢·ÂGoogelЧ¹ûÒÔ¼°Ê¹ÓÃ×Ô¶¯ÌáʾµÄ¸ß¼¶Êý¾Ý±í¹ýÂËЧ¹û¡£
ʹÓÃÒ»¸öºÏÊʵÄ×Ô¶¯Ìáʾ½Å±¾ÓÐЧµÄÌáÉýÄãµÄÍøÕ¾µÄÓû§ÌåÑé¡£
1. Ajax Auto Suggest v.2
AutoSuggest
ÀàÌ ......