AJaxʵÏÖ¾Ö²¿Ë¢Ð¹¦ÄܵÄÁôÑÔ°å
¹«Ë¾×î½ü¸øÎÒÒ»¸öÈÎÎñ£º°ÑÒ»¸öÓÃiframe×öµÄÁôÑÔ°å¸ÄдÓÃAjax×ö£¬ÕâÑù×öµÄÔÒòÊÇ£º¶ÔËÑË÷ÒýÇæµÄÓÅ»¯¡£ËäÈ»ºÜÔç¾ÍÖªµÀAjax¿ÉÒÔ×ö¾Ö²¿Ë¢Ð£¬µ«ÒòΪ×Ô¼ºÊǸձÏÒµÈëÖ°µÄ²ËÄñ£¬½ö½öÊÇÖªµÀÓÐÕâô¸ö¼¼Êõ¿ÉÒÔ×öÕâÑùÒ»¹¦ÄܶøÒÑ¡£Ò»±ßѧһ±ß×ö¡£ÏÖÔÚÕ⹦ÄÜ»¹Ã»ÍêȫŪºÃ£¬ÏÈ×ܽáÏÂ˼·ÒÔ±ã¸üºÃµÄѧϰ£º
ÒµÎñÂß¼£ºÔÚÏßÑÐÌֻᣬÌáÎÊÕßÒ³ÃæÁ¢¼´¾Ö²¿Ë¢Ð£¬ÆäËûÓû§´ò¿ªÁËÕâ¸öÒ³Ã涨ʱ¾Ö²¿Ë¢Ð¡£
ËùÓÃ֪ʶ£ºajax ¶¨Ê±Æ÷ ÍùÖ÷Ò³Ãæ¾Ö²¿divÀïÒì²½¼ÓÔؽøÒ»¸öÏÔʾÌáÎÊÕßËùÌáÎÊÌâÁбíµÄÒ³Ãæ
´úÂ룺
//Çå¿ÕÊäÈë¿ò£¬ÌáʾÒÑÊäÈë
function submitQA() {
document.qasubmit.body.value = "";
qahint.innerHTML = "<b>¡¡ÄúµÄ·¢ÑÔÒѾÌá½»£¬»¶Ó¼ÌÐø·¢ÑÔ¡£Ð»Ð»¡£</b>"
}
//µã»÷ÎÊÌâÌá½»µ÷ÓÃ
function readySubmit() {
setTimeout(submitQA, 1000);
setTimeout(function(){assign('tv');} , 1500);
}
//Òì²½¼ÓÔØÊý¾Ý´¦ÀíÒ³Ãæ
function load(id) {
assign(id);
setTimeout(function () { load(id);},5000);
}
//ÍùÖ÷Ò³div²åÈëÒ»¸öÒ³Ãæ
function assign(id){
/* Create a new XMLHttpRequest object to talk to the Web server */
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("ÄúµÄä¯ÀÀÆ÷²»Ö§³ÖAJAX£¡");
 
Ïà¹ØÎĵµ£º
×î½üÒ»¶Îʱ¼äÓÃjquery£¬¸Ð¾õЧ¹ûͦºÃµÄ£¬¶Ô´Ë¸ÐÐËȤ¡£jqueryÀïÃæÓÐÒ»¸ö×îÖØÒªµÄ¾ÍÊÇajaxµÄÓ¦Ó㬿´À´ÎÒÕâÀïÒ²µÃ´ÓͷѧѧajaxµÄ»ù´¡ÖªÊ¶£¬²»È»¿´juqeryµÄ´úÂ룬Ҳ±È½ÏµÄ·Ñ¾¢¡£
ºÃ£¬ÕâÀï¾ÍдЩ²âÊÔ´úÂ롣ϣÍûºÍÎÒÒ»ÑùµÄÐÂÊÖÄܶà¶à̽ÌÖ¡£
========================ajax±Ê¼Ç================= ......
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:GridView ID="GvPubList" runat="server" AutoGenerateColumns="False"
......
ASP.NET Ajax Videoѧϰ±Ê¼Ç
5. Make Client-Side Network Callbacks with ASP.NET AJAX?
Notes:
ÔÚ<ScriptManager>ÖÐÌí¼Ó<Services>
4. Implement Dynamic Partial-Page Updates with ASP.NET AJAX?
Notes:
UpdatePanel¿ÉÒÔÍê³É²¿·ÖÒ³ÃæµÄ¸üÐÂ
Èç¹ûButtonÔÚUpdatePanelÖУ¬¼´Ê¹ÔÚPageLoad()Öаüº¬¸üÐÂË ......
<script type="text/javascript">
//¶¨ÒåXMLHttpRequest¶ÔÏó±äÁ¿
var xmlHttpRequest;
/*
* ´´½¨XMLHttpRequest¶ÔÏó¡£
* ±¾º¯ÊýÖ÷ÒªÍê³ÉXMLHttpRequest¶ÔÏóµÄ´´½¨£¬ºËÐÄ·ÖΪÒÔÏÂÁ½¸ö²¿·Ö£º
* µÚÒ»²½£ºÊ×ÏÈÅж ......
ʹÓÃ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 ......