JQuery中使用AJAX:JQuery第14天里说到了Ajax:同时给了几个读取数据的例子,JQuery没有Prototypre的严谨与规范,但利于普通开发的快速上手,也算是各有千秋吧,要是结合两者,我想更是事倍功倍,虽然说两者加起来快近80K,但这个年代带宽应该不是问题了

吕的部落格唯女子与小人为难养也近之则不孙远之则怨

JQuery中使用AJAX

JQuery第14天里说到了Ajax:同时给了几个读取数据的例子,jquery没有Prototypre的严谨与规范,但利于普通开发的快速上手,也算是各有千秋吧,要是结合两者,我想更是事倍功倍,虽然说两者加起来快近80K,但这个年代带宽应该不是问题了,AJAXModule

I’m trying something a little different today. It took me a while to figure out why I couldn’t open a free account with YouTube for about 3 weeks but now that it’s all straightened out I thought I’d upload a video where I walk you through some of the basic ways you could use jquery to add AJAX functionality to your site.

The video is short because my understanding of YouTube is that I have to limit the file to 10 minutes. Not everything I’ve said in the tutorial is 100% correct. There are minor mistakes such as the part where I call cgi a “server side script” when it would be more accurate to say “server side language”.

Cut me some slack… woodya?英文全文

Demos » AJAX Plugin
Loaded from an HTML File

Code:
$("div#html").load("ajax-test.html");
Loaded from an XML File

Code:
$.get("ajax-test.xml",function(xml){
var text = $("title",xml).text();
$("div#xml").html("<h1>"+text+"</h1>");
});
Loaded from a Dynamic HTML File

Code:
$("div#dhtml").load("html.cgi",{name:"John"});
Loaded from a Dynamic XML File

Code:
$.post("xml.cgi",{
name: "John"
},function(xml){
var text = $("title",xml).text();
$("div#dxml").html("<h2>"+text+"</h2>");
});
Loaded from a Text File

Code:
$.get("ajax-test.txt",function(txt){
$("div#txt").html("<h1>"+txt+"</h1>");
});
所属分类:技术手册标签:JQueryAjax JQuery中使AJA 吕 @ 2006年11月7日8点20分 AM 编辑 JQuery中使用AJAX阅读(3733) 评论(0)

相关文章

评论

还没有评论
未开放评论

谷歌中JQuery中使用AJAX相关文章

数据加载中,请稍候……