Coolite Cool Study 2 同时更新多个Tab

Coolite Cool Study 2 同时更新多个Tab_第1张图片 
Coolite Cool Study 2 同时更新多个Tab_第2张图片 

当时用Coolite做测试遇到两个问题:

1. 传递给Tab的Url参数会莫名其妙的被添加上其他字符(到Coolite论坛上问了一下估计是bug)。正常情况下,google搜索url是这个样子:http://www.google.com/search?q=Hello   但因为Coolite在Tab的Url后面添加了某些字符,结果变成这样:http://www.google.com/search?q=Hellosfkjsdkfjskdf,  解决办法是把搜索Url设成这样形式:http://www.google.com/search?q=Hello&End=Y ,呵呵!!

2. 多个Tab同时加载页面引起冲突,导致后面加载的Tab页面有javascript错误。解决办法很简单,TabPanel的属性 DeferredRender="false" 就OK了。

完整代码:

<%@ Page Language="C#" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
"-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



"http://www.w3.org/1999/xhtml">
"Head1" runat="server">
  Update 3 Pages

"padding:15px,5px,5px,15px;">
  
"form1" runat="server"> "ScriptManager1" runat="server" AjaxViewStateMode="Include">
"padding:15px,5px,5px,15px;"> Search: "padding:15px,5px,5px,15px;"> "server" ID="txtS" Width="300"> "padding:15px,5px,5px,15px;"> "btnTest" runat="server" Text="Search By Multi-Engine" Icon="Accept"> "UpdatePage"> "true" MinDelay="500" Msg="Updating Page..." />
"server" ActiveTabIndex="0" Border="true" Height="500" DeferredRender="false" > "tabDtlInfo" runat="server" Title="Google" Height="500" Frame="true" > "tabChgInfo" runat="server" Title="Live" Height="500" Frame="true"> "tabSmyInfo" runat="server" Title="Filckr" Height="500"> "tab1" runat="server" Title="AutoLoad_Google" Height="500" Frame="true"> "true" Mode="IFrame" ShowMask="true" Url="http://www.google.com/search?q=Hello&End=Y"> "tab2" runat="server" Title="AutoLoad_Live" Height="500" Frame="true"> "true" Mode="IFrame" Url="http://cnweb.search.live.com/results.aspx?q=Hello&End=Y">

PS: 这篇文章是用Windows Live Writer来写的,感觉效率高了很多,排版也好了,Cool, I like it!( �C 。- !) 感觉有点卖广告味道~

你可能感兴趣的:(Coolite Cool Study 2 同时更新多个Tab)