[原] 总算实现SWFUpload和easyui的DataGrid整合了
Posted by bianbian on 2011-12-24 11:25
本文Tags: easyui, jQuery, swfupload
标签: easyui, jQuery, swfupload遵守创作共用协议,转载请链接形式注明来自http://bianbian.org 做人要厚道
相关日志
Posted in JavaScript, Technology | No Comments »
Posted by bianbian on 2011-12-24 11:25
本文Tags: easyui, jQuery, swfupload
标签: easyui, jQuery, swfuploadPosted in JavaScript, Technology | No Comments »
Posted by bianbian on 2011-01-16 12:24
本文Tags: google, jQuery, plugin
在这里:http://code.google.com/p/jquery-myhint-plugin/
easy to use myhint plugin:
效果:

Posted in JavaScript, Technology | No Comments »
Posted by bianbian on 2010-08-29 12:07
本文Tags: combotree, easyui, jQuery, post
最近使用jquery-easyui 1.2,遇到一个问题。
一搜索,发现好多人在问:
问题见:http://jquery-easyui.wikidot.com/forum/t-248817/combotree-net
“combotree在.net开发中,一直不显示数据。
单独html页面就可以显示出来。同一数据文件,json格式绝对正确。”
解决问题首先要发现原因,用firebug试了一下,发现是combotree读取json的时候是用POST方法。
而.net环境不支持静态文件用POST方法获取内容。错误如下:
POST app_user.js
http://localhost:9655/js/app_user.js
405 Method Not Allowed
发现原因后,解决问题就简单很多。
找到easyui的js代码:
_41.addClass(“tree-loading”);
$.ajax({type:”post”,url:_3e.url,data:_3c,dataType:”json”,success:function(_42){
_41.removeClass(“tree-loading”);
在我的应用中,因为不需要POST方式获取json,就把type:”post”改为type:”get”即可。
已在easyui的官方论坛中说明这个问题,希望以后能多个method的设置选项。
2010.12.18 更新:
新版本jquery-easyui 1.2.1提供了tree组件的method方法设置,但是在用css自动解析方式时无效。
即通过《input class=”easyui-combotree” url=”…js” method=”get” /》调用时,仍然使用POST。
查看代码,原来是这里parseOptions时未对method进行解析:
$.fn.tree.parseOptions=function(_13c){
var t=$(_13c);
return {url:t.attr(“url”),…
加上对method的解析:
return {url:t.attr(“url”),method:(t.attr(“method”)?t.attr(“method”):”post”),…
问题解决。
标签: combotree, easyui, jQuery, postPosted in JavaScript, Technology | 2 Comments »
Posted by bianbian on 2009-07-24 01:03
jQuery挺好用,我就不说啥了。
今天实现了“自动TAB”,下面分享一下。有人会问为啥不用jquery-ui,主要是页面css已经全弄好了,实在不想为ui再写一次;其次是ui毕竟是那么大个家伙,心疼我的性能。
HTML页面非常简单:
之后就是用jQuery自动对这个.tabBox进行处理,加上鼠标点击自动切换的功能(当然可以加上鼠标移过的选项支持,作为示例,我就没写那么完善):
Posted in JavaScript, Technology | No Comments »