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

ajaxÇëÇó²»·µ»Øhtml´úÂë


ajaxÇëÇó²»·µ»Øhtml´úÂëµÄÈýÖÖ·½Ê½
ajaxÇëÇó´úÂ룺
function ajaxSend() {
$.ajax({
url: “Test_Ajax.aspx”,
type: “post”,
data: { name: “ajax” },//Èç¹ûÇëÇóµÄ×ÔÉíÒ³Ã棬ΪÁËÔÚºǫ́ÅжÏÊDz»ÊÇajaxÇëÇó
error: function(xhr, textStatus, errorThown) {
alert(errorThown);
},
success: function(data) {
alert(data);
}
});
}
1¡¢°Ñ.aspxÒ³ÃæµÄhtml´úÂëɾ³ý£¬É¾³ýºó´úÂëÈçÏ£¨ajaxÇëÇóµÄ²»ÊÇ×ÔÉíÒ³Ã棩
.aspxÒ³Ãæ´úÂë
<%@ Page Language=”C#” AutoEventWireup=”true” CodeBehind=”AjaxReceive.aspx.cs” Inherits=”testJqueryUI.ajax.AjaxReceive” %>
.aspx.csÒ³Ãæ´úÂëÈçÏÂ
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(“love life”);
}
2.ͨ¹ýclearºÍend·½·¨ÊµÏÖ
.aspx.cs´úÂëÈçÏÂ
string name = Request["name"];
//Èç¹ûÇëÇóµÄÊÇ×ÔÉíÒ³ÃæÔòÐèÒªÕâÒ»²½£¬ÅжÏÊDz»ÊÇajaxÇëÇó
if (!String.IsNullOrEmpty(name))
{
Response.Clear();
Response.Write(“hello the world”);
Response.End();
}
3¡¢Í¨¹ýʵÏÖIHttpModulʵÏÖ
httpmodul´úÂëÈçÏÂ
public class AjaxModul : IHttpModule
{
#region IHttpModule Members
public void Dispose()
{
//throw new NotImplementedException();
}
public void Init(HttpApplication context)
{
context.ReleaseRequestState += AjaxFilter;
}
private void AjaxFilter(object sender, EventArgs e)
{
HttpRequest request = HttpContext.Current.Request;
HttpResponse response = HttpContext.Current.Response;
if (!string.IsNullOrEmpty(request["name"]))
{
HttpResponse reponse1 = HttpContext.Current.Response;
reponse1.Filter = new AjaxResponseFilter(reponse1.Filter);
}
}
#endregion
}
AjaxResponseFilter.cs´úÂëÈçÏÂ
public class AjaxResponseFilter : Stream
{
private readonly StringBuilder html;
private Stream response;
/// <summary>
/// ËùÓÐÒªÍùÒ³ÃæÊä³öµÄÄÚÈݱ£´æÔÚhtmlÖÐ
/// </summary>
/// <param name=”buffer”></param>
/// <param name=”offset”></param>
/// <param name=”coun


Ïà¹ØÎĵµ£º

jquery ajaxÈ«½âÎö

jQuery Ajax È«½âÎö
±¾ÎĶÌÖ·£ºhttp://s8.hk/0itq
±¾ÎĵØÖ·: jQuery Ajax È«½âÎö
±¾ÎÄ×÷ÕߣºQLeelulu
תÔØÇë±êÃ÷³ö´¦£¡
jQueryȷʵÊÇÒ»¸öͦºÃµÄÇáÁ¿¼¶µÄJS¿ò¼Ü£¬ÄÜ°ïÖúÎÒÃÇ¿ìËٵĿª·¢JSÓ¦Ó㬲¢ÔÚÒ»¶¨³Ì¶ÈÉϸıäÁËÎÒÃÇдJavaScript´úÂëµÄÏ°¹ß¡£
·Ï»°ÉÙ˵£¬Ö±½Ó½øÈëÕýÌ⣬ÎÒÃÇÏÈÀ´¿´Ò»Ð©¼òµ¥µÄ·½·¨£¬ÕâЩ·½·¨¶¼ÊǶÔjQu ......

ÈÃÒ³Ãæ±äµÃ¸ü¿ìÒ»µã HTML½âÎöÔ­Àí


ÈÃÒ³Ãæ±äµÃ¸ü¿ìÒ»µã-HTML½âÎöÔ­Àí
 http://justjavac.javaeye.com/blog/644235
WebÒ³ÃæÔËÐÐÔÚ¸÷ÖÖ¸÷ÑùµÄä¯ÀÀÆ÷µ±ÖУ¬ä¯ÀÀÆ÷ÔØÈë¡¢äÖȾҳÃæµÄËÙ¶ÈÖ±½ÓÓ°Ïì×ÅÓû§ÌåÑé¡£·Ç³£²»ÐÒµÄÊÇ£¬Ð§ÂÊ×îµÍµÄIEä¯ÀÀÆ÷ÈÔȻռÁìÕß¾ø´ó¶àÊýÊг¡·Ý¶î£¬ÕâÒѾ­ÑÏÖØÖÆÔ¼ÁË»¥ÁªÍøµÄ·¢Õ¹£¨¸Ð̾һÏ£º“ÂíÈü¿ËºÍIE——×è°­È ......

COMµÄHTML¿Ø¼þ

http://www.experts-exchange.com/Programming/Languages/C/Q_24038236.html
/* CWebPage.c

This is a Win32 C application (ie, no MFC, WTL, nor even any C++ -- just plain C) that demonstrates
how to embed a browser "control" (actually, an OLE object) in your own window (in order to display a
web p ......

Ajax ²Ù×÷XMLµÄºÃʵÀý

¡¡¡¡ÔÚÉÏһƪÎÄÕÂÖУ¬ÎÒÃÇÌÖÂÛÁËÈçºÎͨ¹ýjavascript´ÓÒ»¸öÔ¶³ÌXMLÎļþÖÐÈ¡µÃÊý¾Ý¡£ÔÚÕâƪÎÄÕÂÖУ¬ÎÒÃǽ«Ñ§»áÔõÑù¶ÔÊý¾Ý×÷¸ü¸´ÔӵĴ¦Àí¡£×÷Ϊһ¸öʾÀý£¬ÎÒÃÇ»á×¼±¸Ò»×éXMLÊý¾Ý£¬½«Êý¾Ý·Ö¸î³É¶ÀÁ¢µÄƬ¶Ï²¢ÒÔ²»Í¬µÄ·½Ê½Õ¹Ê¾ÕâЩƬ¶Ï£¨È¡¾öÓÚËüÃÇÊÇÈçºÎ±»±êʶµÄ£©¡£
¡¡¡¡ÕâƪÎÄÕÂÊǽ¨Á¢ÔÚÉÏһƪÎÄÕÂÖй¹ÔìµÄʾÀý´úÂëµÄ»ù´¡Ö®ÉÏ ......

¹ØÓÚHTMLÖÐlinkÔªËصÄonloadÊôÐÔ×ܽá

    ÎÒÃÇÖªµÀ£¬HTMLΪÁ˼ÓÔØÒ»¸öÍⲿµÄcssÎļþ£¬¾­³£»áÓõ½Ò»¸ölinkµÄÔªËØ£¬¾ßÌåµÄÓ÷¨ÈçÏ£º
    <link rel="stylesheet" rev="stylesheet" href="xxx.css" type="text/css" media="screen" />
    ²¢ÇÒä¯ÀÀÆ÷¶ÔcssµÄ¼ÓÔØÊÇ×èÈûʽµÄÏÂÔØ£¬ÔÚ¶ÔÓ¦µÄÍⲿcssÎļþûÓÐlo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ