随笔分类 -  03. JavaScript & CSS

ASP.NET微软官方论坛 Client Side Web Development 版块中的常见问题及回答
摘要:一个客户说要用DIV+CSS布局,两列,其中导航列宽度不确定(由里面的TreeView控件确定),而与它并列的内容列宽度要做到自适应,也就是内容列宽度+导航列宽==固定值(总宽度)但是,内容列宽度 和导航列宽 都没有一个定值,而网上的大多自适应列宽代码都是基于一个定值的无奈,我写Winform出身的对CSS+DIV知之甚少,只能通过JavaScript来完成了,效果还可以,IE7.0和Firefo... 阅读全文
posted @ 2008-08-26 18:47 LanceZhang 阅读(3726) 评论(0) 推荐(0) 编辑
摘要:之前发过用POST方式的http://www.cnblogs.com/blodfox777/articles/1271912.html而用__postback比较高阶,代码出自NC01[代码][代码] 阅读全文
posted @ 2008-08-26 09:30 LanceZhang 阅读(926) 评论(0) 推荐(0) 编辑
摘要:RadEditor (Telerik). AJAX-enabled.WebHtmlEditor (Infragistics). Part of the NetAdvantage for ASP.NET suite (I think).Cute Editor (CuteSoft)FreeTextBox (FreeTextBox.com). Free for basic edition. Source... 阅读全文
posted @ 2008-08-25 17:52 LanceZhang 阅读(6975) 评论(0) 推荐(1) 编辑
摘要:To detect the browser, please try the following code:[代码]in a 64bit lab, the following like information will be show:[代码] 阅读全文
posted @ 2008-08-25 17:38 LanceZhang 阅读(1816) 评论(1) 推荐(0) 编辑
摘要:A customer said he has created a newsletter(HTML format) with background image, and it seems good in outlook 2003/gmail/yahoo/ie6/ie7/opera/fire-foxhowever, just in Outlook2007, the background image h... 阅读全文
posted @ 2008-08-25 17:25 LanceZhang 阅读(612) 评论(0) 推荐(0) 编辑
摘要:Please try the following code, it will work:[代码][代码]http://forums.asp.net/t/1306676.aspx 阅读全文
posted @ 2008-08-22 09:24 LanceZhang 阅读(2576) 评论(0) 推荐(0) 编辑
摘要:We use window.open will be block by the browsers or blocker tools, and showModalDialogwill not be block by the browsers, but always blocked by blocker tools, the only way to open pop up window which c... 阅读全文
posted @ 2008-08-21 18:37 LanceZhang 阅读(5450) 评论(0) 推荐(0) 编辑
摘要:in fact the onbeforeunload event supported in Firefox browser, but the window.event is not supported in Firefox.So, we can use the following code to stop page from leaving: function SaveRemind() { w... 阅读全文
posted @ 2008-08-20 20:00 LanceZhang 阅读(1159) 评论(0) 推荐(0) 编辑
摘要:文章都不错,有几篇已经被园友翻译了Retrieving Data from Web Services using Standard HTTP 1.1 Compression http://www.dotnetjunkies.ddj.com/Tutorial/90D3B3E0-6544-4594-B3BA-E41D8F381324.dcikWhy use data compression for y... 阅读全文
posted @ 2008-08-20 18:23 LanceZhang 阅读(960) 评论(0) 推荐(0) 编辑
摘要:DropShadow控件:http://www.asp.net/AJAX/AjaxControlToolkit/Samples/DropShadow/DropShadow.aspx既方便又使用,给广大新手们带来了很大的便利,可以轻松的为Panel(DIV)等控件制作出圆角阴影效果,只需要如下代码就可以为Panel1添加美观的效果:[代码]但今天发现了这个控件的一个BUG: 如果我们把一个应用了Sh... 阅读全文
posted @ 2008-08-20 18:11 LanceZhang 阅读(619) 评论(3) 推荐(0) 编辑
摘要:需要从HTML页面传值给ASP.NET页面时,可以使用,很基本,保存下来,以备没学过ASP的新手们不急之需[代码][代码] 阅读全文
posted @ 2008-08-20 09:24 LanceZhang 阅读(951) 评论(0) 推荐(0) 编辑
摘要:直接保存成htm即可查看效果[代码]转自:http://bbs.blueidea.com/thread-2812683-1-1.html 阅读全文
posted @ 2008-08-19 22:33 LanceZhang 阅读(1380) 评论(0) 推荐(0) 编辑
摘要:关于同时上传多个文件,目前有很多解决方案可行,如下MultiPowUploadhttp://www.element-it.com/MultiPowUpload.aspxjQuery Multiple File Upload Pluginhttp://www.fyneworks.com/jquery/multiple-file-upload/Allowing Users to Upload Mult... 阅读全文
posted @ 2008-08-19 19:01 LanceZhang 阅读(2647) 评论(2) 推荐(1) 编辑
摘要:翻译修改自:http://magnetiq.com/2006/07/10/finding-out-class-names-of-javascript-objects/JavaScript与一般的OO语言相比,缺少了一个获取对象类名的内置函数(如c#的GetType)。而JavaScript内置的typeof函数在判断数组和对象时,只会返回一个“object”,当然,对用户自... 阅读全文
posted @ 2008-08-19 18:42 LanceZhang 阅读(5367) 评论(1) 推荐(0) 编辑
摘要:之前发布过一段代码,http://www.cnblogs.com/blodfox777/articles/1208224.html但前不久发现有个重大问题!不支持Firefox!因为window.event在IE和Opera里都是全局变量,而在Firefox中只面向即时触发的事件,所以,我们要将event作为参数传递给方法,才能兼容Firefox,修改后的代码如下,比起原来的代码,缺少了图片跟随鼠... 阅读全文
posted @ 2008-08-19 17:24 LanceZhang 阅读(2666) 评论(3) 推荐(0) 编辑
摘要:There are many ways to disable the right click; however there seems no real way to absolutely disable the right click.No Right Click http://javascript.internet.com/page-details/no-right-click.htmlDisa... 阅读全文
posted @ 2008-08-15 15:18 LanceZhang 阅读(512) 评论(0) 推荐(0) 编辑
摘要:IE网页过渡效果原文地址: http://www.jansfreeware.com/articles/ie-page-transitions.html在IE5.5及以上版本的浏览器中,我们可以设置整页过渡效果,据此,我们甚至可以用IE来代替PPT了。启用网页过渡 默认情况下都已经启用了,如果需要手动启用则只需在Internet选项中: Advanced(高级) - Browsing(浏览) - E... 阅读全文
posted @ 2008-08-14 11:36 LanceZhang 阅读(10120) 评论(1) 推荐(0) 编辑
摘要:都很适合学习,有时间再翻译Use ASP.NET with AJAX to make your chat application; there are many good article and examples:Building an AJAX based chat room in ASP.NEThttp://www.codeproject.com/KB/ajax/UChat.aspxSim... 阅读全文
posted @ 2008-08-13 16:30 LanceZhang 阅读(1958) 评论(0) 推荐(0) 编辑
摘要:RJS PopCalendar is really a good one, and there is a tutorial about it:Picking Dates with a Free RJS PopCalendar, a Free ASP.NET Popup Calendar Control http://aspnet.4guysfromrolla.com/articles/0604... 阅读全文
posted @ 2008-08-13 11:17 LanceZhang 阅读(14405) 评论(0) 推荐(1) 编辑
摘要: 在网页应用程序的开发中,页面之间的传值应该是最常见的问题了。 在这篇文章里,azamsharp 将为我们介绍一些ASP.NET页面传值的方式。本文所举的例子非常简单,仅仅包含了一个文本框和几个按钮,当按钮点击时文本框中的字符串将会以不同的方式传递到另外的页面去。 阅读全文
posted @ 2008-08-12 17:25 LanceZhang 阅读(10793) 评论(6) 推荐(2) 编辑

点击右上角即可分享
微信分享提示