
JavaScript
文章平均质量分 77
Tristan_Dong
这个作者很懒,什么都没留下…
展开
-
SharePoint Judge current user permission via Client Object Model about JavaScript
Judge current user permissionsometime, we should judge the permisson of current user when view different page. here, we can complete it via js, follow the code.For example: the permission site c原创 2013-03-19 18:12:19 · 2110 阅读 · 0 评论 -
Introduce AJAX about how to dynamic loading HTML/JSON/XML dataType
1. how to loading HTML/JSON/XML dataType via AJAXAs we know, we can dynamic loading the file via ajax, it is very convient for customer.And, there are three kinds of dataType: JSON, XML, HTML. but the原创 2013-11-08 17:56:02 · 2081 阅读 · 0 评论 -
SharePoint 2013 自定义翻页显示列表项
项目需求:自定义开发一个能分页显示列表项的小部件,允许左右翻页,能根据用户权限来显示管理链接等。效果如下:技术要求:使用sharepoint rest API 来获取列表项,这样性能高,能够快速响应用户操作。(关于REST API详细介绍见我的博客:SharePoint REST Service steps by steps) 步骤:1. 创建一个自定义list,无需创建其原创 2014-01-02 19:32:43 · 2572 阅读 · 0 评论 -
Create and Call HttpHandler in SharePoint
Create and Call HttpHandler in SharePointRequirement: 1. Create a httphandler, and reture json data when call the httphandler in client.2. Create a list named "Products", including a column na原创 2014-05-14 18:04:41 · 1518 阅读 · 0 评论 -
how to set default content type in document set in Sharepoint
how to set default content type in document set in Sharepoint, when upload document in the document set, it is not working, it still had the content type named "Document", even it is the default content type原创 2014-09-12 17:34:58 · 1788 阅读 · 0 评论 -
Post/Reply a post by Social feed REST API in SharePoint 2013
Post/Reply a post by Social feed REST API in SharePoint 2013, SharePoint REST endpoints for reading and writing to social feeds原创 2014-12-30 17:54:05 · 3010 阅读 · 0 评论 -
细说 jQuery - 事件传播
Javascript 是如何决定由哪个元素来处理事件的,以及jQuery 又是如何优化处理这个问题的,这些都涉及到了事件传播。事件传播策略当页面内的发生一个事件时,每个层次的 DOM 元素都有机会来处理这个事件,为了弄懂整个过程,举例说明:div class="wrapper"> span class="bar"> a href="#">segmentfault转载 2015-08-27 14:41:05 · 816 阅读 · 0 评论 -
Web前端面试题集锦
1. 简单描述Javascri和java, c#的区别2. 清楚float有那几种方式?有什么优劣3. 讲讲你对CDN的理解4. 列举一些性能优化的方法5. RequireJS和SeaJS的区别?6. 媒体查询的理解7. AuglarJS, BackboneJS, YUI, BootStrap前端框架的认识8. 原型和原型链的理解9. 作用域和作用域链的理解原创 2015-08-17 15:09:54 · 1635 阅读 · 0 评论 -
初识JSONP--解决ajax跨域问题
先说说JSONP是怎么产生的:其实网上关于JSONP的讲解有很多,但却千篇一律,而且云里雾里,对于很多刚接触的人来讲理解起来有些困难,小可不才,试着用自己的方式来阐释一下这个问题,看看是否有帮助。1、一个众所周知的问题,Ajax直接请求普通文件存在跨域无权限访问的问题,甭管你是静态页面、动态网页、web服务、WCF,只要是跨域请求,一律不准;2、不过我们又发现,Web页面上调用原创 2015-08-20 16:00:34 · 1169 阅读 · 0 评论 -
正则表达式大全
很多不太懂正则的朋友,在遇到需要用正则校验数据时,往往是在网上去找很久,结果找来的还是不很符合要求。所以我最近把开发中常用的一些正则表达式整理了一下,在这里分享一下。给自己留个底,也给朋友们做个参考。一、校验数字的表达式1. 数字:^[0-9]*$2. n位的数字:^\d{n}$3. 至少n位的数字:^\d{n,}$4. m-n位的数原创 2016-01-22 11:23:14 · 1112 阅读 · 0 评论 -
SharePoint use PreSaveAction before save button clicked
function PreSaveAction() { if(condiction) return true else return false} If the function PreSaveAction return false, then the item form will not be转载 2013-10-18 18:06:47 · 1701 阅读 · 0 评论 -
JavaScript monitor hidden input value change
In some scenarios of web development, we need to monitor hiddeninput value change then do something.In my first mind, I think we can use onchange event of theelement, but when I tried it, it failed转载 2013-10-18 18:03:41 · 1508 阅读 · 0 评论 -
Client Object Model
Client Object Model我们知道Microsoft SharePoint 2010 提供了三个新的客户端 API,这些 API 允许您通过在浏览器中执行的脚本、在 .NET 托管应用程序中执行的代码(Microsoft .NET Framework 3.5 或更高版本)或在 Microsoft Silverlight 2.0 应用程序中执行的代码与 SharePoint 网站进行原创 2013-02-20 10:59:56 · 1299 阅读 · 0 评论 -
SharePoint change the form title and rename the Attachment File via javaScript
How to change the form titlesometimes, we don't need the default display title in sharepoint form, if we could custom the title by ourselves, I have good method to change the form title. For E原创 2013-03-19 18:29:05 · 1568 阅读 · 0 评论 -
Deploy custom Css,Js files in SharePoint 2010 using visual studio 2010
Deploy custom Css,Js files in SharePoint 2010 using visual studio 2010May 15, 2011 · byLearning SharePoint · inSharePoint Top NavIn this post you learn how to deploy files like Css, js or翻译 2013-04-03 10:22:30 · 1498 阅读 · 0 评论 -
Javascript : 逻辑和代码的分离
问题的提出B/S软件开发的过程中,软件开发人员使用的已经不仅仅是一门单纯的编程语言。除了会用C#或者java(c++,vb,php...)等高级语言外,还需要使用html或者xml设定页面结构,使用javascript设定页面行为,使用css/XSTL进行页面布局。将来或许还会有更多的技术和实现方法(Flesh, silverlight, javaFX, Felx),林子大了什么问题都转载 2013-04-02 16:45:36 · 1060 阅读 · 0 评论 -
How to get value of the person or group type via CAML Query js
Get value of the person or group typeFor Example: Get the value of Notification Recipient.Note: Because the person value is object, we couldn't get it, only get its object. at last, we coulde get原创 2013-03-22 09:05:15 · 1545 阅读 · 0 评论 -
SharePoint 2010 Cookbook: Backup a Site Collection Automatically with a PowerShell Script
One of the most important things that all SharePoint users, and especially administrators, should do regularly is back up data. Nevertheless, it is often overlooked by many people just because the pro转载 2013-04-18 12:37:16 · 1302 阅读 · 0 评论 -
Create subtask in task list via client javascript in sharepoint 2013
Create subtask in task list via client javascript in sharepoint 2013原创 2013-07-17 17:54:11 · 5228 阅读 · 0 评论 -
Filter the task and subtask in sharepoint 2013
Filter the task and subtask in sharepoint 2013.only show tasks or subtasks.原创 2013-07-17 18:13:22 · 2368 阅读 · 0 评论 -
Get tasks assigned to user or to current user groups in SharePoint using CAML query
The CAML Query: tasks assigned to user or to current user groups 123 Completed 1. Membership 类型参数有五种:SPWeb.AllUsers, SPGroup, SPWeb.Groups,CurrentUserGroups , SPWeb.Us原创 2013-07-18 17:45:56 · 2600 阅读 · 1 评论 -
Display number of replies in disscussion board
how to display number of replies in disscussion boardI have a require about display the replies' number in disscussion board, finish it via jQuery.First, get the number of the replies of each it原创 2013-09-27 18:20:09 · 1951 阅读 · 1 评论 -
深入相等运算符
先来看这个例子,请问下面表达式的值是多少。0 == null如果你不确定答案,或者想知道语言内部怎么处理,就可以去查看规格,7.2.12小节是对相等运算符(==)的描述。规格对每一种语法行为的描述,都分成两部分:先是总体的行为描述,然后是实现的算法细节。相等运算符的总体描述,只有一句话。"The comparison x == y, where x an原创 2016-01-22 15:14:46 · 661 阅读 · 0 评论