ÔÚAJAXÄÚʹÓÃFCKÈ¡²»µ½ÖµµÄ½â¾ö·½°¸
¼ì²éǰ̨FCK×Ô¶¯Éú³ÉµÄJSº¯Êý.Ò»°ãΪWebForm_OnSubmit()
ÔÚºǫ́Ìá½»°´Å¥Àï¼ÓÈë¸Ãº¯Êý.ÁíÆä¸üÐÂFCKÊý¾Ý,´úÂëÈçÏÂ.
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "getFckValue", "WebForm_OnSubmit();", true);
Ïà¹ØÎĵµ£º
jQuery µ×²ã AJAX ʵÏÖ¡£¼òµ¥Ò×Óõĸ߲ãʵÏÖ¼û $.get, $.post µÈ¡£$.ajax() ·µ»ØÆä´´½¨µÄ XMLHttpRequest ¶ÔÏó¡£´ó¶àÊýÇé¿öÏÂÄãÎÞÐèÖ±½Ó²Ù×÷¸Ã¶ÔÏ󣬵«ÌØÊâÇé¿öÏ¿ÉÓÃÓÚÊÖ¶¯ÖÕÖ¹ÇëÇó¡£
×¢Ò⣺ Èç¹ûÄãÖ¸¶¨ÁË dataType Ñ¡ÏÇëÈ·±£·þÎñÆ÷·µ»ØÕýÈ·µÄ MIME ÐÅÏ¢£¬(Èç xml ·µ»Ø "text/xml")¡£´íÎóµÄ MIME ÀàÐÍ¿ÉÄܵ¼Ö²»¿ÉÔ¤Ö ......
ÎÒдÁ˸ö¼òµ¥µÄajaxloginµÇ¼
Çé¿öÃèÊö
´ò¿ª2¸öÒ³Ãæ
µÚÒ»¸öÒ³ÃæÊÇajaxµÇ¼µÄÒ³Ãæ
µÚ¶þ¸öÒ³ÃæÊǵǼºóÊÕ±£»¤µÄÒ³Ãæ
µÇ¼µÚÒ»¸öÒ³Ãæ, ´ò¿ªÊܱ£»¤µÄÒ³Ãæ2, ÔÚµÚÒ»¸öÒ³ÃæµÇ³ö ²¢Ë¢ÐµÚ2¸öÒ³ÃæÓÉÓÚÒѾµÇ³ö¾Í»á³öÏÖÌøµ½À¹½ØÒ³ÃæCASµÄlogin£¨ÕâÊÇÒѾ°ÑÒªÌøתµÄÒ³Ãæ´æÔÚsessionÀïÁË£©
È»ºóÔÚµÚÒ»¸öµÇ¼ҳÃæµÇ¼ ......
Ç°ºó¶ËµÄ½»»¥ÊÇÕû¸ö¿ò¼ÜµÄÖÐÐÄ£¬ÎÒÏ£Íû´ÓÁ÷µÄ½Ç¶ÈÀ´Éè¼ÆAJAXµÄ½»»¥
AJAXµÄÉè¼Æ½«ºá¹áÇ°ºó¶Ë
Ç°¶ËÊÇÖ÷¶¯
ºó¶ËÊDZ»¶¯
ÕûÌ忼ÂǵĻ° Ç°ºó¶ËʹÓÃÒ»¸öͳһµÄ½Ó¿Ú½øÐÐAJAX½»»¥
ºó¶Ë ÓÃÒ»¸öΨһµÄURLÀ´´¦Àí AJAXÇëÇó
½Ó¿ÚÃû³Æ ´¦Àí½Ó¿Ú£º[http://ÓòÃû/mvc.ajax] ·â×°ËùÓеÄAJAXÇëÇóµÄÔ¤´¦Àí
......
var xmlhttp;
function verify()
{
//2.´´½¨XmlHttpRequest¶ÔÏó
//ÕâÊÇXmlHttpRequest¶ÔÏóÎå²½ÖÐʹÓÃ×ÔÓµÄÒ»²½
//ÐèÒªÕë¶ÔIEºÍÆäËûÀàÐ͵Ää¯ÀÀÆ÷½¨Á¢Õâ¸ö¶ÔÏóµÄ²»Í¬·½Ê½Ð´²»Í¬µÄ´úÂë
if(window.XMLHttpRequest)
{
......
×î½ü×ö¸öÈËÍøÕ¾Óöµ½AJAX¿ç×ÓÓòÃûµÄÎÊÌâ¡£
ż¶û¿´µ½baiduµÄͨÐÐÖ¤´¦Àí¶¼ÊÇÔÚ¶þ¼¶ÓòÃûpassport.baidu.comÖд¦ÀíµÄ£¬
µ«ÊÇbaiduºÜ¶àµØ·½µÇ¼¶¼ºÃÏñÊÇÓÃajax´¦ÀíµÄ£¬ËûÊÇÔõô×öµÄÄØ£¿Ñо¿ÁËһϣ¬·¢ÏÖÒ»¸öС¼¼ÇÉ¡£
²»·ÀÈôó¼ÒÒ²½è¼øһϡ£
ÔÚhttp://zhidao.baidu.com/ δµÇ¼Óû§»Ø´ðÎÊÌâʱ»áÓÃiframeµ÷ÓÃhttp://zhidao.bai ......