<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_LanceZhang's Tech Blog_分类_03. JavaScript &amp; CSS</title><id>http://feed.cnblogs.com/blog/u/28707/category/137640/rss</id><updated>2012-05-29T21:28:34Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/category/137640.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/28707/category/137640/rss"/><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/04/27/1444474.html</id><title type="text">用JavaScript写Session的两种方法</title><summary type="text">方法一：使用postback[代码]方法二：使用AJAX[代码]方法二中，设置session需要一个额外的aspx页面:[代码]</summary><published>2009-04-27T03:39:00Z</published><updated>2009-04-27T03:39:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/04/27/1444474.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/04/27/1444474.html"/><content type="text">方法一：使用postback[代码]方法二：使用AJAX[代码]方法二中，设置session需要一个额外的aspx页面:[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/04/21/1440386.html</id><title type="text">在外部CSS中实现Table td的colspan</title><summary type="text">个人感觉Table布局一直都是比较麻烦的前阵子有个客户需求，要把下面代码中的colspan=3去掉，在外部css中定义[代码]由于css中td并没有colspan属性，所以非常令人头痛，可以说是没办法实现的最后用这么个方法忽悠了他：[代码]如代码所示，IE的css expression到是可以实现需求：然而，需要注意的是：expression只能在IE下使用expression一般不要使用，会消耗...</summary><published>2009-04-21T06:02:00Z</published><updated>2009-04-21T06:02:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/04/21/1440386.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/04/21/1440386.html"/><content type="text">个人感觉Table布局一直都是比较麻烦的前阵子有个客户需求，要把下面代码中的colspan=3去掉，在外部css中定义[代码]由于css中td并没有colspan属性，所以非常令人头痛，可以说是没办法实现的最后用这么个方法忽悠了他：[代码]如代码所示，IE的css expression到是可以实现需求：然而，需要注意的是：expression只能在IE下使用expression一般不要使用，会消耗...</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/04/06/1430281.html</id><title type="text">设置TextBox中光标的位置到最后(set the cursor position in a TextBox or InputText) </title><summary type="text">works in IE and FFexample：[代码]</summary><published>2009-04-06T06:59:00Z</published><updated>2009-04-06T06:59:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/04/06/1430281.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/04/06/1430281.html"/><content type="text">works in IE and FFexample：[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/03/19/1416447.html</id><title type="text">在图片上移动时用JavaScript显示坐标</title><summary type="text">代码如下，保存成.htm即可目前不支持FF，但支持其它浏览器[代码]</summary><published>2009-03-19T03:39:00Z</published><updated>2009-03-19T03:39:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/03/19/1416447.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/03/19/1416447.html"/><content type="text">代码如下，保存成.htm即可目前不支持FF，但支持其它浏览器[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/03/17/1414436.html</id><title type="text">JavaScript 获取所点击行中某单元格的内容</title><summary type="text">原理：在行绑定时为行添加onclick handler， 并绑定所要显示的单元格内容：代码如下[代码][代码]</summary><published>2009-03-17T08:12:00Z</published><updated>2009-03-17T08:12:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/03/17/1414436.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/03/17/1414436.html"/><content type="text">原理：在行绑定时为行添加onclick handler， 并绑定所要显示的单元格内容：代码如下[代码][代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/03/16/1413185.html</id><title type="text">JavaScript从HTML Table中取得某单元格Cell中的数据</title><summary type="text">在IE和FF下稍有不同：[代码]</summary><published>2009-03-16T05:55:00Z</published><updated>2009-03-16T05:55:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/03/16/1413185.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/03/16/1413185.html"/><content type="text">在IE和FF下稍有不同：[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/03/10/1407681.html</id><title type="text">JavaScript日期时间间隔计算</title><summary type="text">HiIf you need to validate the date span between the two input dates, I would like to suggest you try the following demo, which works fine on our lab:[代码]Thanks.</summary><published>2009-03-10T03:42:00Z</published><updated>2009-03-10T03:42:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/03/10/1407681.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/03/10/1407681.html"/><content type="text">HiIf you need to validate the date span between the two input dates, I would like to suggest you try the following demo, which works fine on our lab:[代码]Thanks.</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/02/11/1388021.html</id><title type="text">轻量级网页客户端矢量图形绘制技术总结（lightweight techniques for online drawing）</title><summary type="text">提到在线绘图，目前最流行的技术应该属Flex了（可参见另一篇文章：15个强大的在线图片编辑器 ），另外Silverlight在此方面也很有潜力。相比之下，诸多轻量级的客户端矢量图形绘制技术却显得有点鲜为人知。谨以此文总结我一年以来收集的此方面的相关资料与心得，与大家分享！</summary><published>2009-02-11T03:55:00Z</published><updated>2009-02-11T03:55:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/02/11/1388021.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/02/11/1388021.html"/><content type="text">提到在线绘图，目前最流行的技术应该属Flex了（可参见另一篇文章：15个强大的在线图片编辑器 ），另外Silverlight在此方面也很有潜力。相比之下，诸多轻量级的客户端矢量图形绘制技术却显得有点鲜为人知。谨以此文总结我一年以来收集的此方面的相关资料与心得，与大家分享！</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2009/01/16/1377029.html</id><title type="text">ASP.NET ImageButton/Image 控件关于border的一个诡异的BUG及其解决方案</title><summary type="text">今天上午帮同事重现一个客户提交的关于ASP.NET ImageButton/Image控件的bug，最终找出了原因，提交到了产品组，但很是不解，在网上搜索了一下，也没见大家讨论这个问题。在此就和大家研究一下</summary><published>2009-01-16T07:29:00Z</published><updated>2009-01-16T07:29:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2009/01/16/1377029.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2009/01/16/1377029.html"/><content type="text">今天上午帮同事重现一个客户提交的关于ASP.NET ImageButton/Image控件的bug，最终找出了原因，提交到了产品组，但很是不解，在网上搜索了一下，也没见大家讨论这个问题。在此就和大家研究一下</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/09/1307409.html</id><title type="text">关于GridView固定标题的一些资源(freeze gridview header)</title><summary type="text">Hicheck these linkshttp://weblogs.asp.net/dwahlin/archive/2007/07/31/freeze-asp-net-gridview-headers-by-creating-client-side-extenders.aspxhttp://forums.asp.net/p/1028152/1405143.aspxhttp://www.codepr...</summary><published>2008-10-09T09:13:00Z</published><updated>2008-10-09T09:13:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/09/1307409.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/09/1307409.html"/><content type="text">Hicheck these linkshttp://weblogs.asp.net/dwahlin/archive/2007/07/31/freeze-asp-net-gridview-headers-by-creating-client-side-extenders.aspxhttp://forums.asp.net/p/1028152/1405143.aspxhttp://www.codepr...</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/07/1305661.html</id><title type="text">JavaScript判断DropDownList是否处于展开状态(check if DropDownList (select) is expanded)</title><summary type="text">代码如下：[代码]</summary><published>2008-10-07T08:41:00Z</published><updated>2008-10-07T08:41:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/07/1305661.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/07/1305661.html"/><content type="text">代码如下：[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/07/1305515.html</id><title type="text">当主页面关闭时关闭所有子窗口(Close all the child windows on unload of main page)</title><summary type="text">我们常常会使用window.open的便利来实现很多常用的web功能。在应用中，我们能够用window.opener从子页面访问并操作父页面，但如果想通过父页面管理子页面，则需要在父页面里留下存根。本例使用数组来贮存一个父页面中的所有子页面，并可对其进行操作：</summary><published>2008-10-07T06:21:00Z</published><updated>2008-10-07T06:21:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/07/1305515.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/07/1305515.html"/><content type="text">我们常常会使用window.open的便利来实现很多常用的web功能。在应用中，我们能够用window.opener从子页面访问并操作父页面，但如果想通过父页面管理子页面，则需要在父页面里留下存根。本例使用数组来贮存一个父页面中的所有子页面，并可对其进行操作：</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/06/1304586.html</id><title type="text">从外部的js文件中获取ASPX页面的控件ClientID(get control reference from external javascript)</title><summary type="text">当使用MasterPage、UserControl等容器时，为了避免控件的重复命名，asp.net会自动将容器中的控件生成一个ClientID，当我们使用JavaScript对控件元素进行操作的时候，必须使用ClientID来对控件进行查找。本文提供了两种在外部js文件中动态获得ClientID的方法</summary><published>2008-10-06T03:54:00Z</published><updated>2008-10-06T03:54:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/06/1304586.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/06/1304586.html"/><content type="text">当使用MasterPage、UserControl等容器时，为了避免控件的重复命名，asp.net会自动将容器中的控件生成一个ClientID，当我们使用JavaScript对控件元素进行操作的时候，必须使用ClientID来对控件进行查找。本文提供了两种在外部js文件中动态获得ClientID的方法</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303127.html</id><title type="text">困兽之斗！使用JavaScript执行客户端的exe文件(excute the .exe file on client-side machine by JavaScript)</title><summary type="text">安全...安全...网络安全叫的很响，于是很多具有高危漏洞的技术都被直接和谐掉了，但在一些可信赖内网的Web应用中，很多需求是可以考虑在安全性和兼容性上放宽限制，从而实现目的比如以下的代码，使用IE内嵌的ActiveX控件来实现从网页上执行客户端机器上的exe文件尽管需要苛刻的执行权限和环境，但有些时候在需求走上绝路时，也可以一试，权作困兽之斗！[代码]</summary><published>2008-10-02T06:41:00Z</published><updated>2008-10-02T06:41:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303127.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303127.html"/><content type="text">安全...安全...网络安全叫的很响，于是很多具有高危漏洞的技术都被直接和谐掉了，但在一些可信赖内网的Web应用中，很多需求是可以考虑在安全性和兼容性上放宽限制，从而实现目的比如以下的代码，使用IE内嵌的ActiveX控件来实现从网页上执行客户端机器上的exe文件尽管需要苛刻的执行权限和环境，但有些时候在需求走上绝路时，也可以一试，权作困兽之斗！[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303119.html</id><title type="text">使用JavaScript展开/折叠TreeView中所有节点(Expand and Collapse All Nodes of asp.net Treeview on the client with javascript)</title><summary type="text">代码如下，国外网站上copy很多，也不知道谁才是原作者，但在.net 3.5下好像有一点毛病，就是图标的问题，不知道如何解决：[代码]</summary><published>2008-10-02T05:42:00Z</published><updated>2008-10-02T05:42:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303119.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/02/1303119.html"/><content type="text">代码如下，国外网站上copy很多，也不知道谁才是原作者，但在.net 3.5下好像有一点毛病，就是图标的问题，不知道如何解决：[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/10/01/1302865.html</id><title type="text">ASP.NET 设置/获取/清空 用户的剪贴板（How to copy/get/clear value to clipboard）</title><summary type="text">We can Set/Get/Clear users’ clipboard by the JavaScript window.clipboardData object, which only works in Internet Explorer, by the following code:window.clipboardData.setData("text",value)window...</summary><published>2008-10-01T07:03:00Z</published><updated>2008-10-01T07:03:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/10/01/1302865.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/10/01/1302865.html"/><content type="text">We can Set/Get/Clear users’ clipboard by the JavaScript window.clipboardData object, which only works in Internet Explorer, by the following code:window.clipboardData.setData("text",value)window...</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/26/1299656.html</id><title type="text">ASP.NET获得客户端浏览器语言设置(Get the Language setting of browser by ASP.NET)</title><summary type="text">代码如下：[代码]</summary><published>2008-09-26T08:11:00Z</published><updated>2008-09-26T08:11:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/26/1299656.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/26/1299656.html"/><content type="text">代码如下：[代码]</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/24/1297881.html</id><title type="text">JavaScript无提示关闭当前页面窗口，兼容IE/Firefox/Chrome (Close the current page window without confirm by JavaScript, support all browsers)</title><summary type="text">Test by IE7/ Firefox 3.0/ Google Chrome</summary><published>2008-09-24T04:54:00Z</published><updated>2008-09-24T04:54:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/24/1297881.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/24/1297881.html"/><content type="text">Test by IE7/ Firefox 3.0/ Google Chrome</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/23/1297351.html</id><title type="text">15个强大的在线图片编辑器(Top 15 Online Image Editors - Who needs Photoshop? )</title><summary type="text">随着前一阵子Adobe Photo Express放出新的release, 这种在线图片编辑器也越来越值得我们关注。目前，众多的在线图片编辑器在抢着PhotoShop的饭碗，其中有些比较垃圾，但相当多一部分还是非常不错的。</summary><published>2008-09-23T12:00:00Z</published><updated>2008-09-23T12:00:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/23/1297351.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/23/1297351.html"/><content type="text">随着前一阵子Adobe Photo Express放出新的release, 这种在线图片编辑器也越来越值得我们关注。目前，众多的在线图片编辑器在抢着PhotoShop的饭碗，其中有些比较垃圾，但相当多一部分还是非常不错的。</content></entry><entry><id>http://www.cnblogs.com/blodfox777/archive/2008/09/23/1296766.html</id><title type="text">图片上传之前检查大小、尺寸、格式并预览(Validate the file size/file type/image size/ before upload)</title><summary type="text">读取客户端文件的信息对于Web应用程序来说几乎是不可能的，但我们可以通过JavaScript和IE内置的ActiveX来实现注意：本例仅能在IE浏览器中正常使用</summary><published>2008-09-23T04:53:00Z</published><updated>2008-09-23T04:53:00Z</updated><author><name>LanceZhang</name><uri>http://www.cnblogs.com/blodfox777/</uri></author><link rel="alternate" href="http://www.cnblogs.com/blodfox777/archive/2008/09/23/1296766.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/blodfox777/archive/2008/09/23/1296766.html"/><content type="text">读取客户端文件的信息对于Web应用程序来说几乎是不可能的，但我们可以通过JavaScript和IE内置的ActiveX来实现注意：本例仅能在IE浏览器中正常使用</content></entry></feed>
