随笔分类 -  JavaScript

上一页 1 2 3 4 5 6 ··· 9 下一页
JavaScript Language
摘要:jQuery UI Datepicker IE8 使用的基本解决方法版本:jquery-ui-1.8.6.min.js解决:IE8无法响应其中jquery.ui.datepicker部分标签a(无href)的onclick事件,和td由于放入标签a href="#",无法响应自身onclick事件,只验证了icon-trigger模式方法:509行解决选择日期总小一月:f.selectedDay=f.currentDay=d("a",e).html();改为:if(e==e.toString()){f.selectedDay=f.currentDay=e 阅读全文
posted @ 2011-12-08 09:25 Athrun 阅读(1129) 评论(0) 推荐(0)
摘要:FROM : http://tech.pixnet.us/blog/post/31376360javascript 的 location 有兩種跳頁的方法。location.assign(url);location.replace(url);其中 location.assign(url); 跟 location = url; 或是 location.href = url; 功用是一樣的。那麼 assign 和 replace 有什麼差別呢?我在 pagea.html 跑了 assign('pageb.html'); 的話,在 pageb 按 browser 的上一頁,會回到 p 阅读全文
posted @ 2011-11-30 16:04 Athrun 阅读(388) 评论(0) 推荐(0)
摘要:From : http://www.cnblogs.com/snandy/archive/2011/04/06/2006361.html 阅读全文
posted @ 2011-11-09 11:11 Athrun 阅读(187) 评论(0) 推荐(0)
摘要:From : http://zhangbq168.blog.163.com/blog/static/23735305200952902915902///去重复数据<script>Array.prototype.deldistinct=function(){ var a=[],b=[]; for(var prop in this){ var d = this[prop]; if (d===a[prop]) continue; //防止循环到prototype if (b[d]!=1){ a.push(d); ... 阅读全文
posted @ 2011-09-30 16:30 Athrun 阅读(709) 评论(0) 推荐(0)
摘要:From : http://hi.baidu.com/%CE%D2%BA%DC%B0%AE%D5%C5%B2%AE%C2%D7/blog/item/061bc251abf8a24b1138c2e3.html在网页中使用自定义右键菜单,实现上皆为使用javascript禁用浏览器默认的右键菜单,然后在网页中响应鼠标右键事件,弹出自定义的菜单。类似右键菜单的组件网上很多。一般而言,改变浏览器的默认菜单应当慎用,这会使多数用户感到不习惯。但是在企业Web应用中,用户的使用环境更加可控,在这种应用中使用自定义右键菜单会更加适合。以下列举几款比较成熟的jQuery右键菜单插件,我们将逐一介绍,请读者自行 阅读全文
posted @ 2011-09-28 13:43 Athrun 阅读(1237) 评论(1) 推荐(0)
摘要:FROM : http://mangege.iteye.com/blog/1001984$.validator.setDefaults({ submitHandler: function() { alert("submitted!");return false; }});$().ready(function() { // validate signup form on keyup and submit $("#reg_form").validate({ rules: { /* input name 有 . 时加上引号 */ ... 阅读全文
posted @ 2011-08-27 10:55 Athrun 阅读(558) 评论(0) 推荐(0)
摘要:jquery : http://api.jquery.com/category/manipulation/style-properties/ 阅读全文
posted @ 2011-08-15 15:55 Athrun 阅读(520) 评论(0) 推荐(0)
摘要:FROM : http://www.iteye.com/topic/545971jQuery插件的开发包括两种:一种是类级别的插件开发,即给jQuery添加新的全局函数,相当于给jQuery类本身添加方法。jQuery的全局函数就是属于jQuery命名空间的函数,另一种是对象级别的插件开发,即给jQuery对象添加方法。下面就两种函数的开发做详细的说明。1、类级别的插件开发类级别的插件开发最直接的理解就是给jQuery类添加类方法,可以理解为添加静态方法。典型的例子就是$.AJAX()这个函数,将函数定义于jQuery的命名空间中。关于类级别的插件开发可以采用如下几种形式进行扩展:1.1 添加 阅读全文
posted @ 2011-08-15 13:55 Athrun 阅读(316) 评论(0) 推荐(0)
摘要:jQuery UI.Layouthttp://plugins.jquery.com/project/Layoutangela UIhttp://code.google.com/p/angela/ligeruihttp://www.ligerui.com/jquery Easyuihttp://jquery-easyui.wikidot.com/JQuery Smart UIhttp://roy77.brinkster.net/官方jqueryuihttp://jqueryui.com/lhg jqueryuihttp://www.lhgcore.com/DWZ JQuery UIhttp:// 阅读全文
posted @ 2011-08-11 11:00 Athrun 阅读(586) 评论(0) 推荐(0)
摘要:FROM : http://hi.baidu.com/hongyannanhao/blog/item/1a7762b548849bd936d3cab6.htmlDWZ富客户端框架(jQuery RIA framework), 是中国人自己开发的基于jQuery实现的Ajax RIA开源框架.DWZ富客户端框架设计目标是简单实用、扩展方便、快速开发、RIA思路、轻量级DWZ支持用html扩展的方式来代替javascript代码, 基本可以保证程序员不董javascript, 也能使用各种页面组件和ajax技术. 如果有特定需求也可以扩展DWZ做定制化开化.国内很多程序员javascript不熟, 阅读全文
posted @ 2011-08-11 10:44 Athrun 阅读(638) 评论(0) 推荐(0)
摘要:格式驗證網站http://jsonlint.com/JSON官網http://www.json.org/json-zh.html百度百科說明http://baike.baidu.com/view/136475.htm 阅读全文
posted @ 2011-07-28 08:18 Athrun 阅读(353) 评论(0) 推荐(0)
摘要:以下資料都來自網上,有不正確之處敬請諒解.http://blog.sina.com.cn/s/blog_661beca00100snex.htmljQuery在客户端操作Table学习:不过有很多很多的不足,还需要学习掌握。<style type="text/css"> .hover { background-color:red; } </style><table id="table1" border="1" cellpadding="0" cellspacing="0&qu 阅读全文
posted @ 2011-07-28 08:16 Athrun 阅读(1085) 评论(1) 推荐(0)
摘要:如何通过Jquery简单又快速的获取一组radio的取值呢?Jquery老的版本var_name = $(“input[@name='radio_name']:checked”).val();Jquery 1.3以后的版本var_name = $(“input[name='radio_name']:checked”).val();賦值:$("#fe-detail input[name='Options'][value=1]").attr("checked",true).click();区别是老版本有个@.m 阅读全文
posted @ 2011-07-14 16:47 Athrun 阅读(1012) 评论(0) 推荐(1)
摘要:From : http://blog.sina.com.cn/s/blog_5f66526e0100kf6b.html FCKeditor是一款很好用的html在线编辑器,也给用户提供了不少插件接口,因此用起来较得心应手。 公司有用到Jquery框架,有一个模板替换的功能需要用Js来动态改变FCK的值,本人google了下,找到一大虾的一篇文章(原文:jQuery FCKEditor插件取值、赋值),总结了下要实现取值赋值的功能主要有如下几个步骤。主要步骤:第一步:导入需要的js文件(根据实际情况修改相应路径)<script src="js/jquery.js" ty 阅读全文
posted @ 2011-07-07 09:16 Athrun 阅读(561) 评论(0) 推荐(0)
摘要:FROM : http://wanghaiyang.me/javascript/js_prototype_constructor.htm 阅读全文
posted @ 2011-05-16 22:11 Athrun 阅读(264) 评论(0) 推荐(0)
摘要:Ajax的处理都是异步的,所以想实现文件下载这种同步的操作,就比较捉襟见肘。不过google了一下,找到了一个方法,当然不是完美主旨就是提交一个request,在server端将文件生成好,然后返回文件名,client端则在js中隐藏一个frame,将frame的src指向生成的文件(根据返回的文件名)client:Ext.Ajax.request({url: '/csvoutput/',success: function(r, o) {obj = Ext.util.JSON.decode(r.responseText);try {Ext.destroy(Ext.get( 阅读全文
posted @ 2011-04-25 18:48 Athrun 阅读(1606) 评论(0) 推荐(0)
摘要:FROM : http://hi.baidu.com/yashua839/blog/item/e2e8913fe31b59d07c1e7166.html一、 windows XP1. MIME设置:在IIS的站点属性的HTTP头设置里,选MIME 映射中点击”文件类型”-”新类型”,添加一个文件类型:关联扩展名:*.json内容类型(MIME):application/x-javascript 2. Script Map Handler设置:还是在IIS的站点属性里,”主目录”-”应用程序设置”-”配置”-”映射”-”添加”,会打开”添加/编辑应用程序扩展名映射”的设置页面扩展名:.json运 阅读全文
posted @ 2011-03-26 13:16 Athrun 阅读(1227) 评论(0) 推荐(0)
摘要:$.extend({ URLEncode:function(c){ var o=''; var x=0;c=c.toString(); var r=/(^[a-zA-Z0-9_.]*)/; while(x<c.length) { var m=r.exec(c.substr(x)); if(m!=null && m.length>1 && m[1]!='') { o+=m[1];x+=m[1].length; } else { if(c[x]==' ') { o+='+'; } else 阅读全文
posted @ 2011-03-26 08:26 Athrun 阅读(188) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/sanshi/archive/2011/03/11/1981789.html不錯的JS方面的文章三生石上 阅读全文
posted @ 2011-03-21 10:31 Athrun 阅读(242) 评论(0) 推荐(0)
摘要:轉自 : http://www.xueit.com/html/2010-04/33-550107673201041810937984.html1,Flexigrid – Web 2.0 Javscript Grid for jQuery2,Chromatable JQuery Plugin3,Ingrid, the jQuery Datagrid 4,JQTreeTable5,Scrollable HTML table6,KeyTable7,graphTable8,DataTables9,jqGrid Plugin10,Visualize: Accessible Charts & Gr 阅读全文
posted @ 2011-03-21 10:11 Athrun 阅读(399) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 9 下一页