随笔分类 -  jQuery

摘要:前言FineUI控件库发展至今已经有 5 个年头,目前论坛注册的QQ会员 5000 多人,捐赠用户 500 多人(捐赠用户转化率达到10%以上,在国内开源领域相信这是一个梦幻数字!也足以证明FineUI旺盛的生命力!)。这一切的得来不是无缘无故的,而是来自于FineUI的发布理念 – Release Early! Release Often!时至今天,FineUI总共发布了 100 多个版本!这 100 多个版本更新列表只是文本文件就有 120K 大小,放在页面上更是长的要命,如何恰当的向用户展示 FineUI 勤劳的身影就成了一个问题。之前的展示页面只是简单的将所有的更新记录放在一个 PRE 阅读全文
posted @ 2013-08-01 08:30 三生石上(FineUI控件) 阅读(86512) 评论(25) 推荐(70) 编辑
摘要:首先介绍下FineUI,FineUI 是基于 ExtJS 的专业 ASP.NET 2.0 控件库,FineUI的目标是创建 No JavaScript,No CSS,No UpdatePanel,No ViewState,No WebServices 的网站应用程序。如果你对FineUI还不熟悉的话,可以移步FineUI官方网站:http://fineui.com/我们都知道FineUI是WebForm控件的集合,这也就意味着每次页面回发的代价比较大,需要重新构建页面中所有的控件并触发必要的事件。而对于自动补全这一常见功能来说,这种回发就显得没有必要了,因此我们可以通过一个ashx来取自动补全 阅读全文
posted @ 2012-12-21 08:10 三生石上(FineUI控件) 阅读(6125) 评论(8) 推荐(26) 编辑
摘要:提出问题如果识别出页面中JavaScript函数的性能问题,在不同浏览器下有不同的测试工具:Firefox下使用Firebug的Profile工具Chrome下使用内置的Profile工具IE9下也有Profile工具虽然大家的功能一个比一个炫,但是始终解决不了两个问题:如何只检测指定命名空间下的函数性能,否则会产生大堆的无用数据。不能跨浏览器使用,没有统一的参照物。同时不同工具之间还有一定差异的背景噪音影响。还有一点就是仍然占据主流的IE7和IE8没有内置的JavaScript性能检测工具。寻求解决方案首先在网上找到的一篇文章是John Resig在2008年6月发表的一篇文章,是够古老的了 阅读全文
posted @ 2011-08-02 23:58 三生石上(FineUI控件) 阅读(7409) 评论(8) 推荐(10) 编辑
摘要:引言在那篇经典的关于jQuery1.5中Deferred使用方法介绍的文章中(译文见这里),有下面一段描述:$.ajax() returns an object packed with other deferred-related methods. I discussed promise(), but you’ll also find then(), success(), error(), and a host of others. You don’t have access to the complete deferred object, though; only the promise, 阅读全文
posted @ 2011-03-11 20:25 三生石上(FineUI控件) 阅读(3680) 评论(2) 推荐(6) 编辑
摘要:原文:http://www.erichynds.com/jquery/using-deferreds-in-jquery/翻译:三生石上(http://cnblogs.com/sanshi/)译者注:1.Deferred是jQuery1.5新增的一个特性,很多人把它翻译成 “异步队列”,我觉得比较靠谱,毕竟和“延迟”没啥关系,不过这篇文章中我还采用deferred这个单词。2.这篇文章在jQuery1.5发布博客中提到,也是目前介绍deferred比较经典和深入的文章。鉴于目前中文资料比较少,特别翻译出来供大家学习参考。3.通篇采用意译的方式,如有不当还请大家提出。jQuery1.5中新增的D 阅读全文
posted @ 2011-03-10 21:23 三生石上(FineUI控件) 阅读(5237) 评论(10) 推荐(12) 编辑
摘要:1. 引言 在上一篇文章《如何确保JavaScript的执行顺序 - 之实战篇》中,我们发现jQuery.html函数在动态加载跨域JavaScript时,在Firefox和Opera中可以按照引入顺序执行,而在IE,Chrome和Safari中都不能确保执行顺序。 经过分析,我们发现jQuery.html在处理跨域静态JS文件时,并非采用的同步AJAX(也存在同源策略的限制),而是在head中添加script标签来完成的。 我们先来简单回顾下HTML源代码(test2_1.htm): <html> <head> <title></title> 阅读全文
posted @ 2011-03-03 22:04 三生石上(FineUI控件) 阅读(4290) 评论(0) 推荐(4) 编辑
摘要:上一篇:[原创]如何确保JavaScript的执行顺序 – 之jQuery.html深度分析1.引言在上一篇文章《如何确保JavaScript的执行顺序-之jQuery.html深度分析》中,我们揭示了jQuery.html函数之所以能在各种浏览器下保持动态JS顺序执行,其秘密在于–同步AJAX获取外部JavaScript。我们先来简单回顾下HTML源代码(test2.htm):<html><head><title></title><script src="js/jquery-1.4.4.js" type="t 阅读全文
posted @ 2011-03-02 20:06 三生石上(FineUI控件) 阅读(4491) 评论(1) 推荐(2) 编辑
摘要:上一篇:[原创]如何确保JavaScript的执行顺序 – 之实战篇1. 引言在上一篇文章《如何确保JavaScript的执行顺序 - 之实战篇》中,我们发现jQuery的html函数能够确保动态加载的JavaScript按照引入顺序执行。我们先来简单回顾下HTML源代码(test2.htm):<html><head> <title></title> <script src="js/jquery-1.4.4.js" type="text/javascript"></script> & 阅读全文
posted @ 2011-03-01 20:09 三生石上(FineUI控件) 阅读(8727) 评论(7) 推荐(6) 编辑
摘要:1. 引言 我曾在文章《如何在多个页面使用同一个HTML片段 - 续》的最后提到JavaScript顺序执行的特性。虽然现代浏览器可以并行的下载JavaScript(部分浏览器),但考虑到JavaScript的依赖关系,他们的执行依然是按照引入顺序进行的。 为了更好的测试这个过程,我写了一个简单的HTTP处理程序页面 service.ashx,它可以接受两个参数: 1. file,需要返回文件的服务器端路径。 2. delay,延迟一定时间后再返回本次HTTP请求(毫秒)。 一个典型的页面比如:./service.ashx?file=js/jquery-ui.js&delay=2000 阅读全文
posted @ 2011-02-28 18:29 三生石上(FineUI控件) 阅读(12506) 评论(9) 推荐(6) 编辑
摘要:原文地址:http://blog.jquery.com/2011/02/24/jquery-151-released/ jQuery 1.5.1发布了!这是自jQuery1.5发布以来第一个小版本更新,并且解决了很多BUG。 我们非常感谢如下的贡献者(Contributors),他们为此次的发布提供了很多补丁(Patches):antonkovalyov, csnover, danheberden, davidmurdoch, dmethvin, gnarf37, jaubourg, jeresig, jitter, jrburke, lrbabe, mathiasbynens, rwldr. 阅读全文
posted @ 2011-02-25 09:34 三生石上(FineUI控件) 阅读(6188) 评论(17) 推荐(3) 编辑
摘要:程序员高品质新闻阅读网站 - CodingNews.org 聚集高品质英文技术类博客新闻网站,每小时更新。创新的即时预览功能,可以方便浏览文章内容。 阅读全文
posted @ 2011-02-14 13:22 三生石上(FineUI控件) 阅读(3623) 评论(4) 推荐(3) 编辑
摘要:Reference: jQuerifyBookmarklet, Updated jQuery Bookmarklet and Better, Stronger, Safer jQuerify BookmarkletWhat is jQuerify Bookmarklet?A jQuerify Bookmarklet is a hyperlink that can be dragged into y... 阅读全文
posted @ 2009-06-24 13:06 三生石上(FineUI控件) 阅读(855) 评论(0) 推荐(0) 编辑
摘要:Today, when reading an article - A Plugin Development Pattern, i found an interesting plugin - metadata.First, let’s see it in action: <li id="Li1" class='someclass {"item_id": 1, "item_label... 阅读全文
posted @ 2009-06-23 16:10 三生石上(FineUI控件) 阅读(1855) 评论(1) 推荐(0) 编辑
摘要:First, i want to add options to Tabs constructor like this: var tabs = $("div.tabs").tabs({ "openEvent": "mouseover", "disabled": [1, 2], "current": 3 }); These options are borrowed from jQuery UITabs... 阅读全文
posted @ 2009-06-18 14:49 三生石上(FineUI控件) 阅读(717) 评论(0) 推荐(0) 编辑
摘要:I have said that i dislike jQuery UI’s unified API, so i want toget the instance of the component after invoke like this: $(function() { var tabs = $("div.tabs").tabs(); // Note: Now tabs is the... 阅读全文
posted @ 2009-06-17 15:55 三生石上(FineUI控件) 阅读(617) 评论(0) 推荐(0) 编辑
摘要:Just as the auther of jQuery Toolssaid:jQuery UI has a so-called “unified API” which uses the following syntaxfor invoking methods://callselectmethodfortabs$("ul.example").tabs("select",1)... 阅读全文
posted @ 2009-06-17 13:31 三生石上(FineUI控件) 阅读(1120) 评论(0) 推荐(0) 编辑
摘要:1. How to judge element is visible ? if($(".nav").is(":visible")) { // This element is visible }This filter is very power, for example: <div style="display: none;"> <div id="test">This ele... 阅读全文
posted @ 2009-06-16 14:34 三生石上(FineUI控件) 阅读(441) 评论(0) 推荐(0) 编辑
摘要:There are many articles about jQuery tips and tricks on the internet.I am very happy to have so many resources for reference, and i will make my ownexamples in order to learn these tips and tricks for... 阅读全文
posted @ 2009-06-15 14:23 三生石上(FineUI控件) 阅读(686) 评论(0) 推荐(0) 编辑
摘要:The observer pattern (a subset of the asynchronous publish/subscribe pattern) is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers,... 阅读全文
posted @ 2009-06-10 16:36 三生石上(FineUI控件) 阅读(903) 评论(0) 推荐(0) 编辑
摘要:I described how to use jStore as a client-side persistent storage in my last post. The jStore manage a number of different storage engines, such as gears and flash objects. But they all need additional downloads. The IE browser has provide a mechanism called userdata behavior to store max 128kb data a page, 1024kb a domain. This is a portion of DHTML that suppoted by IE5 or later. Refer to this article: userData Behavior. 阅读全文
posted @ 2009-05-11 11:35 三生石上(FineUI控件) 阅读(547) 评论(0) 推荐(0) 编辑