August 2007 - Posts

0
Comments

ajax httpcompress iis 压缩 by jawance

http://blog.csdn.net/SystemBug/archive/2007/02/01/1499862.aspx IIS aspnet HTTP 压缩 与Ajax 最近在做IIS ASPNET的项目,对首页访问速度要求比较高。 通过配置AppPool可以有效提高IIS的响应速度。 启用IIS的HTTP压缩后,对于ASPX的程序处理和Ajax方式调用产生了问题。 IIS的HTTP压缩配置比较简单不能支持比较灵获得配置。 我搜 找到了 blowery.Web.HttpCompress( 在线文档 ) 这个在性能上评价还不错。 配置 Web.config <configSections> <sectionGroup name="blowery.web"> <section name="httpCompress" type="blowery.Web.HttpCompress.SectionHandler, blowery.Web.HttpCompress"/> </sectionGroup>...
1
Comments

一般javascript 判断objcet 是否可以使用的误区 by jawance

一般javascript 判断objcet 是否可以使用的误区 if (typeof(Admin_Default) == "undefined") 如果这个值是 true 的话。 if (Admin_Defalut == null) 判断会出错的 , 因起最好的判断是 if (typeof(Admin_Default) == "undefined") == true 就不必要再判断 Admin_Defalut==null 反过来,如果不判断是否"undefined"而直接 判断 if (Admin_Defalut == null) 是错误的做法哦。 最好的是这样... function selfToBeExecute() { if (typeof(Admin_Default) != "undefined" && Admin_Default !=null) { divUseFullLink.outerHTML =Admin_Default.GetHtmlTable("").value;...
Filed under:
0
Comments

没见过这么长的JS代码 by jawance

function TinyMCE_Engine() { var ua; this.majorVersion = "2"; this.minorVersion = "1.1.1"; this.releaseDate = "2007-05-14"; this.instances = []; this.switchClassCache = []; this.windowArgs = []; this.loadedFiles = []; this.pendingFiles = []; this.loadingIndex = 0; this.configs = []; this.currentConfig = 0; this.eventHandlers = []; this.log = []; this.undoLevels = []; this.undoIndex = 0; this.typingUndoIndex =- 1; this.settings = []; ua = navigator.userAgent; this.isMSIE...
Filed under:
0
Comments
0
Comments

用HTC文件,为按钮添加 link 和 target 属性 by jawance

用HTC文件,为按钮添加 link 和 target 属性 做WEB程序的时候经常需要用一个按钮来跳转到一个页面,或打开新窗口;由于按钮没有link属性,所以经常要写脚本来控制,感觉有些麻烦,最近看了一些关于HTC的文档,发现HTC可以为按钮添加属性,所以就写了个例子。 文件:test.htm <link href="style.css" rel="stylesheet" type="text/css"> <input type=button link="http://www.sina.com.cn" value="打开新浪"> <input type=button link="http://www.sina.com.cn" value="新窗口打开新浪" target="_blank"> 文件:style.css Input{behavior:url('input.htc');...
Filed under: