﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-吹雪的.net House</title><link>http://www.cnblogs.com/Anders/</link><description /><language>zh-cn</language><lastBuildDate>Mon, 06 Jul 2009 12:03:27 GMT</lastBuildDate><pubDate>Mon, 06 Jul 2009 12:03:27 GMT</pubDate><ttl>60</ttl><item><title>Web开发的一些小细节</title><link>http://www.cnblogs.com/Anders/archive/2007/09/22/902501.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Sat, 22 Sep 2007 06:36:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2007/09/22/902501.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/902501.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2007/09/22/902501.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/902501.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/902501.html</trackback:ping><description><![CDATA[1. Javascript 修改Html文件中文本框的Value，刷新页面Value会"保持"<BR>&nbsp;&nbsp;&nbsp;平时一直玩动态页面ASP.net，对于“js修改页面控件的Value之后刷新页面，控件不会保存value“这点没有任何疑问。<BR>&nbsp;&nbsp;&nbsp;但是今天无意中遇到如下问题，非常简单的Html代码<BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008080">&nbsp;1</SPAN><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;3</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">input&nbsp;</SPAN><SPAN style="COLOR: #ff0000">type</SPAN><SPAN style="COLOR: #0000ff">="text"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;name</SPAN><SPAN style="COLOR: #0000ff">="test"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;id&nbsp;</SPAN><SPAN style="COLOR: #0000ff">=&nbsp;"test"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;&nbsp;value</SPAN><SPAN style="COLOR: #0000ff">="Test&nbsp;Text"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;4</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">input&nbsp;</SPAN><SPAN style="COLOR: #ff0000">type</SPAN><SPAN style="COLOR: #0000ff">="button"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;onclick</SPAN><SPAN style="COLOR: #0000ff">="changeTxt()"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;value</SPAN><SPAN style="COLOR: #0000ff">="change"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;5</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_160_248_Open_Image onclick="this.style.display='none'; Codehighlighter1_160_248_Open_Text.style.display='none'; Codehighlighter1_160_248_Closed_Image.style.display='inline'; Codehighlighter1_160_248_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_160_248_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_160_248_Closed_Text.style.display='none'; Codehighlighter1_160_248_Open_Image.style.display='inline'; Codehighlighter1_160_248_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">script&nbsp;</SPAN><SPAN style="COLOR: #ff0000">language</SPAN><SPAN style="COLOR: #0000ff">="JavaScript"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN id=Codehighlighter1_160_248_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_160_248_Open_Text><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;6</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&lt;!--</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #008080">&nbsp;7</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;changeTxt()<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;8</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><IMG id=Codehighlighter1_187_241_Open_Image onclick="this.style.display='none'; Codehighlighter1_187_241_Open_Text.style.display='none'; Codehighlighter1_187_241_Closed_Image.style.display='inline'; Codehighlighter1_187_241_Closed_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_187_241_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_187_241_Closed_Text.style.display='none'; Codehighlighter1_187_241_Open_Image.style.display='inline'; Codehighlighter1_187_241_Open_Text.style.display='inline';" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_187_241_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.cnblogs.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_187_241_Open_Text><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<BR></SPAN><SPAN style="COLOR: #008080">&nbsp;9</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById('test').value&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">changed</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #008080">10</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #008080">11</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top></SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">--&gt;</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #008080">12</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">script</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">13</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV><BR>上面的代码存为Test.aspx页面，一切表现正常。但是当存为Test.html之后问题就来了，发现按F5刷新页面之后，TextBox的Value依然是“Changed”，一阵苦想，最后得出结论：IE使用Html的修改日期作为Version来识别是否需要获取新版本。使用js修改页面值并不会使Html 文件的Version发生变化（因为Html文件的物理文件并没有发生变化），于是刷新的时候IE认为还是同一个Version的文件所以不会真正去Loading页面。<BR><BR>2. Html和ASP.net页面默认的字符集不同会使页面元素样式出现变化。<BR>&nbsp;&nbsp; 如果上面的代码存为Html和.aspx文件分别访问，会发现两个页面最后展现的控件大小不一(例如：Textbox的宽度和高度在两个页面大小不一致)。通过查看HttpHeader中的信息发现原因是Html文件的字符集与IE的默认设置有关系，在我的机器上面会默认为GB2312；而ASPX默认的字符集UTF-8。将两个页面的字符集设置为一样之后，访问两个页面发现页面元素已经完全一致了。<BR><BR>以上两个是很小的问题也算是很基础的问题，通常都不会特别注意，不过遇到的时候如果没有想明白可能就头大了~~<img src ="http://www.cnblogs.com/Anders/aggbug/902501.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/48008/" target="_blank">IBM发布全球首款开源智能编译器</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>如何卸载WSS3.0自带的SSEE Database</title><link>http://www.cnblogs.com/Anders/archive/2007/08/22/865226.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Wed, 22 Aug 2007 05:30:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2007/08/22/865226.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/865226.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2007/08/22/865226.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/865226.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/865226.html</trackback:ping><description><![CDATA[WSS 3.0在卸载的过程中不会卸载安装的 Microsoft SQL 2005 embedded Edition （SSEE）程序，在添加删除程序里面也找不到卸载项，找了半天才找到办法.<BR>1.运行regedit.exe找到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wi ndows\CurrentVersion\Uninstall分枝<BR>2.查找每个{GUID}目录,当然你也可以使用搜索功能,找到“Microsoft SQL 2005 embedded Edition…”<BR>3.将里面的卸载命令考贝出来(例如: MsiExec.exe /X{0F51A262-1ADF-4914-B448-78AC58C4178A} )<BR>4.运行cmd.exe,将卸载命令粘贴在里面,然后在后面加上" CALLERID=OCSETUP.EXE"<BR>5.大概就是这个样子的: MsiExec.exe /X{0F51A262-1ADF-4914-B448-78AC58C4178A} CALLERID=OCSETUP.EXE<BR><BR>ps：搜索有时候也找不到 Microsoft SQL 2005 embedded Edition，不行的话建议还是一个个的查看。<BR><BR><BR>运行此命令，弹出熟悉的卸载程序对话框，完毕之后查看 C:\WINDOWS\SYSMSI\SSEE\MSSQL.2005，已经干净了。<img src ="http://www.cnblogs.com/Anders/aggbug/865226.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/48007/" target="_blank">IE颓势不减 微软下月公布最新浏览器架构</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>版本控管的重要性</title><link>http://www.cnblogs.com/Anders/archive/2006/05/19/404510.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Fri, 19 May 2006 09:19:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2006/05/19/404510.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/404510.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2006/05/19/404510.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/404510.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/404510.html</trackback:ping><description><![CDATA[搞开发的大家都知道Source控管，都知道把Source Check In/Check Out到源码管理里面去。但是大家有没有注意到文件控管不仅仅是指源文件的控管，其实我们工作生活中很多文档或者资源都是需要进行版本控管的。<BR>举个血的例子：辛辛苦苦在PC上写好了80多页的文档，结果一个误操作把文档覆盖成旧的文档了 80多页的东西啊～～ 如果没有对自己的资源进行版本控管，这个时候你怎么办？！ 只有像我一样找个墙角蹲下默默的流泪。心中的痛谁人知？？ 但是如果我有了版本控管，我会非常愉快的从版本控制中捞取一份最新版本出来，没有什么好担心的。<BR><BR>&nbsp;&nbsp;&nbsp;很多东西不受过打击是不会长记性的，虽然知道版本控管的重要性但是却还是忽略了这个东西。<BR>关于版本控制Tools的工具：<BR>1、MS的Source Safe<BR>2、SubVersion 系列<img src ="http://www.cnblogs.com/Anders/aggbug/404510.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/48002/" target="_blank">竞争日趋激烈 微软欲借 Windows 7 扭转战局</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>自定义 IIS 6 错误信息吗?</title><link>http://www.cnblogs.com/Anders/archive/2005/10/13/254170.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Thu, 13 Oct 2005 11:29:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2005/10/13/254170.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/254170.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2005/10/13/254170.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/254170.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/254170.html</trackback:ping><description><![CDATA[<H3>我可以自定义 IIS 6 错误信息吗？</H3>
<DIV style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px">
<H5 style="PADDING-BOTTOM: 5px; COLOR: #999999">问：</H5>
<DIV class=QBlock>
<P>在我们的 IIS 6 服务器上，偶尔我们必须关闭生产应用程序池以进行维护。在此期间，IIS 6 仅向客户端发送最基本的消息（如下所示）：</P>
<P>Http 错误日志显示以下内容：</P><IMG alt="Http 错误日志" src="http://www.microsoft.com/technet/images/community/columns/insider/images/iisi0904.gif" border=0><PRE class=codeSample>2004-08-26 17:06:33 127.0.0.1 1035 127.0.0.1 80 HTTP/1.1 GET / 503 1 Disabled
</PRE>
<P>从此处，我们可以看到将该错误被记录为 503.1，但用户并没有得到此信息或任何其他信息。我们希望能够自定义此错误信息，以便展示我们公司的徽标并向客户提供有关站点何时恢复的其他信息。应该怎么做？</P></DIV></DIV>
<H5 style="PADDING-BOTTOM: 5px; COLOR: #999999">答：</H5>
<DIV class=ABlock>
<P>IIS 6 体系结构引入了可在内核模式下运行的 http.sys 组件。可以对很多 IIS 6 错误进行自定义，但不能修改 http.sys 传递的那些错误。这其中有两个原因。</P>
<P>第一，不能在内核模式下运行任何用户代码是至关重要的。很多自定义的错误页实际上是脚本或程序，它们对错误进行处理以便根据我们组织的需要采取特定的操作。如果允许这些程序在内核模式下运行并且代码有错误，则它们可能会产生严重的安全或性能问题。</P>
<P>第二，如果您不在内核模式下运行代码，则必须跳到用户模式下执行代码；而由于应用程序池不可用，那么应该使用哪个池呢？您需要做很多假设。</P>
<P>抛开这些复杂问题不说，我不否认能够向至少一个自定义静态页发送这些请求是非常有用的。</P>
<P>在该功能出现之前（我不知道是否会出现），您还有其他的选择。一种选择是设置第二台服务器，它是 NLB 群集中使用的第一台服务器的克隆。这种布局的一个主要好处是，可以将整个服务器脱机而不会造成服务中断。 </P>
<P>或者，在同一服务器上创建一模一样的网站，但使用不同的应用程序池。将生产站点关闭并打开备用站点。这通常比想象的要容易一些。</P>
<P>最后，您可以建立一个简单的站点，用于传送符合您要求的“站点正在维护中”消息。建立此站点以响应在生产站点上使用的相同“IP+端口号+主机标题”配置，并将其配置为运行特有的应用程序池。关闭生产站点并打开“辅助”站点。在维护完成后，您可以关闭辅助站点，并启用生产站点。</P>
<P>其中的任何选择都允许您控制在将站点脱机进行维护时所执行的操作。</P></DIV><img src ="http://www.cnblogs.com/Anders/aggbug/254170.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/48001/" target="_blank">上海电信计划2012年80%用户实现100M带宽</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>VS2003 Bug "刷新项目失败，无法从Server获取目录信息"</title><link>http://www.cnblogs.com/Anders/archive/2005/09/16/238558.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Fri, 16 Sep 2005 09:39:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2005/09/16/238558.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/238558.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2005/09/16/238558.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/238558.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/238558.html</trackback:ping><description><![CDATA[<DIV class=post>
<H2><A id=viewpost.ascx_TitleUrl href="http://returnnull.net/blog/archive/2004/10/18/160.aspx">VS.NET 2003, VSS 6.0d and the "Refreshing the project failed. Unable to retrieve folder information from the server" error</A> </H2>
<P><STRONG>Refreshing the project failed. Unable to retrieve folder information from the server</STRONG></P>
<P>I've been using Visual Source Safe 6.0d with Visual Studio.NET &nbsp;2003 for some time, but just lately I have been receiving the above error message. It hasn't caused me any problems so far but this morning I thought i'd do some digging to try and find a fix to this irritating message box that appears every time I load my&nbsp;VS solution.</P>
<P>I'm working against a remote dev server built on Win 2000 server and IIS 5 (all patched, and service packed up).</P>
<P>After some <A href="http://www.google.com/microsoft?hl=en&amp;lr=&amp;q=%22Refreshing+the+project+failed.+Unable+to+retrieve+folder+information+from+the+server%22">Googling </A>I found that there is indeed a bug with VS.NET that will cause this message box if you have a folder named with a preceding '.' (e.g. c:\.foo\ ) -&nbsp;this seemed to be the for users controlling their source with an application called <A href="http://subversion.tigris.org/">SubVersion</A>. I'm not using SubVersion, so I carried on digging.</P>
<P>I came across <A href="http://p2p.wrox.com/topic.asp?whichpage=1&amp;TOPIC_ID=383&amp;#44866">this post</A> on the Wrox forums and although it doesn't explain too much, it does in fact work!</P>
<P>I browsed to my Documents and Settings user folder (c:\Documents and Settings\actrw001\) and found the subdirectory, <STRONG>\VSWebCache . </STRONG>Upon opening this directory you are listed with another set of folders named after each server VSS has connected to. I took a chance and deleted the folder named the same as the server that i'm currently working on. Risky yes, but the rewards have been great. No more message box.</P>
<P>I should also clarify that my project does not contain any folders with the . prefix.</P>
<P class=postfoot>posted on Monday, October 18, 2004 10:32 AM </P></DIV><LINK href="http://returnnull.net/blog/Services/Pingback.aspx" rel=pingback><!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://returnnull.net/blog/archive/2004/10/18/160.aspx"
dc:identifier="http://returnnull.net/blog/archive/2004/10/18/160.aspx"
dc:title="VS.NET 2003, VSS 6.0d and the "Refreshing the project failed. Unable to retrieve folder information from the server" error"
trackback:ping="http://returnnull.net/blog/services/trackbacks/160.aspx" />
</rdf:RDF>
--><img src ="http://www.cnblogs.com/Anders/aggbug/238558.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/48000/" target="_blank">数万名网友签名抗议星际争霸2取消局域网功能</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>SOA的一些基本理解</title><link>http://www.cnblogs.com/Anders/archive/2005/07/27/201388.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Wed, 27 Jul 2005 12:53:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2005/07/27/201388.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/201388.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2005/07/27/201388.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/201388.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/201388.html</trackback:ping><description><![CDATA[<P><A name=1><SPAN class=atitle2><STRONG>什么是服务？</STRONG></SPAN></A><BR></P>
<P>在面向服务的体系结构（SOA）中， <I xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dw="http://www.ibm.com/developerworks/">服务（service）</I>是封装成用于业务流程的可重用组件的应用程序函数。它提供信息或简化业务数据从一个有效的、一致的状态向另一个状态的转变。用于实现特定服务的流程并不重要，只要它响应您的命令并为您的请求提供高质量的服务就可以了。 <BR>如同类对象，请求者应用程序能够将服务看作是一个整体。<BR></P>
<P><A name=2><SPAN class=atitle2><STRONG>松耦合</STRONG></SPAN></A><BR></P>
<P>服务请求者到服务提供者的绑定与服务之间应该是松耦合的。这就意味着，服务请求者不知道提供者实现的技术细节，比如程序设计语言、部署平台，等等。服务请求者往往通过消息调用操作--请求消息和响应--而不是通过使用 API 和文件格式。</P>
<P>这个松耦合使会话一端的软件可以在不影响另一端的情况下发生改变，前提是消息模式保持不变。<BR></P>
<P><A name=3><SPAN class=atitle2><STRONG>明确定义的接口</STRONG></SPAN></A><BR></P>
<P>服务交互必须是明确定义的。Web 服务描述语言（Web services Description Language，WSDL）是受到广泛支持的方法，用于描述服务请求者所要求的绑定到服务提供者的细节。服务描述的重点在于与下面几部分交互所用的操作： 
<UL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dw="http://www.ibm.com/developerworks/">
<LI>服务 
<LI>调用操作的消息 
<LI>构造这种消息的细节 
<LI>关于向何处发送用于构造这种消息的处理细节的消息的信息 </LI></UL>
<P></P>
<P>WSDL 不包括服务实现的任何技术细节。<BR></P>
<P><A name=4><SPAN class=atitle2><STRONG>无状态的服务设计</STRONG></SPAN></A><BR></P>
<P>服务应该是独立的、自包含的请求，在实现时它不需要从一个请求到另一个请求的信息或状态。服务不应该依赖于其他服务的上下文和状态。当需要依赖时，它们最好定义成通用业务流程、函数和数据模型，而不是实现构件（比如会话密钥）。当然，请求者应用程序需要服务调用之间的持久状态，但是这不应该与服务提供者分开。<BR></P>
<P><A name=5><SPAN class=atitle2><STRONG>服务粒度</STRONG></SPAN></A><BR></P>
<P>操作的粒度是一项重要的设计要点。对于外部的消耗推荐使用粗粒度的接口，而细粒度的接口可能用于企业内部<BR></P>
<P><A name=6><SPAN class=atitle2><STRONG>服务质量需要考虑的问题</STRONG></SPAN></A><BR></P>
<P>面向服务的体系结构（SOA）设计将跨越计算机系统，并且还可能跨越企业边界。您不得不考虑在使用 Internet 时安全性功能和需求以及如何链接伙伴的安全域。Internet 协议并不是为可靠性（有保证的提交和提交的顺序）而设计，但是您不得不确保消息被提交并被处理一次。当这不可能时，请求者必须知道请求并没有被处理。</P><img src ="http://www.cnblogs.com/Anders/aggbug/201388.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/47999/" target="_blank">Silverlight打造杰克逊纪念专题</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>关于SOA的基本介绍。来源于IBM DeveloperWorld</title><link>http://www.cnblogs.com/Anders/archive/2005/07/27/201261.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Wed, 27 Jul 2005 09:47:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2005/07/27/201261.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/201261.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2005/07/27/201261.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/201261.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/201261.html</trackback:ping><description><![CDATA[<P>面向服务的体系结构（service-oriented architecture，SOA）是一个组件模型，它将应用程序的不同功能单元（称为<I>服务</I>）通过这些服务之间定义良好的接口和契约联系起来。接口是采用中立的方式进行定义的，它应该独立于实现服务的硬件平台、操作系统和编程语言。这使得构建在各种这样的系统中的服务可以以一种统一和通用的方式进行交互。</P>
<P>这种具有中立的接口定义（没有强制绑定到特定的实现上）的特征称为服务之间的<I>松耦合</I>。松耦合系统的好处有两点，一点是它的灵活性，另一点是，当组成整个应用程序的每个服务的内部结构和实现逐渐地发生改变时，它能够继续存在。而另一方面，紧耦合意味着应用程序的不同组件之间的接口与其功能和结构是紧密相连的，因而当需要对部分或整个应用程序进行某种形式的更改时，它们就显得非常脆弱。</P>
<P>对松耦合的系统的需要来源于业务应用程序需要根据业务的需要变得更加灵活，以适应不断变化的环境，比如经常改变的政策、业务级别、业务重点、合作伙伴关系、行业地位以及其他与业务有关的因素，这些因素甚至会影响业务的性质。我们称能够灵活地适应环境变化的业务为<I>按需（On demand）</I>业务，在按需业务中，一旦需要，就可以对完成或执行任务的方式进行必要的更改。</P>
<P>虽然面向服务的体系结构不是一个新鲜事物，但它却是更传统的面向对象的模型的替代模型，面向对象的模型是紧耦合的，已经存在二十多年了。虽然基于 SOA 的系统并不排除使用面向对象的设计来构建单个服务，但是其整体设计却是面向服务的。由于它考虑到了系统内的对象，所以虽然 SOA 是<I>基于对象</I>的，但是作为一个整体，它却不是<I>面向对象</I>的。不同之处在于接口本身。SOA 系统原型的一个典型例子是通用对象请求代理体系结构（Common Object Request Broker Architecture，CORBA），它已经出现很长时间了，其定义的概念与 SOA 相似。</P>
<P>然而，现在的 SOA 已经有所不同了，因为它依赖于一些更新的进展，这些进展是以可扩展标记语言（eXtensible Markup Language，XML）为基础的。通过使用基于 XML 的语言（称为 <I>Web 服务描述语言（Web Services Definition Language，WSDL））</I>来描述接口，服务已经转到更动态且更灵活的接口系统中，非以前 CORBA 中的接口描述语言（Interface Definition Language，IDL）可比了。</P>
<P>Web 服务并不是实现 SOA 的惟一方式。前面刚讲的 CORBA 是另一种方式，这样就有了面向消息的中间件（Message-Oriented Middleware）系统，比如 IBM 的 MQseries。但是为了建立体系结构模型，您所需要的并不只是服务描述。您需要定义整个应用程序如何在服务之间执行其工作流。您尤其需要找到业务的操作和业务中所使用的软件的操作之间的转换点。因此，SOA 应该能够将业务的商业流程与它们的技术流程联系起来，并且映射这两者之间的关系。例如，给供应商付款的操作是商业流程，而更新您的零件数据库，以包括进新供应的货物却是技术流程。因而，工作流还可以在 SOA 的设计中扮演重要的角色。</P>
<P>此外，动态业务的工作流不仅可以包括部门之间的操作，甚至还可以包括与不为您控制的外部合作伙伴进行的操作。因此，为了提高效率，您需要定义应该如何得知服务之间的关系的策略，这种策略常常采用服务级协定和操作策略的形式。 </P>
<P>最后，所有这些都必须处于一个信任和可靠的环境之中，以同预期的一样根据约定的条款来执行流程。因此，安全、信任和可靠的消息传递应该在任何 SOA 中都起着重要的作用。</P><img src ="http://www.cnblogs.com/Anders/aggbug/201261.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/47999/" target="_blank">Silverlight打造杰克逊纪念专题</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>关于数据库安全性的</title><link>http://www.cnblogs.com/Anders/archive/2005/07/26/200257.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Tue, 26 Jul 2005 03:31:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2005/07/26/200257.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/200257.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2005/07/26/200257.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/200257.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/200257.html</trackback:ping><description><![CDATA[<A href="http://www.cnblogs.com/Anders/admin/Referrers.aspx?EntryID=200251">这里</A><BR><BR>原文地址：<A href="http://www.dotnetjunkies.com/Article/86F0988E-FED4-414F-BA2E-D01D953C11BE.dcik">http://www.dotnetjunkies.com/Article/86F0988E-FED4-414F-BA2E-D01D953C11BE.dcik</A><BR><img src ="http://www.cnblogs.com/Anders/aggbug/200257.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/47998/" target="_blank">传诺基亚正在开发Android手机</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>ITPortal与SOA</title><link>http://www.cnblogs.com/Anders/archive/2005/07/25/199868.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Mon, 25 Jul 2005 12:40:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2005/07/25/199868.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/199868.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2005/07/25/199868.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/199868.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/199868.html</trackback:ping><description><![CDATA[<SPAN class=atitle>今天在整理项目的时候，收到IT Portal的需求。赶紧收集点SOA的资料研究一下。<BR><BR>IBM:Developworks ：<A href="http://www-128.ibm.com/developerworks/cn/webservices/ws-theme/ws-soa.html" target=_blank><FONT color=#0000ff>专题：SOA — 面向服务的体系结构</FONT></A><BR>Dev2: <A href="http://dev2dev.bea.com.cn/technologies/SOA/" target=_blank><STRONG><FONT color=#0000ff>面向服务的架构</FONT></STRONG> </A><BR><A href="http://www.gdfzxy.com/zdh/jiaoxuestudy/1-1.html" target=_blank><FONT color=#0000ff>面向服务的架构（SOA）阐释<BR></FONT></A><A href="http://www.gdfzxy.com/zdh/jiaoxuestudy/1-1.html" target=_blank><FONT color=#0000ff>CIO们部署SOA需慎重<BR>SOA：构建下一代Web服务的技术架构<BR></FONT></A><A href="http://www.umlchina.com/News/Content/39.htm" target=_blank><FONT color=#0000ff>面向服务架构（SOA）的原则</FONT></A><BR><A id=viewpost.ascx_TitleUrl href="http://blog.joycode.com/kaneboy/archive/2004/08/21/31213.aspx" target=_blank><FONT color=#0000ff>SOA &amp; Messaging Patterns</FONT></A> <BR>最近才真正体会到一个IT人的不容易，平时进行项目管理就花了大部分时间，还得不断的研究各种需要的技术和理念。</SPAN><img src ="http://www.cnblogs.com/Anders/aggbug/199868.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/47996/" target="_blank">7月编程语言排行榜</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item><item><title>用javascript动态调整iframe高度 （ZT）</title><link>http://www.cnblogs.com/Anders/archive/2005/07/17/194650.html</link><dc:creator>吹雪</dc:creator><author>吹雪</author><pubDate>Sun, 17 Jul 2005 12:20:00 GMT</pubDate><guid>http://www.cnblogs.com/Anders/archive/2005/07/17/194650.html</guid><wfw:comment>http://www.cnblogs.com/Anders/comments/194650.html</wfw:comment><comments>http://www.cnblogs.com/Anders/archive/2005/07/17/194650.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cnblogs.com/Anders/comments/commentRss/194650.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/Anders/services/trackbacks/194650.html</trackback:ping><description><![CDATA[<TABLE class=linebot cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=modhead width="100%">
<H2><A href="http://www.zeali.net/blog/entry.php?id=81"><FONT color=#0000ff>用javascript动态调整iframe高度</FONT></A></H2></TD>
<TD class=mod_trc noWrap width=6>&nbsp;</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=modcontent>
<DIV class=date_entry>2005-06-09 11:17 1867 字 - <A title="对此贴 '献鲜花'" href="javascript:voteWin('/blog/submit.php?vote=good&amp;piv_code=81&amp;piv_weblog=weblog_zeal&amp;group=k_')">+</A> 0 <A title="对此贴 '扔鸡蛋'" href="javascript:voteWin('/blog/submit.php?vote=bad&amp;piv_code=81&amp;piv_weblog=weblog_zeal&amp;group=k_')">-</A> 1 &nbsp;&nbsp;</DIV>
<H2></H2>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #336666">关键字: <A href="http://technorati.com/tag/javascript" target=_blank rel=tag>javascript</A>, <A href="http://technorati.com/tag/iframe" target=_blank rel=tag>iframe</A>, <A href="http://technorati.com/tag/%E9%AB%98%E5%BA%A6" target=_blank rel=tag>高度</A>, <A href="http://technorati.com/tag/firefox" target=_blank rel=tag>firefox</A></P>
<DIV class=entry_introduce id=entry_introduce>当你在页面上使用了<FONT color=#0000ff>iframe</FONT>之后，一般来说会不希望iframe显示难看的滚动条，以使iframe里面的内容和主页面的内容浑然一体。这时候你会设置 <FONT color=#ff0000>scrolling</FONT>=<FONT color=#ff1493>"no"</FONT> 属性。但是这样一来如果iframe里面的内容是变化的，高度会随之内容的变化而变化的时候，你的iframe就会显得太长导致底下一大片空白，或者正好相反，由于iframe的高度太小导致一部分内容会被挡住。这里我提供一个兼容IE/NS/Firefox的<FONT color=#0000ff>javascript</FONT>脚本实现动态调整iframe的高度。如果需要调整宽度的话，原理是一样的，本文不加详述。</DIV>
<DIV id=entryBody>
<P>首先，在你的主页面上必须包含以下这段javascript代码：</P>
<P><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">script </SPAN><SPAN style="COLOR: #ff0000">language</SPAN><SPAN style="COLOR: #0000ff">="Javascript"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"></SPAN><BR><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> getFFVersion</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">navigator.userAgent.substring(navigator.userAgent.indexOf(</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">Firefox</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)).split(</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">/</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)[</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">]</SPAN><BR><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">extra height in px to add to iframe in FireFox 1.0+ browsers</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"></SPAN><BR><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> FFextraHeight</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">getFFVersion</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">0.1</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">?</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">16</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> : </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">0</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </SPAN><BR><BR><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> dyniframesize(iframename) {</SPAN><BR>&nbsp;&nbsp;<SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> pTar </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">null</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;</SPAN><BR>&nbsp;&nbsp;<SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> (document.getElementById){<BR>&nbsp;&nbsp;&nbsp;&nbsp;pTar </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> document.getElementById(iframename);<BR>&nbsp;&nbsp;}</SPAN><BR>&nbsp;&nbsp;<SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<BR>&nbsp;&nbsp;&nbsp;&nbsp;eval('pTar </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> ' </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">+</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> iframename </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">+</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> ';');<BR>&nbsp;&nbsp;}</SPAN><BR>&nbsp;&nbsp;<SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> (pTar </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&amp;&amp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">!</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">window.opera){</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">begin resizing iframe</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"></SPAN><BR><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;&nbsp;&nbsp; pTar.style.display</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">block</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"></SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> (pTar.contentDocument </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&amp;&amp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> pTar.contentDocument.body.offsetHeight){</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">ns6 syntax</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"></SPAN><BR><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTar.height </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> pTar.contentDocument.body.offsetHeight</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">+</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">FFextraHeight; <BR>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> </SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> (pTar.Document </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&amp;&amp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> pTar.Document.body.scrollHeight){</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">ie5+ syntax</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"></SPAN><BR><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pTar.height </SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> pTar.Document.body.scrollHeight;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>}</SPAN><BR><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">script</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></P>
<P>然后对于主页面用到iframe的地方添加代码：</P>
<P><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">iframe </SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="myTestFrameID"</SPAN><SPAN style="COLOR: #ff0000"> <BR>onload</SPAN><SPAN style="COLOR: #0000ff">="javascript:{dyniframesize('myTestFrameID');}"</SPAN><SPAN style="COLOR: #ff0000"> <BR>marginwidth</SPAN><SPAN style="COLOR: #0000ff">=0 </SPAN><SPAN style="COLOR: #ff0000">marginheight</SPAN><SPAN style="COLOR: #0000ff">=0 </SPAN><SPAN style="COLOR: #ff0000">frameborder</SPAN><SPAN style="COLOR: #0000ff">=0 </SPAN><BR><SPAN style="COLOR: #ff0000">scrolling</SPAN><SPAN style="COLOR: #0000ff">=no </SPAN><SPAN style="COLOR: #ff0000">src</SPAN><SPAN style="COLOR: #0000ff">="/myiframesrc.php"</SPAN><SPAN style="COLOR: #ff0000"> <BR>width</SPAN><SPAN style="COLOR: #0000ff">=200 </SPAN><SPAN style="COLOR: #ff0000">height</SPAN><SPAN style="COLOR: #0000ff">=100</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">iframe</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></P>
<P></P></DIV></TD></TR></TBODY></TABLE><img src ="http://www.cnblogs.com/Anders/aggbug/194650.html?type=1" width = "1" height = "1" /><br/><br/>--------------------------<br/>新闻：<a href="http://news.cnblogs.com/n/47995/" target="_blank">Google Voice 上手</a><br/>网站导航: <a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://dotnet.cnblogs.com" target="_blank">.NET频道</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://zzk.cnblogs.com" target="_blank">找找看</a>]]></description></item></channel></rss>