Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ajax ÂÒÂë

function verify() {
//½â¾öÖÐÎÄÂÒÂéÎÊÌâµÄ·½·¨1£¬Ò³Ãæ¶Ë·¢³öµÄÊý¾Ý×÷Ò»´ÎencodeURI£¬·þÎñÆ÷¶ÎʹÓÃnew String(old.getBytes("iso8859-1"),"UTF-8");
//½â¾öÖÐÎÄÂÒÂéÎÊÌâµÄ·½·¨2£¬Ò³Ãæ¶Ë·¢³öµÄÊý¾Ý×÷Á½´ÎencodeURI£¬·þÎñÆ÷¶ÎʹÓÃURLDecoder.decode(old,"UTF-8")
var url = "AJAXServer?name=" + encodeURI(encodeURI($("#userName").val()));
url = convertURL(url);
$.get(url,null,function(data){
$("#result").html(data);
});
}
//¸øurlµØÖ·Ôö¼Óʱ¼ä´Á£¬Æ­¹ýä¯ÀÀÆ÷£¬²»¶ÁÈ¡»º´æ
function convertURL(url) {
//»ñȡʱ¼ä´Á
var timstamp = (new Date()).valueOf();
//½«Ê±¼ä´ÁÐÅϢƴ½Óµ½urlÉÏ
//url = "AJAXServer"
if (url.indexOf("?") >= 0) {
url = url + "&t=" + timstamp;
} else {
url = url + "?t=" + timstamp;
}
return url;
}
 //1.È¡²ÎÊý
            String old = httpServletRequest.getParameter("name");
            //String name = new String(old.getBytes("iso8859-1"),"UTF-8");
            String name = URLDecoder.decode(old,"UTF-8");
  httpServletResponse.setContentType("text/html;charset=utf-8");
String b = new String(dish_id.getBytes("ISO-8859-1"), "UTF-8");
String b = new String(dish_id.getBytes("ISO-8859-1"), "UTF-8");


Ïà¹ØÎĵµ£º

¡¾×ª¡¿ajaxºÍIE7¡¢IE8µÄÎÊÌâ

xmlHTTP¶ÔÏóµÄÎÊÌâ Ç°Á½Ìì°²×°ÁËIE7.0,½ñÌìÈ´·¢ÏÖÇ°¼¸ÌìÓÃajax¿ª·¢µÄй¦Äܾ¹È»ÎÞ·¨Ê¹ÓÃ,¾­¹ý±¾ÈËϬÀûµÄÄ¿¹â´ó·¶Î§µÄËÑË÷,ÖÕÓÚÕÒµ½Á˽â¾ö°ì·¨,Ô­ÒòÊÇIE7.0±ÈIE6.0¶àÁ˱¾µØXMLHTTPÖ§³Ö¡£ËùÒÔ½â¾ö·½·¨Ö®Ò»¾ÍÊǵã»÷¡°¹¤¾ß¡±->¡°InternetÑ¡Ï->¡°¸ß¼¶¡±£¬ÔÚ¡°°²È«¡±½ÚµãÏÂÕÒµ½¡°ÆôÓñ¾»úXMLHTTPÖ§³Ö¡±£¬¸ÃÑ¡ÏîĬÈÏÊǹ³Ñ¡£¬½ ......

FABridge½Ì³Ì(Flex+Ajax) 2

ʹÓÃjsÀ´²Ù×÷flex
Ê×ÏÈÔÚfademo.mxmlÖÐÉùÃ÷Ò»¸öbutton£¬²¢Ìí¼ÓÒ»¸öbtnClick·½·¨£º
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="l ......

³¬¿áµÄAjax¿ò¼Ü£ºqooxdoo1.0·¢²¼

qooxdooÊÇÒ»¸ö×ÔÓÉÃâ·ÑµÄAjax GUI¿ò¼Ü£¬ÏÖÔÚËüµÄ1.0°æ±¾ÌṩÁËÏÂÔØ¡£ qooxdooµÄ·¢ÒôΪ ['ku:ksdu:],£¬ËüÌṩÁËʹÓÃJavaScriptʵÏÖ¼¸ºõËùÓУ¬½¨Á¢Àà×ÀÃæWebÓ¦ÓóÌÐòËùÐèµÄÓû§½çÃæ¡£¸ù¾Ý¿ª·¢ÕßHTML£¬ CSS»ò DOM֪ʶ²»ÊDZØÐèµÄ¡£Õâ¸ö¼Ü¹¹¿ÉÒÔÔËÐÐÔÚËùÓÐÖ÷Á÷µÄä¯ÀÀÆ÷ÉÏ£¬ÀýÈ磺Internet Explorer, Firefox, Safari, OperaºÍChr ......

AJaxʵÏÖ¾Ö²¿Ë¢Ð¹¦ÄܵÄÁôÑÔ°å

¹«Ë¾×î½ü¸øÎÒÒ»¸öÈÎÎñ£º°ÑÒ»¸öÓÃiframe×öµÄÁôÑÔ°å¸ÄдÓÃAjax×ö£¬ÕâÑù×öµÄÔ­ÒòÊÇ£º¶ÔËÑË÷ÒýÇæµÄÓÅ»¯¡£ËäÈ»ºÜÔç¾ÍÖªµÀAjax¿ÉÒÔ×ö¾Ö²¿Ë¢Ð£¬µ«ÒòΪ×Ô¼ºÊǸձÏÒµÈëÖ°µÄ²ËÄñ£¬½ö½öÊÇÖªµÀÓÐÕâô¸ö¼¼Êõ¿ÉÒÔ×öÕâÑùÒ»¹¦ÄܶøÒÑ¡£Ò»±ßѧһ±ß×ö¡£ÏÖÔÚÕ⹦ÄÜ»¹Ã»ÍêȫŪºÃ£¬ÏÈ×ܽáÏÂ˼·ÒÔ±ã¸üºÃµÄѧϰ£º
ÒµÎñÂß¼­£ºÔÚÏßÑÐÌֻᣬÌáÎÊÕßÒ³ ......

Ajax¿çÓò·ÃÎÊ


AjaxÖ±½Ó¿çÓò·ÃÎÊ£¬»á³öÏÖûÓÐȨÏ޵ĴíÎó£¬Ò»¸ö±È½Ï¼òµ¥¿ÉÐеĽâ¾ö·½°¸ÈçÏ£º
×öÒ»¸ö ajaxÇëÇóµÄ ´úÀíservlet »òÕßjsp£¬
ajaxÇëÇóservlet»òjsp´úÀí£¬ÓÉservlet»òjsp´úÀíÈ¥ÇëÇóajaxÒª·ÃÎʵÄaction£¬È»ºóÔÙ½«actionµÄÏìÓ¦ÐÅÏ¢·µ»Ø¸øajax¼´¿É£¬
servlet»òjsp³äµ±ÖнéÈ˵ĽÇÉ«
servlet »ò jsp ´úÀíµÄ  ºËÐÄ´úÂëÈçÏ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ