2010年7月7日
摘要: $(":not([title='test']):not([id='mover'],[id='one'])").css("background", "#bbffaa");and关系:多个选择器合并在一起,连起来写,如::not([title='test']):not([id='mover']or关系:多个选择器之间使用逗号“,” 分隔,如:not([id='mover'],[... 阅读全文
posted @ 2010-07-07 19:38 一粒沙 阅读(646) 评论(0) 推荐(0) 编辑
  2010年7月6日
摘要: 挺好用的工具1.使用一个项目文件来管理要打包的js文件,不用每次都重新弄一次2.打包的js文件先后顺序可以调整3. 目前没有加密,只是去掉了注释与换行下载 阅读全文
posted @ 2010-07-06 16:40 一粒沙 阅读(375) 评论(0) 推荐(0) 编辑
  2010年6月29日
摘要: 在刚刚结束的Mix09大会上(Mix是微软面向web开发者和设计者的会议),Silverlight团队的程序经理Joe Stegman介绍了silverlight3的许多让人兴奋的新功能.1. 支持更多的媒体编码格式在Silverlight 3中新增加的多媒体编码格式包括H.264,AAC,MP4。Silverlight这项技术,从出生以来,就一直把对多媒体,尤其是视频的支持,放在首要位置。这次对... 阅读全文
posted @ 2010-06-29 05:32 一粒沙 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 本文作者Chad Campbell是一名微软MVP以及系统解决方案顾问。他通过这篇文章介绍了Silverlight对于普通用户,MBA和开发者的价值何在。本翻译节选了有关普通用户和开发者的两个部分,以便于读者了解自己所关注的Silverlight新功能。【51CTO快译】“Silverlight是一个客户端运行时,这个运行时为开发者提供设计与开发的平台,并在互联网上传递丰富互动的体验&... 阅读全文
posted @ 2010-06-29 05:30 一粒沙 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 微软最近发布了此前一直在秘密研发的.Net RIA Services(此前叫做“Alexandria”项目)。这个项目目前只是个预览版,不过对于.NET RIA Services以及Silverlight 3可能实现的功能,本文的作者表示了自己的看法。商业应用程序的开发最打的挑战不是在绚丽的动画效果,视频播放等功能。而是最常用的Create, read, update an... 阅读全文
posted @ 2010-06-29 05:29 一粒沙 阅读(277) 评论(0) 推荐(0) 编辑
  2010年6月22日
摘要: Store.getCount()返回的是store中的所有数据记录,然后使用for循环遍历整个store,从而得到每条记录。除了使用getCount()的方法外,还可以使用each()函数,如下面的代码所示。store.each(function(record){ alert(record.get('name')); });store.each(function(record) { alert(r... 阅读全文
posted @ 2010-06-22 10:10 一粒沙 阅读(481) 评论(0) 推荐(0) 编辑
  2010年6月18日
摘要: 方法1:Html文件 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-... 阅读全文
posted @ 2010-06-18 16:00 一粒沙 阅读(1700) 评论(0) 推荐(0) 编辑
摘要: 111.用匹配的元素替换掉所有 selector匹配到的元素。$("<b>Paragraph. </b>").replaceAll("p"); 112.将所有匹配的元素替换成指定的HTML或DOM元素。$("p").replaceWith("<b>Paragraph. </b>"); 113.删除匹配的元素集合中所有的子节点。$("p").empty... 阅读全文
posted @ 2010-06-18 15:34 一粒沙 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 86.把与表达式匹配的元素添加到jQuery对象中。这个函数可以用于连接分别与两个表达式匹配的元素结果集。$("p").add("span');$("p").add("<span>Ajax</span>");87.取得一个包含匹配的元素集合中每一个元素的所有子元素的元素集合。可以通过可选的表达式来过滤所匹配的子元素。注意:parents()将查找所有祖辈元素,而childr... 阅读全文
posted @ 2010-06-18 15:33 一粒沙 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 63.为所有匹配的元素设置一个计算的属性值$(img).attr("title",function(){return this.src});64.为所有匹配的元素设置一个属性值$("img").attr("src","test.jpg");65.取得第一个匹配元素的属性值。通过这个方法可以方便地从第一个匹配元素中获取一个属性的值。如果元素没有相应属性,则返回undefined$("img").at... 阅读全文
posted @ 2010-06-18 15:32 一粒沙 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 38.匹配给定的属性是否包含某些值的元素$("input[name*='person']"); //表达式在find选择器中也能使用39.匹配给定的属性不包含某个特定值的元素$("input[name!='news']").attr("checked",true);40.匹配给定的属性是以某些值结尾的元素$("input[name$='car']");41.匹配给定的属性是某个特定值的元素$("i... 阅读全文
posted @ 2010-06-18 15:31 一粒沙 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1.返回指定html的值 $("#msg").html(); //取值,相当于get方法 $("#msg").html("hello"); //赋值,相当于set方法2.$.get("search.do",{id:1},rend); function rend(xml){ alert(xml); } $("#msg").ajaxStart(function(){ this.html("正在加载。。... 阅读全文
posted @ 2010-06-18 15:30 一粒沙 阅读(255) 评论(0) 推荐(0) 编辑
摘要: xml文件各个层次的节点名称都一样,所以不能使用DataSet.ReadXml来加载,必须使用XmlDocument对象: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<?xmlversion='1.0'encoding='UTF-8'?... 阅读全文
posted @ 2010-06-18 14:45 一粒沙 阅读(3599) 评论(0) 推荐(0) 编辑
摘要: JQuery版本:jquery-1.4.2.min.js需要通过IIS才能正确运行DEMO.html代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<htmlxmlns="http://www.w3.org/1999/xhtml">&... 阅读全文
posted @ 2010-06-18 11:41 一粒沙 阅读(2221) 评论(0) 推荐(0) 编辑
  2010年6月16日
摘要: 创建和分发您自己的自定义 ActiveX 控件除了可以提供 Microsoft Office InfoPath 中没有提供的功能外,还可以节省其他表单模板设计者的时间和精力。您可以使 Microsoft ActiveX 控件在设计模式(设计模式:InfoPath 设计环境,可以在其中创建或修改表单模板。)中可用,然后在您创建的表单模板上使用这些控件。本文内容什么时候使用 ActiveX 控件用户体... 阅读全文
posted @ 2010-06-16 11:49 一粒沙 阅读(457) 评论(0) 推荐(0) 编辑
  2010年6月8日
摘要: [代码]然后就可以像这样使用了:[代码]有一个奇怪的问题:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--Ext.form.FormPanelExtend=Ext.extend(Ext.form.TriggerField,{initCompone... 阅读全文
posted @ 2010-06-08 18:07 一粒沙 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 1.ExtJs中的Combos控件,定义数据源store的时候可以采用下面的方式:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--varstore=newExt.data.SimpleStore({//定义组合框中显示的数据源//fields:[... 阅读全文
posted @ 2010-06-08 18:00 一粒沙 阅读(2906) 评论(0) 推荐(0) 编辑
  2010年6月3日
摘要: 第三章:Ext OOP基础一、javascript类的定义 在javascript中,通过创建一个构造函数来定义一个类,然后通过prototype来扩展类的功能。假设我们定义一个螃蟹类:Crab = function(){ this.legs = 10;}Crab.prototype = { say: function(){ alert("我是一只螃蟹,我有" + this.legs + "只脚,... 阅读全文
posted @ 2010-06-03 23:28 一粒沙 阅读(263) 评论(0) 推荐(0) 编辑
  2010年5月21日
摘要: 说明:如果要安装Wss3.0或者SharePoint2007到客户端,需要使用一大堆的技巧和工具,需要的朋友可以通过此处下载。而SharePoint2010的客户端安装只需要简单的修改一下Config文件即可,极大地简化了我们在客户端操作系统中部署开发环境的过程。 条件:进程管理器—Process Explorer (点击下载)SharePoint Server 2010 Beta安装... 阅读全文
posted @ 2010-05-21 09:16 一粒沙 阅读(406) 评论(0) 推荐(0) 编辑
  2010年5月19日
摘要: 代码复用是绝大多数程序员所期望的,也是OO的目标之一。总结我多年的编码经验,为了使代码能够最大程度上复用,应该特别注意以下几个方面。1、 对接口编程 "对接口编程"是面向对象设计(OOD)的第一个基本原则。它的含义是:使用接口和同类型的组件通讯,即,对于所有完成相同功能的组件,应该抽象出一个接口,它们都实现该接口。具体到JAVA中,可以是接口(interface),或者是抽象类(abstract ... 阅读全文
posted @ 2010-05-19 10:06 一粒沙 阅读(1046) 评论(0) 推荐(1) 编辑
  2010年5月18日
摘要: 一般最常搭配 XML 用來查詢資料的技術是 XPath 。不過 .Net 僅支援到 XPath 1.0 ,有時想在 XPath 中加上日期函式的判斷都不行。 再加上若使用了 XPath 的函式或一些判斷式後,整個 XmlDocument 的查詢效能會變慢。(參考以下的例子)本文章所使用的 XML 內容 (ad.xml :紀錄一些廣告圖與連結):view source print?01<?xm... 阅读全文
posted @ 2010-05-18 17:13 一粒沙 阅读(716) 评论(0) 推荐(1) 编辑
摘要: 从根节点一直下来的相对路径才能确定Xpath的写法。/root/<节点1>/<节点2>//<@属性>Xpath是功能很强大的,但是也是相对比较复杂的一门技术,最好还是到博客园上面去专门找一些专业的帖子来看一看,下面是一些简单的Xpath语法和一个实例,提供给你参考一下<?xml version="1.0" encoding="ISO-8859-1"?>... 阅读全文
posted @ 2010-05-18 17:11 一粒沙 阅读(1923) 评论(0) 推荐(1) 编辑
摘要: 如题 <News> <NewsCols> <Title></Title> <Content></Content> </NewsCols> </News> 上面表现为字符串,怎样加载到DataSet中 ------------------------------------------------... 阅读全文
posted @ 2010-05-18 17:08 一粒沙 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 本文演示如何使用 XPathNavigator 类通过 XML 路径语言 (XPath) 表达式查询 XPathDocument 对象。XPath 用于以编程方式计算表达式并选择文档中的特定节点。 回到顶端 要求下面的列表列出了推荐使用的硬件、软件、网络基础结构以及所需的服务包: Visual C# .NET 本文假定您熟悉下列主题: XML 术语 创建和读取 XML 文件 XPath 语法... 阅读全文
posted @ 2010-05-18 09:55 一粒沙 阅读(483) 评论(0) 推荐(0) 编辑
  2010年5月16日
摘要: 微软所有的sdk,很好的http://msdn.microsoft.com/zh-cn/dd299405(en-us).aspx 阅读全文
posted @ 2010-05-16 16:56 一粒沙 阅读(234) 评论(0) 推荐(1) 编辑
  2010年5月14日
摘要: InfoPath表单放在我们自己的Web部件页或者自定义的页面中也就是在Web部件页中或者自定义页面中嵌入Infopath表单。一、XMLFormView的基础知识:在MOSS中一般的都是通过FormServer在单独的一个MOss页面中查看和填写InfoPath表单。如果我们要把InfoPath表单放在我们自己的Web部件页或者自定义的页面中的时候就需要有表单装载的容器。XMLFormView控... 阅读全文
posted @ 2010-05-14 11:15 一粒沙 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 转:http://msdn2.microsoft.com/en-us/library/ms788206.aspxSummary: Learn how to write a custom Microsoft ActiveX control that meets all requirements for use in InfoPath and learn how to deploy the contr... 阅读全文
posted @ 2010-05-14 11:08 一粒沙 阅读(391) 评论(0) 推荐(0) 编辑
摘要: We have seen a number of requests on how to allow a user to enter (or select) a person’s name or logon alias and then validate that user against their Active Directory without using code. This h... 阅读全文
posted @ 2010-05-14 11:06 一粒沙 阅读(303) 评论(0) 推荐(0) 编辑
摘要: Speaking of Outlook integration, Microsoft Office 2007 includes a new control that enables you to choose one or more e-mail address from the address book. You can add this control to InfoPath’s ... 阅读全文
posted @ 2010-05-14 11:06 一粒沙 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Custom Control support in InfoPath (Part I - Simple Binding)Published 07 July 04 11:32 AM | ajma Over the last year and a half, the InfoPath team has been working on the SP1 release. If anyone's seen ... 阅读全文
posted @ 2010-05-14 11:05 一粒沙 阅读(344) 评论(0) 推荐(0) 编辑
摘要: From: http://blogs.msdn.com/infopath/archive/2004/04/09/110504.aspxExtending the InfoPath control set with custom controlsInfoPath provides a rich and complete set of generic built-in controls in both... 阅读全文
posted @ 2010-05-14 11:04 一粒沙 阅读(225) 评论(0) 推荐(0) 编辑
摘要: InfoPath has a really powerful feature to allow users to create their own custom controls for InfoPath forms using Microsoft's ActiveX technology. One requirement that is essential for controls to wor... 阅读全文
posted @ 2010-05-14 11:04 一粒沙 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 来自:微软表单中可以承载 ActiveX 控件。这些控件可以是现成的(具有某些约束),也可以针对 InfoPath 专门编写这些控件。编写 ActiveX 控件像 InfoPath 中的其他控件一样,ActiveX 控件应该支持现有的组件对象模型 (COM) 接口:IDispatchIPersistPropertyBagIPersistStreamInitIPropertyPageIObjectS... 阅读全文
posted @ 2010-05-14 11:03 一粒沙 阅读(311) 评论(0) 推荐(0) 编辑
摘要: from: 微软操作方法:创建 COM 加载项以将自定义功能添加到 InfoPathMicrosoft Office InfoPath 2007 支持用于扩展表单编辑用户体验的 COM 加载项。尽管这是 Office InfoPath 2007 的新功能,但其他 Office 应用程序(如 Microsoft Office Word 和 Microsoft Office Excel)从 Offic... 阅读全文
posted @ 2010-05-14 11:02 一粒沙 阅读(354) 评论(0) 推荐(0) 编辑
摘要: A frequent question from InfoPath users is “How can I pass parameters to a newInfoPath form when it is created?”Unfortunately, there’s no built-in functionality for passing command-l... 阅读全文
posted @ 2010-05-14 11:01 一粒沙 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.mcse.ms/message1299834.html&highlight=InfopathControl.savestateI've been recently dealing with this same issue and here's the resolutionI've come to:1. You can ONLY use Integers, Lon... 阅读全文
posted @ 2010-05-14 11:00 一粒沙 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 初次接触Infopath,我就被它的强大的功能,灵活的表单制作方式,全面对Web Services的支持等特点深深的吸引了。曾经尝试用Infopath来完成一些MIS项目,Infopath却有一些我们难以逾越的障碍,使得无法方便的和项目紧密结合。主要是有以下几个方面使得Infopath不能和项目有效的结合: Infopath只能在Infopath本身的程序中填写表单(这个问题去年我曾经解决过,参考... 阅读全文
posted @ 2010-05-14 10:42 一粒沙 阅读(352) 评论(0) 推荐(0) 编辑
摘要: One of the problems with InfoPath controls is their limited availability. For example, there is no such control like the NumericUpDown control in WinForms. Or you may have a predefined complex UI, whi... 阅读全文
posted @ 2010-05-14 10:29 一粒沙 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 转:http://blogs.msdn.com/infopath/archive/2005/04/15/creating-an-infopath-custom-control-using-c-and-net.aspx In Office 2003 Service Pack 1 (SP1), new features and the InfoPathControl and InfoPathContr... 阅读全文
posted @ 2010-05-14 10:28 一粒沙 阅读(1337) 评论(0) 推荐(0) 编辑
  2010年5月13日
摘要: http://msdn.microsoft.com/zh-cn/library/ee787051(v=office.14).aspx 阅读全文
posted @ 2010-05-13 13:38 一粒沙 阅读(308) 评论(0) 推荐(0) 编辑