惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - 碧海蓝天

SQL Server 附加数据库时报1813错误的解决方案 SQL Server连接数据库记录清除 CSS 滤镜 各大搜索引擎网站登录入口 Windows 7安装SQL2008的顺序 如何判断搜索引擎机器人(蜘蛛)有没有爬行你的站点? - 碧海蓝天 - 博客园 Windows服务端口大全 Kubuntu下root登录 用于中文 VS2008 的 Microsoft Silverlight Tools Beta 2发布 IE Version Vector - 碧海蓝天 主流浏览器引擎简介 IE、Firefox、Opera和Safari对CSS样式important和*的支持 - 碧海蓝天 - 博客园 Remoting和WebService有什么区别 今天俺也Hi了一把 Asp.net中DataBinder.Eval用法的总结 - 碧海蓝天 - 博客园 javascript refresh page jQuery Intellisense for Visual Studio 2008 验证手机号码的js代码 Linux自动安装命名
jQuery.ajax - 碧海蓝天 - 博客园
碧海蓝天 · 2008-06-06 · via 博客园 - 碧海蓝天

function ping(){
    //显示进度条
    $("#ping").ajaxStart(function(){
         $(this).show();
    });
    //提交前触发的事件
    $("#ping").ajaxSend(function(request, settings){
        $(this).append("<li>Starting request at " + settings.url + "</li>");
    });
    //调用Juqery Ajax
    $.ajax({
        type: "POST",
        url: "FMobiles.aspx",
        timeout: 20000,
        data: "name=shmily",
        success: function(msg){
            alert(msg);
            var text=msg.split('<');
            //当AJAX请求失败时添加一个被执行的方法
            $("#ping").ajaxError(function(request, settings){
                $(this).append("<li>Error requesting page " + settings.url + "</li>");
            });
            //当AJAX请求成功时添加一个被执行的方法
            $("#ping").ajaxSuccess(function(request, settings){
                $(this).append(text[0]);
            });
        },// end success
        error: function(){
            //当AJAX请求失败时添加一个被执行的方法
            $("#ping").ajaxError(function(request, settings){
                $(this).append("<li>Error requesting page " + settings.url + "</li>");
            });
        }
     });//end $.ajax(

}