<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.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://www.jackxiang.com/post//</link>
<title><![CDATA[jquery ui — Dialog  jquery dialog]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sat, 16 Jan 2010 17:22:18 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/>&lt;script type=&quot;text/javascript&quot; src=&quot;/js/follow.js&quot; &gt;&lt;/script&gt;<br/><br/>&lt;script type=&quot;text/javascript&quot;&gt;<br/>function jumppage()&#123;<br/>&nbsp;&nbsp;$(&#039;#bloomup&#039;).dialog( &#123;modal: true,resizable:false,width:&#039;400px&#039;, height:&#039;400px&#039;,overlay: &#123; opacity: 0.7, background: &#039;black&#039; &#125; &#125;);<br/>&#125;<br/>function closejumppage()&#123;<br/>&nbsp;&nbsp;$(&#039;#bloomup&#039;).dialog(&#039;close&#039;);<br/>&#125;<br/><br/>&lt;/script&gt;<br/><br/>&lt;iframe name=&quot;iframexq&quot; id=&quot;iframexq&quot; src=&quot;/con/exchange/act/putcodes&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; style=&quot;width:400px; height:390px&quot;&gt;&lt;/iframe&gt;<br/><br/></div><br/><br/>&lt;div id=&quot;dialog&quot;&gt; &lt;/div&gt;<br/><br/>$(&quot;#dialog&quot;).dialog( &#123;<br/>autoOpen :true,<br/>height :200,<br/>width :300,<br/>modal :true,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bgiframe :true,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;postion:&#039;center&#039;,<br/>close : function() &#123;<br/>&#125;,<br/>buttons : &#123;<br/>&quot;关闭&quot; : function() &#123;<br/>$(this).dialog(&#039;close&#039;);<br/>&#125;<br/>&#125;<br/>&#125;);<br/>$(&#039;#dialog&#039;).dialog(&#039;open&#039;);<br/><br/>为什么用了&nbsp;&nbsp;bgiframe :true 属性后，我页面上的SELECT标签还是会在DIALOG的前面,还有 postion:&#039;center&#039;,但是DIALOG显示位置不是在页成居中.<br/><br/>页面用的是STRUTS2的SELECT标签，会不会是这二个有冲突，那位高手指点一下。<br/><br/>用我的意思来解释，(jquery )dialog的意思就是可以用来制造弹出层的一种方法，当然比弹出层要高级。花费了整整一天的时间，将这个UI看了一遍，至少现在能够明白个大概，但是具体的使用还得在今后的使用中慢慢熟练，慢慢探索。<br/>调用方法：<br/>1.$(foo).dialog()<br/>2.$(&#039;selector&#039;).click(function()&#123;<br/> $(foo).dialog(&#039;open&#039;)<br/>&#125;)<br/>Options:autoOpen,buttons,closeOnEscape,dialogClass,hide,maxHeight,maxWidth,minHeight,minWidth,width,height,position,show,title<br/>1.autoOpen(Boolean)<br/>作用：是否自动弹出层（会话层）<br/>用法：$(&quot;.selector&quot;).dialog(&#123;autoOpen:false&#125;);<br/>设置方法：<br/>//getter<br/>var autoOpen = $(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;autoOpen&#039;);<br/>//setter<br/>$(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;autoOpen&#039;,false);<br/>备注：true为自动弹出<br/>3.buttons<br/>作用：设置以后再会话层下面出现按钮<br/>用法：buttons:&#123;&quot;ok&quot;:function()&#123;$(this).dialog(&quot;close&quot;)&#125;<br/>设置方法：<br/>//getter<br/>var buttions = $(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;buttons&#039;);<br/>//setter<br/>$(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;buttons&#039;,&#123;&quot;ok&quot;:function()&#123;$(this).dialog(&#039;close&#039;);&#125;&#125;);<br/>4.closeOnEscape<br/>作用：设置用户是否可以使用Esc健退出会话层<br/>用法：$(&#039;.selector&#039;).dialog(&#123;closeOnEscape:false&#125;);<br/>设置方法：<br/>//getter<br/>var closeOnEscape = $(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;closeOnEscape&#039;);<br/>//setter<br/>$(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;closeOnEscape&#039;,false);<br/>备注：true为可以使用<br/>5.dialogClass<br/>作用：为会话层使用新的样式<br/>用法：$(&#039;.selector&#039;).dialog(&#123;dialogClass:&#039;styleclass&#039;&#125;);<br/>设置方法：<br/>//getter<br/>var dialogClass = $(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;dialogClass&#039;);<br/>//setter<br/>$(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;dialogClass&#039;,&#039;styleclass&#039;);<br/>备注：会话层中的导航和按钮部分样式待探索。。。<br/>6.hide<br/>作用：设置会话层关闭时的效果<br/>方法：$(&#039;.selector&#039;).dialog(&#123;hide:&#039;slide&#039;&#125;);<br/>设置方法：<br/>//getter<br/>var hide = $(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;hide&#039;);<br/>//setter<br/>$(&#039;.selector&#039;).dialog(&#039;option&#039;,&#039;hide&#039;,&#039;slide&#039;);<br/>7.maxHeight,maxWidth,minHeight,minWidth,width,height<br/>作用：设置会话层可被拖拽的最大和最小的宽度和高度,width,height设置会话层的宽和高，默认单位为Px。<br/>用法：$(&#039;.selector&#039;).dialog(&#123;maxHeight:400&#125;);<br/>8.position<br/>作用：设置会话层的位置(left,right,top,bottom,center),也可以设置[&#039;left&#039;,&#039;top&#039;]左上角位置<br/>方法：$(&quot;.selector&quot;).dialog(&#123;position:&#039;left&#039;&#125;)<br/>9.show<br/>作用：设置会话层出现的效果<br/>用法：$(&#039;.selector&#039;).dialog(&#123;show:&#039;slide&#039;&#125;);<br/>10.title<br/>作用：设置会话层的title，优先于div中设置的title<br/>用法：$(&#039;.selector&#039;).dialog(&#123;title:&#039;Dialog Title&#039;&#125;);<br/><br/>===========以下为未能测试或未测试出效果的option，并附上官方解释===========<br/><br/>draggable<br/>If set to true, the dialog will be draggable will be draggable by the titlebar.<br/>modal<br/>If set to true, the dialog will have modal behavior; other items on the page will be disabled (i.e. cannot be interacted with). Modal dialogs create an overlay below the dialog but above other page elements.<br/>resizable<br/>If set to true, the dialog will be resizeable.<br/>stack<br/>Specifies whether the dialog will stack on top of other dialogs. This will cause the dialog to move to the front of other dialogs when it gains focus.<br/>zIndex<br/>The starting z-index for the dialog.<br/><br/><br/>Events:beforeclose,open,focus,dragStart,drag,dragStop,resizeStart,resize,resizeStop,close<br/>使用方法：<br/>$(&#039;.selector&#039;).dialog(&#123;beforeclose:function()&#123;&#125;&#125;);<br/><br/><br/>Methods:<br/>.dialog(&#039;destry&#039;),.dialog(&#039;disable&#039;),.dialog(&#039;enable&#039;),.dialog(&#039;option&#039;,optionName,[value]) ,.dialog(&#039;close&#039;),.dialog(&#039;isOpen&#039;),.dialog(&#039;moveToTop&#039;),.dialog(&#039;open&#039;)<br/>使用方法：$(foo).dialog()<br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] jquery ui — Dialog  jquery dialog]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>