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µÄΨһÐÔ¡£
Ïà¹ØÎĵµ£º
oad()·½·¨
load( url [,data] [,callback]) dataÊÇObjectÀàÐÍ£¬·¢ËÍÖÁ·þÎñÆ÷µÄkey/valueÊý¾Ý
Àý£º
$(function(){
$("#send").click(function(){
$("#resText").load("test.html ......
# app\controllers\examples_controller.rb
ruby ´úÂë
class ExamplesController < ApplicationController
def ajax_select
@items = %w{AA BB}
end   ......
MOOTOOLSÖеķ½·¨Ê¹ÓÃ
Core.js
º¯Êý: $extend ½«µÚ¶þ¸ö²ÎÊý¶ÔÏóµÄËùÓÐÊôÐÔ¸´ÖƵ½µÚÒ»¸ö²ÎÊý¶ÔÏóÖÐ.
º¯Êý: $merge ºÏ²¢Ò»×é¶ÔÏóÉú³ÉжÔÏó
º¯Êý: $each µü´úÊý×é(°üÀ¨·Ç³£¹æÊý×é,ÈçÓÉÄÚ½¨µÄgetElementsByTagName·½·¨·µ»ØµÄ¼¯ºÏ¶ÔÏó, arguments¶ÔÏó, »òOjbect¶ÔÏó)
º¯Êý: $pick ·µ»Ø² ......
Private static readonly object ReflectionLock = new object();
Lock (ReflectionLock)
{
Type scriptManagerType =
Type.GetType(
"System.Web.UI.ScriptManager, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35",
false);
......