11 2012 档案

摘要:JS获取节点的兄弟,父级,子级元素http://blog.csdn.net/duanshuyong/article/details/7562423先说一下JS的获取方法,其要比JQUERY的方法麻烦很多,后面以JQUERY的方法作对比。JS的方法会比JQUERY麻烦很多,主要则是因为FF浏览器,FF浏览器会把你的换行也当最DOM元素<div id="test"><div></div><div></div></div>原生的JS获取ID为test的元素下的子元素。可以用:var a = docuemnt. 阅读全文
posted @ 2012-11-26 11:24 TABCDT 阅读(390) 评论(0) 推荐(0) 编辑
摘要:sql错误,提示“不是有效的标识符”1、执行sql提示 名称***不是有效的标识符 --添加括号 sql exec(sql)2、sql中的单引号嵌套采用两个单引号''3、错误提示字符串转换为 smalldatetime 数据类型时失败 --将类型转换为字符型 caonvert(nvachar,@time) 日期型不可直接连接字符串4、错误提示字符串转换为 int 数据类型时失败 --可用 TeaID=cast('''+cast(@teaID as nvarchar(50))+''' as int )' 阅读全文
posted @ 2012-11-22 10:25 TABCDT 阅读(856) 评论(0) 推荐(0) 编辑
摘要:ajax返回值传给js全局变量2011-03-13 10:14:01| 分类: js | 标签:ajax 全局变量 async 值传 js |字号大中小订阅程序代码如下: 默认使用ajax时,async选项为true,也就是异部请求,这种情况下,异步请求不能将返回值传给全局变量 将async设为同步请求,就可以了,也就是async=false;<html> <head></head> <script src="http://blog.163.com/qzw881130@126/blog/./jquery-1.5.1.min.js" 阅读全文
posted @ 2012-11-19 15:12 TABCDT 阅读(418) 评论(0) 推荐(0) 编辑
摘要:json的增删改查(2012-05-03 22:38:36)http://blog.sina.com.cn/s/blog_78a83213010149sy.html<script type="text/javascript" src="json2.js"></script> <script> //直接声明json数据结构 var myJSONObject = {"bindings": [ {"ircEvent": "PRIVMSG", "method 阅读全文
posted @ 2012-11-14 10:44 TABCDT 阅读(503) 评论(0) 推荐(0) 编辑
摘要:用jQuery取得table中某一个tr的index值var myRows = $('.table_gray tbody tr').click( function() { index = $(this).index() ; //利用jquery提供的取序号的方法 index1 = myRows.index(this); //TR的属性,其序号计算范围在tbody内,与上一方法结果一致 index2 = this.sectionRowIndex; //TR的属性,其序号计算范围包括所有的TR index3 = this.rowIndex; } } ); 阅读全文
posted @ 2012-11-09 11:38 TABCDT 阅读(2162) 评论(0) 推荐(0) 编辑
摘要:在gridview上实现上下键移动选中行! http://blog.csdn.net/gdsimon/article/details/6121424因为要用到js,所以要在gridview的OnRowDataBound中加入js的语句。[c-sharp] view plaincopyprint?protectedvoid gvMain_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { string strGvName = " 阅读全文
posted @ 2012-11-06 10:48 TABCDT 阅读(217) 评论(0) 推荐(0) 编辑
摘要:展开和折叠GridView行 http://blog.csdn.net/lee576/article/details/3089677原文地址:http://www.codeproject.com/KB/webforms/GridViewExpandCollapse.aspx 代码下载:/Files/sunfishlu/GridViewExpandCollapse.rar 效果图: 介绍 这篇文章介绍了使用JavaScript折叠/展开GridView行的功能,为了实现所希望的效果,我在GridView的表头放置了一张图片,当点击对应图片时,GridView将会折叠和展开行。HTML代码 ... 阅读全文
posted @ 2012-11-06 10:40 TABCDT 阅读(639) 评论(0) 推荐(0) 编辑
摘要:html] view plaincopyprint?<html> <head> <title>表格</title> <styletype="text/css"> .editText { border-width:1px; border-top-style:none; border-left-style:none; border-right-style:none; border-bottom-style:solid; border-color:#030; width:100%; } </style> &l 阅读全文
posted @ 2012-11-06 10:32 TABCDT 阅读(267) 评论(0) 推荐(0) 编辑