随笔分类 -  JavaScript

摘要:1、SharePoint: ExecuteOrDelayUntilScriptLoaded(test,"SP.js") test: function name; ExecuteOrDelayUntilScriptLoaded: please see http://msdn.microsoft.com/en-us/library/ff411788.aspx.2、html:<script language="javascript" type="text/javascript"> $(window).bind("loa 阅读全文
posted @ 2012-03-13 14:47 LeimOO 阅读(200) 评论(0) 推荐(0)
摘要:1. javaScript函数中执行C#代码中的函数:方法一:1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中;2、在前台写一个js函数,内容为document.getElementById("btn1").click();3、在前台或后台调用js函数,激发click事件,等于访问后台c#函数;2.如何在JavaScript访问C#变量?答案如下:方法一: 1、通过页面... 阅读全文
posted @ 2010-11-30 17:54 LeimOO 阅读(321) 评论(0) 推荐(0)
摘要:Jquery实例中关于Ajax调取数据多集中在页面获取,关于WebService调取介绍很少,这里贴出代码,也是举例性质,后台根据自己情况进行更详细的查询返回。这里要说明几点:1、WebService地址必须是全称;2、数据返回(dataType)为xml,如果要返回Json,代码需要调整;3、参数写法看实例;页面部分代码:<%...@ Page Language="C#" AutoEven... 阅读全文
posted @ 2010-07-08 17:37 LeimOO 阅读(334) 评论(0) 推荐(0)
摘要:Using a ConfirmButton In a RepeaterChristian WenzOverviewThe ConfirmButton extender in the AJAX Control Toolkit creates a Yes/No popup when the user clicks on a button (including LinkButton control). ... 阅读全文
posted @ 2010-06-23 17:19 LeimOO 阅读(224) 评论(0) 推荐(0)
摘要:1、关于页面元素的引用 通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。 2、jQuery对象与dom对象的转换 只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的,调用方法时要注意操作的是dom对象还是jque... 阅读全文
posted @ 2010-01-18 10:14 LeimOO 阅读(163) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title&... 阅读全文
posted @ 2009-07-13 18:19 LeimOO 阅读(1750) 评论(0) 推荐(0)
摘要:html页面代码:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>增加Table行</title> </head> <script> function addRow(obj) { //... 阅读全文
posted @ 2009-07-13 18:10 LeimOO 阅读(369) 评论(0) 推荐(0)
摘要:按钮式:   <INPUT name="pclog" type="button" value="GO" onClick="location.href='http://9ba.cn/'">链接式:  <a href="javascript:history.go(-1)">返回上一步</a>  <a href="<%=Request.ServerVari... 阅读全文
posted @ 2009-07-13 17:57 LeimOO 阅读(407) 评论(0) 推荐(0)