代码改变世界

随笔分类 -  jQuery相关

JQueryUI-autoComplete控件使用详解

2012-01-12 15:46 by AnyKoro, 1679 阅读, 收藏, 编辑
摘要: JQueryUI的东西,说简单,简单,但是灵活性稍微有些不足。接下来是我在工作中遇到的一则应用,感觉是挺平常的,但是却还找不到很对应的。所以写下,记录下。直接上代码: $(function() { $( "#CatalogText" ).autocomplete({ minLength: <%=int.Parse(ConfigurationManager.AppSettings["MinReactLength"] ?? "1") %>, source: "SearchTerm.ashx?catagory=2&am 阅读全文

向mvc controller传递json数组

2010-02-27 00:11 by AnyKoro, 7237 阅读, 收藏, 编辑
摘要: 对于这个主题我没有找到最合适的办法,只是找出了个可以暂时规避问题的方法。发到这里非常希望各位大侠,能给小弟些思路解决此问题。一开始的需求本想实现这么一个功能这里的后台的程序这个是我最一开始的程序,刚一开始,发现整个程序怎么也不起作用(可以传到后台),一顿调试,发现时没有把json数据字符串化,后来使用了jqueryToJSON进行了字符串化,字符串化后,limit可以认出了,但是对于数组格式的li... 阅读全文

Jquery的属性选择器

2010-02-25 19:53 by AnyKoro, 204 阅读, 收藏, 编辑
摘要: Attribute Filters:Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your selectors in order to make them work ... 阅读全文

Sortable List using ASP.net MVC and jQuery

2010-02-21 10:28 by AnyKoro, 1525 阅读, 收藏, 编辑
摘要: Sorting is one of the most basic and essential algorithm form the early days of computation, In this article we will be discussing about sorting a list of items in a web application, this is one of th... 阅读全文

Hierarchical Treeview with ASP.NET MVC & jQuery

2010-02-21 10:22 by AnyKoro, 1007 阅读, 收藏, 编辑
摘要: First of all, an apology for being so quiet over the past few weeks. I've been putting my blogging aside for a while to chase some pet projects I'm working on. More on that later.I did, however, run i... 阅读全文

你的第一杯Web 2.0 —— 快速浏览jQuery、Spring MVC和XStream/Jettison

2010-02-21 09:43 by AnyKoro, 722 阅读, 收藏, 编辑
摘要: 不再有页面刷新:使用jQuery相关厂商内容免费迷你书下载:Flex入门指南——PHP开发者Flash Builder 4 Beta和FlexUnit下的测试驱动开发下载Flex 4 SDK,构建超级棒的Flex应用 使用Pixel Bender Toolkit制作特效——创建vintage tone过滤器(Part 2)在Flash Builder... 阅读全文

MVC JSON - JsonResult and jQuery

2010-02-21 09:22 by AnyKoro, 3042 阅读, 收藏, 编辑
摘要: The latest release of the MVC framework provides the JsonResult forController actions. I was surprised that I did not find a weatlh of examplesfor usage so I figured it shouldn't be too hard to get a ... 阅读全文

[转]jQuery and JavaScript CSS !important

2010-02-17 11:40 by AnyKoro, 948 阅读, 收藏, 编辑
摘要: Everyone who is familiar with CSS !important statement understood that it means that the style have the highest priority regardless of other priority. However, !important should be avoided as much as possible and order priority should be practice in CSS instead. In jQuery, there are times when we ne 阅读全文

使用JQuery进行WCF通信的学习记录

2010-02-15 10:51 by AnyKoro, 321 阅读, 收藏, 编辑
摘要: 先架设一个wcf服务,然后,需要住的是在对应的协议上添加上: [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)] ForTestDat... 阅读全文

发两个javascript文件的工具

2010-02-14 17:56 by AnyKoro, 159 阅读, 收藏, 编辑
摘要: jslint,jsmin,前者是验证JavaScript代码质量的,后者是压缩工具,就是去除空格和解释对应的网址分别是http://www.jslint.com/,http://fmarcia.info/jsmin/test.html 阅读全文

[转]jQuery教程:jQuery 1.4新特性及其变化

2010-02-14 14:20 by AnyKoro, 480 阅读, 收藏, 编辑
摘要: 为庆祝jQuery的四周年生日,jQuery官方团队正式发布了jQuery的1.4版本。在这个版本中,jQuery官方团队做了大量的编码、测试和文档工作,相对之前版本自然改进不少,让我们一起来看看有那些新变化吧。本文分上下两篇,上篇主要总体介绍jQuery 1.4版本的相关使用及更新,下篇通过一些代码示例来展示更新的方法及新添加的方法。【下载及调用】像以往一样,官方提供了jQuery的两份拷贝,一... 阅读全文