Loading

随笔分类 -  javascript

摘要:[代码]//Default3.aspx[代码]FROM: 《Ajax, a beginner's guide》 阅读全文
posted @ 2009-07-30 16:16 .net's 阅读(565) 评论(0) 推荐(0)
摘要:树形菜单(checkbox列表),设置checkbox的选中状态 阅读全文
posted @ 2009-03-14 16:43 .net's 阅读(801) 评论(0) 推荐(0)
摘要:function refreshopage() { window.location.reload(); } 阅读全文
posted @ 2009-03-04 21:55 .net's 阅读(3704) 评论(0) 推荐(0)
摘要:样式: 注: ①、不需要打印的对象要用上“Noprint”样式。 ②、需要换页处理的对象要用上“PageNext”样式。 ③、因为最后一页不用加入换页符,所以要控制最后一页不要使用该样式。个人感觉用PAGE-BREAK-BEFORE属性控制第一页要方便一些。 阅读全文
posted @ 2009-03-04 20:24 .net's 阅读(4252) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> the rusult of student1 Code Code highlighting produced by Actipro CodeHighlighter (freeware)... 阅读全文
posted @ 2009-01-18 12:22 .net's 阅读(323) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// Initializes a new instance of the StringBuilder class // and appends the given value if suppli... 阅读全文
posted @ 2008-11-30 20:27 .net's 阅读(524) 评论(1) 推荐(0)
摘要:因隐藏字段不支持focus()方法,故需排除掉 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-11-22 11:54 .net's 阅读(397) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Bad Words Example Enter some text below including "bad... 阅读全文
posted @ 2008-11-16 17:46 .net's 阅读(920) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Trim Example Enter some text containing leading and ... 阅读全文
posted @ 2008-11-16 16:50 .net's 阅读(675) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* * 将回车换行分开比较好 * update date:2009-01-01 * */ /// /// 回车 /// ... 阅读全文
posted @ 2008-11-16 14:57 .net's 阅读(876) 评论(3) 推荐(0)
摘要:在asp.net页面中,当有验证控件,而且想在验证控件验证通过之后, 在弹出一个确认对话框,提示是否继续。 当在button按钮上添加客户端的onclick="return confirm('Are you sure to continue?')"时,验证控件的验证就会失效。 因为验证控件也是添加客户端的onclick事件。 ------------------------------------... 阅读全文
posted @ 2008-11-14 21:12 .net's 阅读(978) 评论(0) 推荐(0)
摘要:asp.net1.1的情况 一个页面上有一个服务器控件的Button,为什么在Page_Load里加上了 Button1.Attributes["onclick"]="javascript:return window.confirm('请确定输入无误?');"; 却弹不出确认对话框。 因为是在msn上交流的,我给他测试了一下,语句没有一点问题,还以为是.net framework出了问题。不... 阅读全文
posted @ 2008-11-13 18:53 .net's 阅读(526) 评论(0) 推荐(0)
摘要:特殊字符 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->(1)\xn 匹配ASCII码值等于n的字符。n必须是两位的十六进制整数。例如,“\x41”匹配字符“A”。用这种方式可以表示所有非打印字符。 (2)\n 此处的n是一个一位的八... 阅读全文
posted @ 2008-11-11 21:45 .net's 阅读(546) 评论(0) 推荐(0)
摘要:即用构造函数定义对象的所有飞函数属性,用原型方式定义对象的函数属性(方法)。 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-11-09 14:06 .net's 阅读(383) 评论(0) 推荐(0)
摘要:void运算符对任何值都返回undefined。该运算符通常用于避免输出不应该输出的值,例如, 从HTML的元素调用JavaScript函数时。 要正确做到这一点,函数不能返回有效值,否则浏览器将清空页面,只显示函数的结果。 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeH... 阅读全文
posted @ 2008-11-08 22:03 .net's 阅读(392) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 阅读全文
posted @ 2008-11-08 00:00 .net's 阅读(341) 评论(0) 推荐(0)
摘要:1,让ie允许调试脚本,具体步骤如下: 打开ie->工具菜单->inter选项->高级选项卡->去掉“禁止脚本调试"选项 2,在javascript脚本中设置断点,F5运行程序,将自动运行到断点处暂停 第2种直接在html页面也可以调试,在javascript代码中加上一句debugger; Code Code highlighting produced by Actipro ... 阅读全文
posted @ 2008-11-07 23:26 .net's 阅读(707) 评论(0) 推荐(0)
摘要:使用 ECMAScript (JavaScript、JScript) 创建验证函数。 下面的代码示例解释了自定义客户端验证。源自页的摘要将显示由 CustomValidator 控件引用的 TextBox 控件。验证控件调用名为 validateLength 的客户端脚本函数,以确认用户在 TextBox 控件中输入了至少 8 个字符。 Visual Basic 复制代码 ... 阅读全文
posted @ 2008-10-22 22:49 .net's 阅读(530) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->var WebWindow = new Object();WebWindow.init = function(winId) { eval("place=" + this.ge... 阅读全文
posted @ 2008-10-12 19:45 .net's 阅读(808) 评论(2) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Untitled Document Click Here This is some conte... 阅读全文
posted @ 2008-10-12 16:47 .net's 阅读(482) 评论(0) 推荐(0)