<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[Ajax异步刷新实现无闪烁刷新iframe内容,js控制div滚动条显示与隐藏.]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 28 Aug 2013 10:14:02 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：刷新Iframe会有闪动，这儿说这种方法可以不闪动，备案下。<br/><textarea name="code" class="php" rows="15" cols="100">
注意:
1、&lt;div id=&quot;iframe&quot;&gt;显示刷新的内容&lt;/div&gt;
2、调用异步刷新:javascript:OnLink(&#039;地址&#039;)
 
&lt;!--ajax异步刷新--&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 //创建XMLHttpRequestc对象
&nbsp;&nbsp;var&nbsp;&nbsp;xmlHttp=false;
&nbsp;&nbsp;//判断浏览器
&nbsp;&nbsp;function createXMLHttpRequest()&#123;
&nbsp;&nbsp;&nbsp;&nbsp;if(window.ActiveXObject)&#123;//IE浏览器
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;catch(e)&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;catch(e)&#123;&#125;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&nbsp;&nbsp;&nbsp;&nbsp;&#125;else&#123;//其他浏览器：如mozilla 的 fireFox(火狐) 或者 netscape 7
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp=new XMLHttpRequest();
&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;//提交获得值后的方法
&nbsp;&nbsp;function OnShow()&#123;
&nbsp;&nbsp; if(xmlHttp.readyState==4)&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(xmlHttp.status==200)&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var info=xmlHttp.responseText;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(&quot;iframe&quot;).innerHTML=info;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;//要调用的方法
&nbsp;&nbsp;function OnLink(URL)&#123;
&nbsp;&nbsp; createXMLHttpRequest();
&nbsp;&nbsp; xmlHttp.open(&quot;post&quot;,URL,true);
&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp.onreadystatechange=OnShow;
&nbsp;&nbsp;&nbsp;&nbsp; xmlHttp.send(null);
&nbsp;&nbsp;&#125;
 &lt;/script&gt;
</textarea><br/><br/>来自：http://hi.baidu.com/625570671/item/968b7bad7a876d32030a4da8<br/><br/><br/><br/>js控制div滚动条显示与隐藏:<br/><textarea name="code" class="JS" rows="15" cols="100">
&lt;script language=&quot;javascript&quot;&gt;
function sendText()
&#123;
var e=document.getElementById(&quot;div1&quot;)
var inp=document.getElementById(&quot;inp&quot;)
e.innerText=e.innerText+&quot;&#92;n&quot;+inp.value;
//e.scrollTop=e.scrollHeight;
&#125;
function sc()
&#123;
var e=document.getElementById(&quot;div1&quot;)
e.scrollTop=e.scrollHeight;
&#125;
var s=setInterval(&quot;sc()&quot;,200)
&lt;/script&gt;
&lt;div id=&quot;div1&quot; style=&quot;border:1px #ff9966 dashed;width:400;height:100;overflow-x:hidden;overflow-y:scroll&quot;&gt;
&lt;/div&gt;
&lt;input type=&quot;text&quot; id=&quot;inp&quot; style=&quot;width:300&quot;&gt;
&lt;input type=&quot;button&quot; onclick=&quot;sendText()&quot; value=&quot;发送&quot;&gt; 
</textarea><br/><br/>来自：http://www.bcw52.com/JSS/1951.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Ajax异步刷新实现无闪烁刷新iframe内容,js控制div滚动条显示与隐藏.]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>