随笔分类 -  JavaScript

一些学用的JS代码的总结
JS,Jquery 调用 C#WebService
摘要:1,需要在服务下面把代码的注释去掉 // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。 //[System.Web.Script.Services.ScriptService]2,JS 调用方法如下var request = '<?xml version="1.0" encoding="utf-8"?>'; request += '<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文

posted @ 2012-10-10 11:51 HelloHongfu 阅读(2086) 评论(0) 推荐(0)

CRM 2011 开发小结 REST查询 datetime类型和 OptionSetValue 类型
摘要:1,查询时间类型的时候 时间取值要用UTC时间,转成待定格式的字符串 例如:$filter=new_date ge datetime'2010-09-10T12:00:00' and new_date le datetime'2010-09-12T12:00:00'and new_type/Value ne 100000000时间转换函数如下 :function GetUTCDate(date) { var year = date.getUTCFullYear(); var month = date.getUTCMonth() + 1; if (month &l 阅读全文

posted @ 2012-09-21 17:03 HelloHongfu 阅读(693) 评论(0) 推荐(0)

js showModalDialog参数传递
摘要:showModalDialog:模式窗口, 一种很特别的窗口,当它打开时,后面的父窗口的活动会停止,除非当前的模式子窗口关闭了, 才能操作父窗口.在做网页Ajax开发时,我们应该有时会用到它来实现表单的填写, 或做类似网上答题的窗口. 它的特点是,传参很方便也很强大,可直接调用父窗口的变量和方法.使用方法: vReturnValue = window.showModalDialog(sURL [... 阅读全文

posted @ 2010-10-31 19:41 HelloHongfu 阅读(7744) 评论(0) 推荐(0)

导航