<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Developer Snippets &#187; Ext JS</title> <atom:link href="http://www.developersnippets.com/category/ext-js/feed/" rel="self" type="application/rss+xml" /><link>http://www.developersnippets.com</link> <description>An Embodiment for Developers</description> <lastBuildDate>Wed, 23 Nov 2011 20:40:31 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Awesome Ext Designer desktop application has been released</title><link>http://www.developersnippets.com/2010/04/23/awesome-ext-designer-desktop-application-has-been-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=awesome-ext-designer-desktop-application-has-been-released</link> <comments>http://www.developersnippets.com/2010/04/23/awesome-ext-designer-desktop-application-has-been-released/#comments</comments> <pubDate>Fri, 23 Apr 2010 18:42:33 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Ext JS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[JavaScript]]></category><guid isPermaLink="false">http://www.developersnippets.com/?p=1383</guid> <description><![CDATA[Good news for all designers and developers, awesome new Ext Designer Desktop Tool has been released now!, now you can create prototypes on the fly with a simple drag and drop interface. This is a fantastic new desktop application which is available for all major Operating Systems [OS] including Windows, Mac and Linus machines. Ext [...]]]></description> <content:encoded><![CDATA[<p>Good news for all designers and developers, awesome new Ext Designer Desktop Tool has been released now!, now you can create prototypes on the fly with a simple drag and drop interface. This is a fantastic new desktop application which is available for all major Operating Systems [OS] including Windows, Mac and Linus machines.</p><p><span id="more-1383"></span></p><blockquote><p>Ext Designer allows you to rapidly assemble your application&#8217;s visual structure and immediately export your code as JavaScript classes or JSON. It can even be used by business managers and non-programmers to create a prototype, which can then be enhanced by developers.</p></blockquote><p>If you would like to know more features about this awesome EXT Designer Desktop application click on this link &#8211; <a title="Learn more about Ext Designer" href="http://www.extjs.com/blog/2010/04/22/ext-designer-released-watch-the-screencast/">learn more</a>, and if you want to download the same &#8211; <a title="Download - Ext Designer" href="http://www.extjs.com/products/designer/download.php">click here</a>.</p><p><img class="aligncenter size-full wp-image-1384" title="Ext Designer" src="http://www.developersnippets.com/wp-content/uploads/2010/04/ext_designer.jpg" alt="Ext Designer Desktop Application" width="470" height="299" /></p><div class="shr-publisher-1383"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2010%2F04%2F23%2Fawesome-ext-designer-desktop-application-has-been-released%2F' data-shr_title='Awesome+Ext+Designer+desktop+application+has+been+released'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2010%2F04%2F23%2Fawesome-ext-designer-desktop-application-has-been-released%2F' data-shr_title='Awesome+Ext+Designer+desktop+application+has+been+released'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2010%2F04%2F23%2Fawesome-ext-designer-desktop-application-has-been-released%2F' data-shr_title='Awesome+Ext+Designer+desktop+application+has+been+released'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2010/04/23/awesome-ext-designer-desktop-application-has-been-released/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Latest online tech videos right on your desktop &#8211; TechVideoBytes.com</title><link>http://www.developersnippets.com/2009/08/23/latest-online-tech-videos-right-on-your-desktop-techvideobytescom/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=latest-online-tech-videos-right-on-your-desktop-techvideobytescom</link> <comments>http://www.developersnippets.com/2009/08/23/latest-online-tech-videos-right-on-your-desktop-techvideobytescom/#comments</comments> <pubDate>Sun, 23 Aug 2009 10:03:14 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Accessibility]]></category> <category><![CDATA[Action Scripting]]></category> <category><![CDATA[Addons]]></category> <category><![CDATA[Adobe]]></category> <category><![CDATA[AIR]]></category> <category><![CDATA[AJAX]]></category> <category><![CDATA[Apollo]]></category> <category><![CDATA[Best Companies]]></category> <category><![CDATA[Browsers]]></category> <category><![CDATA[C++]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Databases]]></category> <category><![CDATA[Designing]]></category> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Featured]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[Flash]]></category> <category><![CDATA[Flex]]></category> <category><![CDATA[Games]]></category> <category><![CDATA[Gfx]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[Google Chrome]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[Internet Explorer]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[LightBox]]></category> <category><![CDATA[Maya]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[Mobile]]></category> <category><![CDATA[Mootools]]></category> <category><![CDATA[Mozilla]]></category> <category><![CDATA[Photoshop]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[ProtoType]]></category> <category><![CDATA[Reg Exp]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[Safari Browser]]></category> <category><![CDATA[Script.aculo.us]]></category> <category><![CDATA[Sessions]]></category> <category><![CDATA[Social Networking Websites]]></category> <category><![CDATA[sports]]></category> <category><![CDATA[Technology News]]></category> <category><![CDATA[Themes]]></category> <category><![CDATA[ThickBox]]></category> <category><![CDATA[Thoughts to Think about]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Top Blogs]]></category> <category><![CDATA[Wallpapers]]></category> <category><![CDATA[Web Hosting]]></category> <category><![CDATA[Widgets]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[xml]]></category> <category><![CDATA[Yahoo]]></category> <category><![CDATA[YUI]]></category><guid isPermaLink="false">http://www.developersnippets.com/?p=1144</guid> <description><![CDATA[Hi readers, I glad to inform you that DeveloperSnippets is coming up with new features right on your desktop. Now! you can view your best and favorite technology videos online right on your screens streaming from various channels online like for example, videos streaming from YouTube, Howcast, Daily Motion, RuTube, Yahoo! Video, Veoh, MySpace and [...]]]></description> <content:encoded><![CDATA[<p>Hi readers, I glad to inform you that <a title="DeveloperSnippets" href="http://www.developersnippets.com">DeveloperSnippets</a> is coming up with new features right on your desktop. Now! you can view your best and favorite technology videos online right on your screens streaming from various channels online like for example, videos streaming from <a title="YouTube Channel" href="http://www.techvideobytes.com/?ch=YouTube" target="_blank">YouTube</a>, <a title="HowCast" href="http://www.techvideobytes.com/?ch=Howcast" target="_blank">Howcast</a>, <a title="Daily Motion" href="http://www.techvideobytes.com/?ch=Dailymotion" target="_blank">Daily Motion</a>, <a title="RuTube" href="http://www.techvideobytes.com/?ch=RuTube" target="_blank">RuTube</a>, <a title="Yahoo! Video" href="http://www.techvideobytes.com/?ch=Yahoo!%20Video" target="_blank">Yahoo! Video</a>, <a title="Veoh" href="http://www.techvideobytes.com/?ch=Veoh" target="_blank">Veoh</a>, <a title="MySpace" href="http://www.techvideobytes.com/?ch=MySpace" target="_blank">MySpace</a> and many more. Just few days back TechVideoBytes sites has been launched new with new domain, earlier URL for TechVideoBytes was <a href="http://www.developersnippets.com/techvideobytes" title="TechVideoBytes">http://www.developersnippets.com/techvideobytes</a> and it has got its own domain, which is named and addressed as <a href="http://www.techvideobytes.com" title="TechVideoBytes">http://www.techvideobytes.com</a>.<span id="more-1144"></span> If you would like to know more about <a href="http://www.techvideobytes.com" title="TechVideoBytes">TechVideoBytes</a>,then you can view this article, which will take you to the <a href="http://www.techvideobytes.com" title="TechVideoBytes">New Look of TechVideoBytes</a>.</p><p>You can either directly browse to <a href="http://www.techvideobytes.com" title="TechVideoBytes">TechVideoBytes</a> (or) the option is available from this website as well. I have included an option, where you can easily navigate to various options and can view your favorite video through the &#8220;<strong>Video</strong>&#8221; option provided at the most menu in this website. For more information you can view the screen-shot below:</p><div id="attachment_1145" class="wp-caption aligncenter" style="width: 473px"><a href="http://www.techvideobytes.com"><img src="http://www.developersnippets.com/wp-content/uploads/2009/08/techvideobytes.jpg" alt="TechVideoBytes" title="TechVideoBytes" width="463" height="613" class="size-full wp-image-1145" border="0" /></a><p class="wp-caption-text">TechVideoBytes</p></div><p>Below are the screen shots of the same:</p><div class="wp-caption alignnone" style="width: 470px"><a href="http://www.techvideobytes.com"><img alt="New Look of TechVideoBytes home page" src="http://www.developersnippets.com/wp-content/uploads/2009/07/homepage.jpg" title="TechVideoBytes" width="460" height="1050" /></a><p class="wp-caption-text">New Look of TechVideoBytes home page</p></div><div class="wp-caption alignnone" style="width: 470px"><a href="http://www.techvideobytes.com"><img alt="TechVideoBytes - Video Page" src="http://www.developersnippets.com/wp-content/uploads/2009/07/videopage.jpg" title="TechVideoBytes - Video Page" width="460" height="717" /></a><p class="wp-caption-text">TechVideoBytes - Video Page</p></div><p>Please do Bookmark this as your favorite, and please do let me know your feedback on the same through the comment option provided.</p><div class="shr-publisher-1144"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F08%2F23%2Flatest-online-tech-videos-right-on-your-desktop-techvideobytescom%2F' data-shr_title='Latest+online+tech+videos+right+on+your+desktop+-+TechVideoBytes.com'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F08%2F23%2Flatest-online-tech-videos-right-on-your-desktop-techvideobytescom%2F' data-shr_title='Latest+online+tech+videos+right+on+your+desktop+-+TechVideoBytes.com'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F08%2F23%2Flatest-online-tech-videos-right-on-your-desktop-techvideobytescom%2F' data-shr_title='Latest+online+tech+videos+right+on+your+desktop+-+TechVideoBytes.com'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2009/08/23/latest-online-tech-videos-right-on-your-desktop-techvideobytescom/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Show or Hide of Ext.Window panel, with close button inside</title><link>http://www.developersnippets.com/2009/07/08/show-or-hide-of-extwindow-panel-with-close-button-inside/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=show-or-hide-of-extwindow-panel-with-close-button-inside</link> <comments>http://www.developersnippets.com/2009/07/08/show-or-hide-of-extwindow-panel-with-close-button-inside/#comments</comments> <pubDate>Wed, 08 Jul 2009 08:29:28 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[JavaScript]]></category><guid isPermaLink="false">http://www.developersnippets.com/?p=1073</guid> <description><![CDATA[Introduction Below is the simple snippet which allows us to show or hide the Ext.Window panel, on button or link click it will show the Window panel and on button or link click it hides the Window panel accordingly, the respective Window is a modal Window. This is a simple and basic snippet which all [...]]]></description> <content:encoded><![CDATA[<h2>Introduction</h2><p>Below is the simple snippet which allows us to show or hide the Ext.Window panel, on button or link click it will show the Window panel and on button or link click it hides the Window panel accordingly, the respective Window is a modal Window. This is a simple and basic snippet which all beginners can understand easily.</p><p><span id="more-1073"></span></p><h2>Preview / Download:</h2><p>If you would like to see the working example, please do <a href="http://www.developersnippets.com/snippets/extjs/examples/window/showhide_window.html" title="Show or Hide of Ext.Window panel">click here</a>. And if you would like to download the snippet, <a href="http://www.developersnippets.com/snippets/extjs/examples/window/showhide_window.zip" title="Show or Hide of Ext.Window panel">click here</a></p><h2>HTML Code</h2><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;divWindowId&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;x-hidden&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;padding:10px&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam a vestibulum sem. In a elit ipsum, at cursus enim. Nullam non dui tellus, vitae vestibulum tortor. Aliquam gravida tellus lorem, quis consectetur quam. Donec mollis auctor nunc eget scelerisque.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Vivamus dignissim diam in ligula semper vestibulum. Aenean luctus nisi in metus ultrices eu congue odio sodales. Aenean volutpat viverra est, at feugiat libero commodo ut. Maecenas at quam eget libero feugiat ullamcorper quis placerat ligula. Aliquam et tortor vitae enim viverra faucibus.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
	    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Close&quot;</span> <span style="color: #000066;">onClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hideWindow();&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div><h2>JavaScript Code</h2><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">var</span> winPanel <span style="color: #339933;">=</span> Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'panelWindowId'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>winPanel<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	winPanel <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">Window</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Sample Window'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Title of the Window </span>
	id<span style="color: #339933;">:</span> <span style="color: #3366CC;">'panelWindowId'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//ID of the Window Panel</span>
	autoHeight<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Height of the Window will be auto</span>
	width<span style="color: #339933;">:</span><span style="color: #CC0000;">300</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Width of the Window</span>
	resizable<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Resize of the Window, if false - it cannot be resized</span>
	closable<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Hide close button of the Window</span>
	modal<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//When modal:true it make the window modal and mask everything behind it when displayed</span>
	contentEl<span style="color: #339933;">:</span> <span style="color: #3366CC;">'divWindowId'</span> <span style="color: #006600; font-style: italic;">//ID of the respective 'div'</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> showWindow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span> 
	winPanel.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #006600; font-style: italic;">//show method has got three optional parameters like animateTarget, callback, Object scope</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> hideWindow<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span> 
	Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'panelWindowId'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #006600; font-style: italic;">//Even this hide methof has got same three optional parameters like animateTarget, callback, Object scope</span>
	<span style="color: #006600; font-style: italic;">//getCmp method is to retrieve the reference to the component</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div><h2>Preview / Download:</h2><p>If you would like to see the working example, please do <a href="http://www.developersnippets.com/snippets/extjs/examples/window/showhide_window.html" title="Show or Hide of Ext.Window panel">click here</a>. And if you would like to download the snippet, <a href="http://www.developersnippets.com/snippets/extjs/examples/window/showhide_window.zip" title="Show or Hide of Ext.Window panel">click here</a></p><div class="shr-publisher-1073"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F07%2F08%2Fshow-or-hide-of-extwindow-panel-with-close-button-inside%2F' data-shr_title='Show+or+Hide+of+Ext.Window+panel%2C+with+close+button+inside'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F07%2F08%2Fshow-or-hide-of-extwindow-panel-with-close-button-inside%2F' data-shr_title='Show+or+Hide+of+Ext.Window+panel%2C+with+close+button+inside'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F07%2F08%2Fshow-or-hide-of-extwindow-panel-with-close-button-inside%2F' data-shr_title='Show+or+Hide+of+Ext.Window+panel%2C+with+close+button+inside'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2009/07/08/show-or-hide-of-extwindow-panel-with-close-button-inside/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Date Range using ExtJS Date Field and Advanced VType</title><link>http://www.developersnippets.com/2009/06/24/date-range-using-extjs-date-field-and-advanced-vtype/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=date-range-using-extjs-date-field-and-advanced-vtype</link> <comments>http://www.developersnippets.com/2009/06/24/date-range-using-extjs-date-field-and-advanced-vtype/#comments</comments> <pubDate>Wed, 24 Jun 2009 13:05:08 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Featured]]></category> <category><![CDATA[JavaScript]]></category><guid isPermaLink="false">http://www.developersnippets.com/?p=1061</guid> <description><![CDATA[Introduction: Date Ranging is simple using ExtJS DateField. Yes! When I was working for one of my project, In one of my form I got to include Date Range functionality. When I was searching for this functionality, I got an answer from ExtJS forums, I followed one thread and got the answer. Here is the [...]]]></description> <content:encoded><![CDATA[<h2>Introduction:</h2><p>Date Ranging is simple using ExtJS DateField. Yes! When I was working for one of my project, In one of my form I got to include Date Range functionality. When I was searching for this functionality, I got an answer from ExtJS forums, I followed one thread and got the answer. Here is the respective thread, which I was talking about. &#8211; <a href="http://extjs.com/forum/showthread.php?p=213375" title="Problem with custom VTypes - daterange">problem with custom VTypes &#8211; daterange</a>, if you drill down on the same page, you can view a link which depicts about the advance vtype by Brian. So, you can grab the latest version of advance vtypes here &#8211; <a href="http://extjs.com/deploy/dev/examples/form/adv-vtypes.js" title="vtypes">vtypes</a></p><p><span id="more-1061"></span></p><p><strong><a href="http://www.developersnippets.com/snippets/extjs/examples/form/daterange.html">Preview</a> | <a href="http://www.developersnippets.com/snippets/extjs/examples/form/daterange.zip">Download</a></strong></p><p>Code Courtesy for vtypes &#8211; ExtJS and Brian</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Add the additional 'advanced' VTypes</span>
Ext.<span style="color: #660066;">apply</span><span style="color: #009900;">&#40;</span>Ext.<span style="color: #660066;">form</span>.<span style="color: #660066;">VTypes</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
    daterange <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>val<span style="color: #339933;">,</span> field<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> date <span style="color: #339933;">=</span> field.<span style="color: #660066;">parseDate</span><span style="color: #009900;">&#40;</span>val<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>date<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">startDateField</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMax</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span>date.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMax</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> start <span style="color: #339933;">=</span> Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">startDateField</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            start.<span style="color: #660066;">setMaxValue</span><span style="color: #009900;">&#40;</span>date<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            start.<span style="color: #660066;">validate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMax</span> <span style="color: #339933;">=</span> date<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> 
        <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">endDateField</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMin</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span>date.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMin</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> end <span style="color: #339933;">=</span> Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">endDateField</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            end.<span style="color: #660066;">setMinValue</span><span style="color: #009900;">&#40;</span>date<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            end.<span style="color: #660066;">validate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMin</span> <span style="color: #339933;">=</span> date<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #006600; font-style: italic;">/*
         * Always return true since we're only using this vtype to set the
         * min/max allowed values (these are tested for after the vtype test)
         */</span>
        <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><h2>Below is the required example:</h2><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;float:left;&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>From<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fromdate&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;float:left; padding-left:20px;&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>To<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;todate&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clear:both&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div><h2>Respective ExtJS JavaScript Code:</h2><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #006600; font-style: italic;">// Add the additional 'advanced' VTypes -- [Begin]</span>
Ext.<span style="color: #660066;">apply</span><span style="color: #009900;">&#40;</span>Ext.<span style="color: #660066;">form</span>.<span style="color: #660066;">VTypes</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
	daterange <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>val<span style="color: #339933;">,</span> field<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> date <span style="color: #339933;">=</span> field.<span style="color: #660066;">parseDate</span><span style="color: #009900;">&#40;</span>val<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>date<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">startDateField</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMax</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span>date.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMax</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> start <span style="color: #339933;">=</span> Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">startDateField</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			start.<span style="color: #660066;">setMaxValue</span><span style="color: #009900;">&#40;</span>date<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			start.<span style="color: #660066;">validate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMax</span> <span style="color: #339933;">=</span> date<span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> 
		<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">endDateField</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMin</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span>date.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMin</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> end <span style="color: #339933;">=</span> Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span>field.<span style="color: #660066;">endDateField</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			end.<span style="color: #660066;">setMinValue</span><span style="color: #009900;">&#40;</span>date<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			end.<span style="color: #660066;">validate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">dateRangeMin</span> <span style="color: #339933;">=</span> date<span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #006600; font-style: italic;">/*
		 * Always return true since we're only using this vtype to set the
		 * min/max allowed values (these are tested for after the vtype test)
		 */</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Add the additional 'advanced' VTypes -- [End]</span>
&nbsp;
dateRangeFunc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> dateRangeFunc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">// Date picker				</span>
		<span style="color: #003366; font-weight: bold;">var</span> fromdate <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">form</span>.<span style="color: #660066;">DateField</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			format<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Y-M-d'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//YYYY-MMM-DD</span>
			fieldLabel<span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">,</span>
			id<span style="color: #339933;">:</span> <span style="color: #3366CC;">'startdt'</span><span style="color: #339933;">,</span>
			<span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'startdt'</span><span style="color: #339933;">,</span>
			width<span style="color: #339933;">:</span><span style="color: #CC0000;">140</span><span style="color: #339933;">,</span>
			allowBlank<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
			vtype<span style="color: #339933;">:</span> <span style="color: #3366CC;">'daterange'</span><span style="color: #339933;">,</span>
            endDateField<span style="color: #339933;">:</span> <span style="color: #3366CC;">'enddt'</span><span style="color: #006600; font-style: italic;">// id of the 'To' date field</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> todate <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">form</span>.<span style="color: #660066;">DateField</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			format<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Y-M-d'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//YYYY-MMM-DD</span>
			fieldLabel<span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">,</span>
			id<span style="color: #339933;">:</span> <span style="color: #3366CC;">'enddt'</span><span style="color: #339933;">,</span>
			<span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'enddt'</span><span style="color: #339933;">,</span>
			width<span style="color: #339933;">:</span><span style="color: #CC0000;">140</span><span style="color: #339933;">,</span>
			allowBlank<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
			vtype<span style="color: #339933;">:</span> <span style="color: #3366CC;">'daterange'</span><span style="color: #339933;">,</span>
            startDateField<span style="color: #339933;">:</span> <span style="color: #3366CC;">'startdt'</span><span style="color: #006600; font-style: italic;">// id of the 'From' date field</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		fromdate.<span style="color: #660066;">render</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'fromdate'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		todate.<span style="color: #660066;">render</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'todate'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #006600; font-style: italic;">//dateRangeFunc() close</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div><p><a href="http://www.developersnippets.com/snippets/extjs/examples/form/daterange.html"><img src="http://www.developersnippets.com/wp-content/uploads/2009/06/daterange.jpg" alt="Date Range Using ExtJS Date Field and Advanced VType" title="Date Range Using ExtJS Date Field and Advanced VType" width="460" height="251" class="aligncenter size-full wp-image-1064" /></a></p><h2>Below is the working example for the same:</h2><p><a href="http://www.developersnippets.com/snippets/extjs/examples/form/daterange.html">Preview &#8211; Date Range using ExtJS Date Field</a></p><h2>Download:</h2><p><a href="http://www.developersnippets.com/snippets/extjs/examples/form/daterange.zip">Download &#8211; Date Range using ExtJS Date Field</a></p><div class="shr-publisher-1061"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F06%2F24%2Fdate-range-using-extjs-date-field-and-advanced-vtype%2F' data-shr_title='Date+Range+using+ExtJS+Date+Field+and+Advanced+VType'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F06%2F24%2Fdate-range-using-extjs-date-field-and-advanced-vtype%2F' data-shr_title='Date+Range+using+ExtJS+Date+Field+and+Advanced+VType'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F06%2F24%2Fdate-range-using-extjs-date-field-and-advanced-vtype%2F' data-shr_title='Date+Range+using+ExtJS+Date+Field+and+Advanced+VType'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2009/06/24/date-range-using-extjs-date-field-and-advanced-vtype/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>How To: Make Tabs Reload and Evaluate Scripts using ExtJS</title><link>http://www.developersnippets.com/2009/05/15/how-to-make-tabs-reload-and-evaluate-scripts-using-extjs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-make-tabs-reload-and-evaluate-scripts-using-extjs</link> <comments>http://www.developersnippets.com/2009/05/15/how-to-make-tabs-reload-and-evaluate-scripts-using-extjs/#comments</comments> <pubDate>Fri, 15 May 2009 13:31:10 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[AJAX]]></category> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Featured]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://www.developersnippets.com/?p=985</guid> <description><![CDATA[Introduction: When I was working on Ext JS Tab Panels, I was strucked at one position like, let me explain you the scenario: I am using &#8216;autoLoad&#8216; for loading an HTML page using AJAX concept, in one of my html page I have used some JavaScript, which needs to be initialized on tab activate (this [...]]]></description> <content:encoded><![CDATA[<h2>Introduction:</h2><p>When I was working on Ext JS Tab Panels, I was strucked at one position like, let me explain you the scenario: I am using &#8216;<strong>autoLoad</strong>&#8216; for loading an HTML page using AJAX concept, in one of my html page I have used some JavaScript, which needs to be initialized on tab activate (this is my requirement). For evaluating I have used &#8216;<strong>scripts:ture</strong>&#8216;, I thought this will do my Job, when I executed respective page, it has worked fine for the first time, when I navigate to other tabs and came back to the tab panel which has got &#8216;<strong>scripts:ture</strong>&#8216; the respective JavaScript code is not initializing. This has disappointed me a lot since I need that functionality. For this to achieve we have to use <strong>refresh()</strong> method through <strong>getUpdater()</strong>.</p><p><span id="more-985"></span></p><p>In Two ways we can achieve this one, that is purely depending on your requirement.</p><ul><li>First method would be, add a &#8216;listener&#8217; and to the respective &#8216;tabchange&#8217; event write a function which does your job.</li><li>Second method would be, adding a &#8216;listener&#8217; to the respective tab panel</li></ul><p><a href="http://developersnippets.com/snippets/extjs/examples/tabs/reload_tab_panels.html" title="Live Preview: Reload and Evaluate Scripts using ExtJS"><strong>Live Preview</strong></a> | <a href="http://www.developersnippets.com/snippets/extjs/download/reloadtabpanels.zip" title="Download: Reload and Evaluate Scripts using ExtJS"><strong>Download</strong></a></p><h2>HTML Code</h2><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>How To: Make Tabs Reload and Evaluate Scripts<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- container for the existing markup tabs --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;renderTabs&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div><h2>First Method:</h2><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">    <span style="color: #006600; font-style: italic;">// First Method</span>
    <span style="color: #003366; font-weight: bold;">var</span> ajaxtabPanels <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">TabPanel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        renderTo<span style="color: #339933;">:</span> <span style="color: #3366CC;">'renderTabs'</span><span style="color: #339933;">,</span>
        activeTab<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
        width<span style="color: #339933;">:</span><span style="color: #CC0000;">600</span><span style="color: #339933;">,</span>
        height<span style="color: #339933;">:</span><span style="color: #CC0000;">250</span><span style="color: #339933;">,</span>
        plain<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        defaults<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>autoScroll<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		listeners<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
		tabchange<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>tabPanel<span style="color: #339933;">,</span>newTab<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			 <span style="color: #003366; font-weight: bold;">var</span> thisObj <span style="color: #339933;">=</span> newTab.<span style="color: #660066;">getUpdater</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			 <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>thisObj<span style="color: #009900;">&#41;</span> thisObj.<span style="color: #660066;">refresh</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		  <span style="color: #009900;">&#125;</span>
	    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        items<span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span>
                title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Ajax Tab 1 - Simple Page without JS Code'</span><span style="color: #339933;">,</span>
                autoLoad<span style="color: #339933;">:</span><span style="color: #3366CC;">'ajaxtab1.html'</span> <span style="color: #006600; font-style: italic;">// Simple Page without JavaScript Code</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
                title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Ajax Tab 2 - Page with JavaScript Code'</span><span style="color: #339933;">,</span>
                autoLoad<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>url<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ajaxtab2.html'</span><span style="color: #339933;">,</span> scripts<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span> <span style="color: #006600; font-style: italic;">//Simple Page with JavaScript Code</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
                title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Ajax Tab 3 Disabled'</span><span style="color: #339933;">,</span>
                disabled<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#93;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><h2>Second Method:</h2><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">	<span style="color: #006600; font-style: italic;">// Second Method</span>
    <span style="color: #003366; font-weight: bold;">var</span> ajaxtabPanels <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">TabPanel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        renderTo<span style="color: #339933;">:</span> <span style="color: #3366CC;">'renderTabs'</span><span style="color: #339933;">,</span>
        activeTab<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
        width<span style="color: #339933;">:</span><span style="color: #CC0000;">600</span><span style="color: #339933;">,</span>
        height<span style="color: #339933;">:</span><span style="color: #CC0000;">250</span><span style="color: #339933;">,</span>
        plain<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        defaults<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>autoScroll<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        items<span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span>
                title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Ajax Tab 1 - Simple Page without JS Code'</span><span style="color: #339933;">,</span>
                autoLoad<span style="color: #339933;">:</span><span style="color: #3366CC;">'ajaxtab1.html'</span> <span style="color: #006600; font-style: italic;">// Simple Page without JavaScript Code</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
                title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Ajax Tab 2 - Page with JavaScript Code'</span><span style="color: #339933;">,</span>
                autoLoad<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>url<span style="color: #339933;">:</span> <span style="color: #3366CC;">'ajaxtab2.html'</span><span style="color: #339933;">,</span> scripts<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Simple Page with JavaScript Code</span>
				listeners<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>
					activate <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>tabpanel<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
						tabpanel.<span style="color: #660066;">getUpdater</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">refresh</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
                title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Ajax Tab 3 Disabled'</span><span style="color: #339933;">,</span>
                disabled<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#93;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p><a href="http://developersnippets.com/snippets/extjs/examples/tabs/reload_tab_panels.html" title="Live Preview: Reload and Evaluate Scripts using ExtJS"><strong>Live Preview</strong></a> | <a href="http://www.developersnippets.com/snippets/extjs/download/reloadtabpanels.zip" title="Download: Reload and Evaluate Scripts using ExtJS"><strong>Download</strong></a></p><p>This respective code has helped me a lot, for this I would like to thank ExtJS Team for giving me a valuable answer and for helping me as well.</p><div class="shr-publisher-985"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F05%2F15%2Fhow-to-make-tabs-reload-and-evaluate-scripts-using-extjs%2F' data-shr_title='How+To%3A+Make+Tabs+Reload+and+Evaluate+Scripts+using+ExtJS'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F05%2F15%2Fhow-to-make-tabs-reload-and-evaluate-scripts-using-extjs%2F' data-shr_title='How+To%3A+Make+Tabs+Reload+and+Evaluate+Scripts+using+ExtJS'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F05%2F15%2Fhow-to-make-tabs-reload-and-evaluate-scripts-using-extjs%2F' data-shr_title='How+To%3A+Make+Tabs+Reload+and+Evaluate+Scripts+using+ExtJS'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2009/05/15/how-to-make-tabs-reload-and-evaluate-scripts-using-extjs/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Stunning examples using Ext Core for your Web Projects</title><link>http://www.developersnippets.com/2009/04/05/stunning-examples-of-ext-core-for-your-web-projects/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=stunning-examples-of-ext-core-for-your-web-projects</link> <comments>http://www.developersnippets.com/2009/04/05/stunning-examples-of-ext-core-for-your-web-projects/#comments</comments> <pubDate>Sun, 05 Apr 2009 19:41:31 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Featured]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[LightBox]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://www.developersnippets.com/?p=909</guid> <description><![CDATA[Introduction This valuable article helps you in implementing interactive Web Application / Web Portal. This includes Manual, Carousel, Lightbox, Menu, JSONP and Simple Tabs. Vote of Thanks I would like to thank Ext Core Team members for introducing awesome Ext JS to this Web World. Since, it is giving life to each and every developer [...]]]></description> <content:encoded><![CDATA[<h2>Introduction</h2><p>This valuable article helps you in implementing interactive Web Application / Web Portal. This includes Manual, Carousel, Lightbox, Menu, JSONP and Simple Tabs. <span id="more-909"></span><br /> <img src="http://www.developersnippets.com/wp-content/uploads/2009/04/extcore.jpg" alt="ExtCore" title="ExtCore" width="460" height="348" class="aligncenter size-full wp-image-916" /><br /> <br/></p><h2>Vote of Thanks</h2><p>I would like to thank Ext Core Team members for introducing awesome Ext JS to this Web World. Since, it is giving life to each and every developer in this Web World and it is a nice environment to learn some good things in Life. Thanks a lot friends&#8230;..</p><h2>Ext Core 3.0 Beta Released</h2><p>There was a good blog post by Tommy on 04 April 2009, regarding Ext Core 3.0 Beta Release, the Ext Team has announced the launch of Ext Core 3.0 to the World of Web. You can download the same from this link &#8211; <a href="http://extjs.com/products/extcore/download.php" title="Ext Core 3.0">http://extjs.com/products/extcore/download.php</a></p><blockquote><p>Ext Core provides a cross-browser consistent API for performing the most common tasks in JavaScript development for web pages.</p></blockquote><p>This Ext Core provides cross-browser abstractions for DOM manipulation and traversal, CSS management, Event handling, Dimensions and Sizing, AJAX and JSON Support and Animations. And even this includes most used popular utilities from Ext JS like Classical Inheritance Class System, Observable Class, Markup generation and Templating, Timed code execution, URL encoding and decoding.</p><h2>Examples using Ext Core</h2><p>As I have stated above, Ext Team has showcased some of useful and awesome interactive examples which can be used in your Web Pages very extensively. These includes Manual, Carousel, Lightbox, Menu, JSONP and Simple Tabs.</p><h3>Manual</h3><p><a href="http://extjs.com/products/extcore/manual/"><img src="http://www.developersnippets.com/wp-content/uploads/2009/04/manual.jpg" alt="Ext Core: Manual" title="Ext Core: Manual" width="460" height="275" class="aligncenter size-full wp-image-910" /></a><br /> <br/></p><h3>Carousel</h3><p><a href="http://extjs.com/playpen/ext-core-latest/examples/carousel/"><img src="http://www.developersnippets.com/wp-content/uploads/2009/04/carousel.jpg" alt="Ext Core: Carousel" title="Ext Core: Carousel" width="460" height="337" class="aligncenter size-full wp-image-911" /></a><br /> <br/></p><h3>Lightbox</h3><p><a href="http://extjs.com/playpen/ext-core-latest/examples/lightbox/"><img src="http://www.developersnippets.com/wp-content/uploads/2009/04/lightbox.jpg" alt="Ext Core: Lightbox" title="Ext Core: Lightbox" width="460" height="281" class="aligncenter size-full wp-image-912" /></a><br /> <br/></p><h3>Menu</h3><p><a href="http://extjs.com/playpen/ext-core-latest/examples/menu/"><img src="http://www.developersnippets.com/wp-content/uploads/2009/04/menu.jpg" alt="Ext Core: Menu" title="Ext Core: Menu" width="460" height="207" class="aligncenter size-full wp-image-913" /></a><br /> <br/></p><h3>JSONP</h3><p><a href="http://extjs.com/playpen/ext-core-latest/examples/jsonp/"><img src="http://www.developersnippets.com/wp-content/uploads/2009/04/jsonp.jpg" alt="Ext Core: JSNOP" title="Ext Core: JSNOP" width="460" height="312" class="aligncenter size-full wp-image-914" /></a><br /> <br/></p><h3>Simple Tabs</h3><p><a href="http://extjs.com/playpen/ext-core-latest/examples/tabs/"><img src="http://www.developersnippets.com/wp-content/uploads/2009/04/simpletabs.jpg" alt="Ext Core: Simple Tabs" title="Ext Core: Simple Tabs" width="460" height="238" class="aligncenter size-full wp-image-915" /></a><br /> <br/><br /> Once again, I would like to thank Ext Team for this effort&#8230; You guys! Rocks! Cheers!</p><div class="shr-publisher-909"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F04%2F05%2Fstunning-examples-of-ext-core-for-your-web-projects%2F' data-shr_title='Stunning+examples+using+Ext+Core+for+your+Web+Projects'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F04%2F05%2Fstunning-examples-of-ext-core-for-your-web-projects%2F' data-shr_title='Stunning+examples+using+Ext+Core+for+your+Web+Projects'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F04%2F05%2Fstunning-examples-of-ext-core-for-your-web-projects%2F' data-shr_title='Stunning+examples+using+Ext+Core+for+your+Web+Projects'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2009/04/05/stunning-examples-of-ext-core-for-your-web-projects/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Web Developers: Ready to use JavaScript Sliders for your web projects</title><link>http://www.developersnippets.com/2009/02/25/web-developers-ready-to-use-javascript-sliders-for-your-web-projects/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=web-developers-ready-to-use-javascript-sliders-for-your-web-projects</link> <comments>http://www.developersnippets.com/2009/02/25/web-developers-ready-to-use-javascript-sliders-for-your-web-projects/#comments</comments> <pubDate>Wed, 25 Feb 2009 17:48:51 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Featured]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Widgets]]></category> <category><![CDATA[Yahoo]]></category> <category><![CDATA[YUI]]></category> <category><![CDATA[DHTML]]></category> <category><![CDATA[Mootools]]></category><guid isPermaLink="false">http://www.developersnippets.com/?p=824</guid> <description><![CDATA[This post is useful for web developers / other developers who would like to use JavaScript Sliders in their respective web projects. The sliders which are depicted below can be customized accordingly depending on the requirement. Mostly, these are customizable using CSS, I mean on how you want to present the same in your web [...]]]></description> <content:encoded><![CDATA[<p>This post is useful for web developers / other developers who would like to use JavaScript Sliders in their respective web projects. The sliders which are depicted below can be customized accordingly depending on the requirement. Mostly, these are customizable using CSS, I mean on how you want to present the same in your web project.<span id="more-824"></span></p><p>Mostly jQuery, ExtJS, Mootools, YUI are used in these examples. Choose your choice of Slider and implement it in your project accordingly. I would like to suggest that those who have good hands on knowledge on the above mentioned frameworks / APIs can handle it very easily. Even the respective list will also help beginners who wanted to know on how these sliders are worked and how can it be customized accordingly.</p><h1>Ext Slider &#8211; ExtJS</h1><p><strong>Website:</strong> <a title="slider" href="http://www.extjs.com/" target="_blank">extjs.com</a><br /> <strong>Preview:</strong> <a title="slider" href="http://www.extjs.com/deploy/dev/examples/slider/slider.html" target="_blank">click here</a></p><p><a href="http://www.extjs.com/deploy/dev/examples/slider/slider.html"><img class="aligncenter size-full wp-image-826" title="Ext Slider" src="http://www.developersnippets.com/wp-content/uploads/2009/02/extjs.jpg" alt="Ext Slider" width="460" height="140" /></a></p><h1>Developing an accessible slider</h1><p><strong>WebSite:</strong> <a title="http://www.filamentgroup.com" href="http://www.filamentgroup.com/lab/developing_an_accessible_slider/">filamentgroup.com</a><br /> <strong>Preview:</strong> <a title="Accessible Slider" href="http://www.filamentgroup.com/examples/slider/" target="_blank">Click here</a><br /> <strong>Description:</strong> This slider is made up of non-semantic markup that is divs and spans, requires advanced CSS for positioning, for background images and JavaScript to work properly. If you would like to know more about the same, then <a title="Accessible Slider" href="http://www.filamentgroup.com/lab/developing_an_accessible_slider/" target="_blank">click here</a></p><p><a href="http://www.filamentgroup.com/lab/developing_an_accessible_slider/"><img class="aligncenter size-full wp-image-827" title="Accessible Slider" src="http://www.developersnippets.com/wp-content/uploads/2009/02/accessible_slider.jpg" alt="Accessible Slider" width="460" height="140" /></a></p><h1>Yahoo! UI Library: Slider</h1><p><strong>Website:</strong> <a title="http://developer.yahoo.com" href="http://developer.yahoo.com/yui/slider/index.html" target="_blank">developer.yahoo.com</a><br /> <strong>Preview:</strong> <a title="Sliders" href="http://developer.yahoo.com/yui/examples/slider/index.html" target="_blank">Example Sliders</a><br /> <strong>Description:</strong></p><blockquote><p>The Slider component is a UI control that enables the user to adjust values in a finite range along one or two axes. Typically, the Slider control is used in a web application as a rich, visual replacement for an input box that takes a number as input. The Slider control can also easily accommodate a second dimension, providing x,y output for a selection point chosen from a rectangular region.</p></blockquote><p><a title="Yahoo! UI Library: Slider" href="http://developer.yahoo.com/yui/slider/index.html" target="_blank">Click here</a> to know more about this Slider.</p><p>Slider Control examples includes <a title="Basic Vertical Slider" href="http://developer.yahoo.com/yui/examples/slider/slider-simple.html" target="_blank">Basic Vertical Slider</a>, <a title="Horizontal Slider with Tick Marks" href="http://developer.yahoo.com/yui/examples/slider/slider-ticks.html" target="_blank">Horizontal Slider with Tick Marks</a>, <a title="RBG Slider Control" href="http://developer.yahoo.com/yui/examples/slider/slider-rgb.html" target="_blank">RBG Slider Control</a>, <a title="Bottom to top Vertical Slider" href="http://developer.yahoo.com/yui/examples/slider/slider_vert_swapped.html" target="_blank">Bottom to top Vertical Slider</a>, <a title="Horizontal Slider with two thumbs" href="http://developer.yahoo.com/yui/examples/slider/slider_dual_thumb.html" target="_blank">Horizontal Slider with two thumbs</a>, <a title="Dual-thumb Slider with range highlight" href="http://developer.yahoo.com/yui/examples/slider/slider_dual_with_highlight.html" target="_blank">Dual-thumb Slider with range highlight</a></p><p><a href="http://developer.yahoo.com/yui/examples/slider/index.html"><img class="aligncenter size-full wp-image-828" title="Horizontal Slider with Tick Marks" src="http://www.developersnippets.com/wp-content/uploads/2009/02/yui_slider.jpg" alt="Horizontal Slider with Tick Marks" width="460" height="140" /></a></p><h1>DHTML Widget : Inline Range Slider</h1><p><strong>Website:</strong> <a title="Inline Range Slider" href="http://www.hedgerwow.com/360/dhtml/ui-range/demo.html" target="_blank">hedgerwow.com</a></p><p><a href="http://www.hedgerwow.com/360/dhtml/ui-range/demo.html"><img class="aligncenter size-full wp-image-829" title="DHTML Widget: Inline Range Slider" src="http://www.developersnippets.com/wp-content/uploads/2009/02/dhtml_slider.jpg" alt="DHTML Widget: Slider" width="460" height="140" /></a></p><h1>DHTML Slider</h1><p><strong>Website:</strong> <a title="DHTML Slider" href="http://carpe.ambiprospect.com/slider/" target="_blank">DHTML Slider</a><br /> <strong>Description:</strong> It&#8217;s designed with a combination of (X)HTML, Cascading Style Sheets (CSS) and JavaScript. <a title="DHTML Slider" href="http://carpe.ambiprospect.com/slider/" target="_blank">Read More&#8230;</a></p><p><a href="http://carpe.ambiprospect.com/slider/"><img class="aligncenter size-full wp-image-830" title="DHTML Slider" src="http://www.developersnippets.com/wp-content/uploads/2009/02/dhtmlslider.jpg" alt="DHTML Slider" width="460" height="140" /></a></p><h1>UI/Slider &#8211; jQuery</h1><p><strong>Website:</strong> <a title="UI/Slider" href="http://docs.jquery.com/UI/Slider">docs.jquery.com</a></p><blockquote><p>The jQuery UI Slider plugin makes selected elements into sliders. There are various options such as multiple handles, and ranges. The handle can be moved with the mouse or the arrow keys.</p></blockquote><p><a href="http://docs.jquery.com/UI/Slider"><img class="aligncenter size-full wp-image-831" title="jQuery Slider" src="http://www.developersnippets.com/wp-content/uploads/2009/02/jquery_slider.jpg" alt="jQuery Slider" width="460" height="140" /></a></p><h1>Banner slider &#8211; Mootools 1.2</h1><p><strong>Website:</strong> <a title="Banner Slider" href="http://www.php-help.ro/examples/mootools_rotator/" target="_blank">php-help.ro</a></p><p><a href="http://www.php-help.ro/examples/mootools_rotator/"><img class="aligncenter size-full wp-image-832" title="Mootools Image Slider" src="http://www.developersnippets.com/wp-content/uploads/2009/02/mootools_imageslider.jpg" alt="Mootools Image Slider" width="460" height="140" /></a></p><p>Hope this article to improve your skills in JavaScript and on latest JavaScript API&#8217;s. Please let me know your feedback on the collection and please do post if you come across more widgets like this <img src='http://www.developersnippets.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div class="shr-publisher-824"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F02%2F25%2Fweb-developers-ready-to-use-javascript-sliders-for-your-web-projects%2F' data-shr_title='Web+Developers%3A+Ready+to+use+JavaScript+Sliders+for+your+web+projects'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F02%2F25%2Fweb-developers-ready-to-use-javascript-sliders-for-your-web-projects%2F' data-shr_title='Web+Developers%3A+Ready+to+use+JavaScript+Sliders+for+your+web+projects'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2009%2F02%2F25%2Fweb-developers-ready-to-use-javascript-sliders-for-your-web-projects%2F' data-shr_title='Web+Developers%3A+Ready+to+use+JavaScript+Sliders+for+your+web+projects'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2009/02/25/web-developers-ready-to-use-javascript-sliders-for-your-web-projects/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Onclick of a link open respective Accordion Panel</title><link>http://www.developersnippets.com/2008/12/30/onclick-of-a-link-open-respective-accordion-panel/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=onclick-of-a-link-open-respective-accordion-panel</link> <comments>http://www.developersnippets.com/2008/12/30/onclick-of-a-link-open-respective-accordion-panel/#comments</comments> <pubDate>Tue, 30 Dec 2008 01:40:48 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[JavaScript]]></category><guid isPermaLink="false">http://developersnippets.com/?p=626</guid> <description><![CDATA[Hi guys! I am back with some useful stuff after my Christmas holidays, in this article you can learn how can we enable/show/open respective Accordion Panel onclick of a link that &#8216;anchor link&#8217;. Snippet is simple just copy and paste the same to get the same results or else you can download the same from [...]]]></description> <content:encoded><![CDATA[<p>Hi guys! I am back with some useful stuff after my Christmas holidays, in this article you can learn how can we enable/show/open respective Accordion Panel onclick of a link that &#8216;anchor link&#8217;. Snippet is simple just copy and paste the same to get the same results or else you can download the same from the link provided and enjoy your coding standards in ExtJS.<span id="more-626"></span></p><p>Before looking at the below code just download the respective Ext JS 2.2 SDK on your desktop and just download the below tutorial and save it to this location: ExtJS2.2\examples\<strong>layout</strong> this is because I have not changed the respective relative paths.</p><p><a title="OnClick of a link open respective Accordion Panel - Live Preview" href="http://www.developersnippets.com/snippets/extjs/examples/layout/onclick_of_link_open_accpanel.html">Live Preview</a> | <a title="Download" href="http://www.developersnippets.com/snippets/extjs/download/onclick_open_accpanels.zip">Download</a></p><p><strong>HTML Code:</strong></p><div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;page-title&quot;</span>&gt;</span>OnClick of a link open respective Accordion Panel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../resources/css/ext-all.css&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- GC --&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- LIBS --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../adapter/ext/ext-base.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- ENDLIBS --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../ext-all.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
        html, body {
            font: normal 12px verdana;
            margin: 0;
            padding: 0;
            border: 0 none;
            overflow: hidden;
            height: 100%;
        }
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span></pre></div></div><p><strong>JavaScript Code:</strong></p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
		Ext.<span style="color: #660066;">onReady</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> win <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">Window</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
				renderTo<span style="color: #339933;">:</span> document.<span style="color: #660066;">body</span><span style="color: #339933;">,</span>
				title<span style="color: #339933;">:</span>Ext.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'page-title'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dom</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">,</span>
				width<span style="color: #339933;">:</span><span style="color: #CC0000;">450</span><span style="color: #339933;">,</span>
				height<span style="color: #339933;">:</span><span style="color: #CC0000;">380</span><span style="color: #339933;">,</span>
				plain<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
				layout<span style="color: #339933;">:</span><span style="color: #3366CC;">'accordion'</span><span style="color: #339933;">,</span>
				border<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
				closable<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
				items<span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#123;</span>
					title<span style="color: #339933;">:</span><span style="color: #3366CC;">'Tech Video Bytes'</span><span style="color: #339933;">,</span>
					id<span style="color: #339933;">:</span><span style="color: #3366CC;">'techvideopanel'</span><span style="color: #339933;">,</span>
					bodyStyle<span style="color: #339933;">:</span><span style="color: #3366CC;">'padding:10px'</span><span style="color: #339933;">,</span>
					html<span style="color: #339933;">:</span><span style="color: #3366CC;">'&lt;p&gt;Want to explore your choice of video from all over world at once place! then what are you waiting for, just click, explore and learn.. &lt;a href=&quot;http://www.developersnippets.com/techvideobytes&quot; title=&quot;Tech Video Bytes&quot;&gt;Tech Video Bytes&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Through videos you can Learn Photoshop, Flash, Adobe AIR, ExtJS, jQuery, Ajax, Dojo, HTML, CSS, JavaScript, XML, Accessibility, Database, DWR, Gears, GWT, Java, JSON, MooTools, Office, Perl, PHP, Programming, Prototype, Scriptaculous and more...&lt;/p&gt;'</span>
				<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
					title<span style="color: #339933;">:</span><span style="color: #3366CC;">'Developer Snippets'</span><span style="color: #339933;">,</span>
					id<span style="color: #339933;">:</span><span style="color: #3366CC;">'devpanel'</span><span style="color: #339933;">,</span>
					bodyStyle<span style="color: #339933;">:</span><span style="color: #3366CC;">'padding:10px'</span><span style="color: #339933;">,</span>
					html<span style="color: #339933;">:</span><span style="color: #3366CC;">'&lt;p&gt;Here is the place where you can learn Photoshop, Flash, Adobe AIR, ExtJS, jQuery, Ajax, Dojo, HTML, CSS, JavaScript, XML, Accessibility, Database, DWR, Gears, GWT, Java, JSON, MooTools, Office, Perl, PHP, Programming, Prototype, Scriptaculous and more.... at &lt;a href=&quot;http://www.developersnippets.com&quot; title=&quot;Developer Snippets&quot;&gt;Developer Snippets&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;&lt;p&gt;As the site name depicts, this site is fully related to developers who are starting their career and who want to develop there career in developing some good innovative things. This site not only posts about present technologies and even posts some past development technologies. I am striving hard to give up something useful info to the developers who want to learn online without going to the outside world, the developers can learn some innovative things by sitting and browsing through this site.&lt;/p&gt;&lt;br/&gt;&lt;p&gt;In the long way run, I will deliver the best to the developers who really wish to surge ahead in life on their own without any support from others. So folks rock up your life with your own thoughts and ideas. I look forward to seeing a change in everybodyâ€™s life in the years to come.&lt;/p&gt;'</span>
				<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
					title<span style="color: #339933;">:</span><span style="color: #3366CC;">'JavaScript'</span><span style="color: #339933;">,</span>
					id<span style="color: #339933;">:</span><span style="color: #3366CC;">'javascriptpanel'</span><span style="color: #339933;">,</span>
					bodyStyle<span style="color: #339933;">:</span><span style="color: #3366CC;">'padding:10px'</span><span style="color: #339933;">,</span>
					html<span style="color: #339933;">:</span><span style="color: #3366CC;">'JavaScript loveable language'</span>
				<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>
					title<span style="color: #339933;">:</span><span style="color: #3366CC;">'CSS Styles'</span><span style="color: #339933;">,</span>
					id<span style="color: #339933;">:</span><span style="color: #3366CC;">'csspanel'</span><span style="color: #339933;">,</span>
					bodyStyle<span style="color: #339933;">:</span><span style="color: #3366CC;">'padding:10px'</span><span style="color: #339933;">,</span>
					html<span style="color: #339933;">:</span><span style="color: #3366CC;">'Style'</span>
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
win.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//adding an event listener to a ahref tag			</span>
Ext.<span style="color: #660066;">EventManager</span>.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;devsnippets&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'devpanel'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">expand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> preventDefault<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//adding an event listener to a ahref tag			</span>
Ext.<span style="color: #660066;">EventManager</span>.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;techvideo&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'techvideopanel'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">expand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span> preventDefault<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">// end of function onready</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div><p>Place the below HTML code in Body Tag:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;margin-top:100px; text-align:center;&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;devsnippets&quot;</span>&gt;</span>Developer Snippets<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span> | <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;techvideo&quot;</span>&gt;</span>Tech Video Bytes<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div><p><strong>Updated Code on 2-Dec-2009:</strong><br /> Viewers, if there are more than one link, then firstly add similar &#8216;class&#8217; to all the respective links, like earlier I have not added the &#8216;class&#8217; attribute to the respective links. Below is the HTML code for the same</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;margin-top:100px; text-align:center;&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;devsnippets&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ahreflinks&quot;</span>&gt;</span>Developer Snippets<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span> | <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;techvideo&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ahreflinks&quot;</span>&gt;</span>Tech Video Bytes<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div><p>And I have changed the id&#8217;s of &#8216;devpanel&#8217; to &#8216;devsnippetspanel&#8217; in the JavaScript Code, then in the place of adding <strong>Listeners</strong> for each link, you can replace the same with the below code:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">Ext.<span style="color: #660066;">select</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.ahreflinks'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">on</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    Ext.<span style="color: #660066;">getCmp</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">target</span>.<span style="color: #660066;">id</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;panel&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">expand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>I have updated the respective code in the download and preview versions, please do have a look at it.</p><p><a title="OnClick of a link open respective Accordion Panel - Live Preview" href="http://www.developersnippets.com/snippets/extjs/examples/layout/onclick_of_link_open_accpanel.html">Live Preview</a> | <a title="Download" href="http://www.developersnippets.com/snippets/extjs/download/onclick_open_accpanels.zip">Download</a></p><p>The above code helps us a lot in the case of performance. And I would like to say thanks to &#8216;Claude&#8217; for his valuable comment.</p><div id="attachment_628" class="wp-caption aligncenter" style="width: 477px"><a title="OnClick of a link open respective Accordion Panel - Live Preview" href="http://www.developersnippets.com/snippets/extjs/examples/layout/onclick_of_link_open_accpanel.html"><img class="size-full wp-image-628" style="border:0px;" title="OnClick of a link open respective Accordion Panel" src="http://developersnippets.com/wp-content/uploads/2008/12/onclick_open_accpanel1.jpg" alt="OnClick of a link open respective Accordion Panel" width="467" height="427" /></a><p class="wp-caption-text">OnClick of a link open respective Accordion Panel</p></div><p><a title="OnClick of a link open respective Accordion Panel - Live Preview" href="http://www.developersnippets.com/snippets/extjs/examples/layout/onclick_of_link_open_accpanel.html">Live Preview</a> | <a title="Download" href="http://www.developersnippets.com/snippets/extjs/download/onclick_open_accpanels.zip">Download</a></p><p>Enjoy Coding and Enjoy Holidays!</p><div class="shr-publisher-626"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F30%2Fonclick-of-a-link-open-respective-accordion-panel%2F' data-shr_title='Onclick+of+a+link+open+respective+Accordion+Panel'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F30%2Fonclick-of-a-link-open-respective-accordion-panel%2F' data-shr_title='Onclick+of+a+link+open+respective+Accordion+Panel'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F30%2Fonclick-of-a-link-open-respective-accordion-panel%2F' data-shr_title='Onclick+of+a+link+open+respective+Accordion+Panel'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2008/12/30/onclick-of-a-link-open-respective-accordion-panel/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to open Ext.Panel onClick of a link</title><link>http://www.developersnippets.com/2008/12/23/how-to-open-extpanel-onclick-of-a-link/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-open-extpanel-onclick-of-a-link</link> <comments>http://www.developersnippets.com/2008/12/23/how-to-open-extpanel-onclick-of-a-link/#comments</comments> <pubDate>Tue, 23 Dec 2008 18:25:31 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://developersnippets.com/?p=624</guid> <description><![CDATA[Below script will lets you to open Ext.Panel (that is Panel) onClick of an anchor link. Its really a simple snippet and this will help developers those who are new to Ext JS. Mostly I will be posting these types of snippets as it helps people in learning some new and small tricks on how [...]]]></description> <content:encoded><![CDATA[<p>Below script will lets you to open Ext.Panel (that is Panel) onClick of an anchor link. Its really a simple snippet and this will help developers those who are new to Ext JS. Mostly I will be posting these types of snippets as it helps people in learning some new and small tricks on how we can use respective method or event accordingly.<span id="more-624"></span></p><p>Before looking at the below code just download the respective Ext JS 2.2 SDK on your desktop and just download the below tutorial and save it to this location: ExtJS2.2\examples\<strong>panel </strong>this is because I have not changed the respective relative paths.</p><p><a href="http://www.developersnippets.com/snippets/extjs/examples/panel/onclick_open_panels.html" title="Live Preview: How to open Ext.Panel onClick of a link">Live Preview</a> | <a href="http://www.developersnippets.com/snippets/extjs/download/onclick_open_panels.zip" title="Download: How to open Ext.Panel onClick of a link">Download</a></p><p><strong>HTML Code:</strong><br /> Below is the code were you need to place it in the<Head>&#8230;</Head> Tag.</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../resources/css/ext-all.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- GC --&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- LIBS --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../adapter/ext/ext-base.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- ENDLIBS --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../ext-all.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- Common Styles for the examples --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../shared/examples.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
    .x-panel-body p {
        margin:10px;
    }
    #container {
        padding:10px;
    }
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span></pre></td></tr></table></div><p><strong>JavaScript Code:</strong><br /> JavaScript Code should be placed below this line</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../ext-all.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">Ext.<span style="color: #660066;">onReady</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> mypanel <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">Panel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'My Panel'</span><span style="color: #339933;">,</span>
		collapsible<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
		width<span style="color: #339933;">:</span><span style="color: #CC0000;">500</span><span style="color: #339933;">,</span>
		html<span style="color: #339933;">:</span> Ext.<span style="color: #660066;">example</span>.<span style="color: #660066;">bogusMarkup</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> myButton <span style="color: #339933;">=</span> Ext.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'myHrefIdClick'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		myButton.<span style="color: #660066;">on</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #006600; font-style: italic;">//render the panel to id -&gt; 'container'</span>
			mypanel.<span style="color: #660066;">render</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'container'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//onReady Close</span></pre></td></tr></table></div><p>Below code should be placed in<body>&#8230;</body> tag:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../shared/examples.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><span style="color: #808080; font-style: italic;">&lt;!-- EXAMPLES --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>onClick of a link opens up a Panel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;myHrefIdClick&quot;</span>&gt;</span>Click Here<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div><p>If you would like to view the preview, you can click the below link:<br /> <a href="http://www.developersnippets.com/snippets/extjs/examples/panel/onclick_open_panels.html" title="Live Preview: How to open Ext.Panel onClick of a link">Live Preview</a> | <a href="http://www.developersnippets.com/snippets/extjs/download/onclick_open_panels.zip" title="Download: How to open Ext.Panel onClick of a link">Download</a></p><div class="shr-publisher-624"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F23%2Fhow-to-open-extpanel-onclick-of-a-link%2F' data-shr_title='How+to+open+Ext.Panel+onClick+of+a+link'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F23%2Fhow-to-open-extpanel-onclick-of-a-link%2F' data-shr_title='How+to+open+Ext.Panel+onClick+of+a+link'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F23%2Fhow-to-open-extpanel-onclick-of-a-link%2F' data-shr_title='How+to+open+Ext.Panel+onClick+of+a+link'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2008/12/23/how-to-open-extpanel-onclick-of-a-link/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How to create nested tabs panel using ExtJS</title><link>http://www.developersnippets.com/2008/12/19/how-to-create-nested-tab-panels-using-extjs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-create-nested-tab-panels-using-extjs</link> <comments>http://www.developersnippets.com/2008/12/19/how-to-create-nested-tab-panels-using-extjs/#comments</comments> <pubDate>Fri, 19 Dec 2008 19:28:39 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Featured]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://developersnippets.com/?p=614</guid> <description><![CDATA[I think everybody those who are in web development environment or those who are in the other areas of development, and those who are JavaScript developers might have an idea or aware of this amazing API called &#8216;ExtJS&#8216;, I started working on this since long back and developed some of the projects, in my upcoming [...]]]></description> <content:encoded><![CDATA[<p>I think everybody those who are in web development environment or those who are in the other areas of development, and those who are JavaScript developers might have an idea or aware of this amazing API called &#8216;<strong><a href="http://www.extjs.com/" title="ExtJS">ExtJS</a></strong>&#8216;, I started working on this since long back and developed some of the projects, in my upcoming articles I will post some useful snippets which going to help you guys a lot in implementing some tasks for projects.<span id="more-614"></span></p><p>Below is the simple and sample snippet for creating nested tabs using <a href="http://www.extjs.com/products/extjs" title="Ext JS">Ext JS</a>, after the launch of <a href="http://www.extjs.com/products/extjs" title="Ext JS 2.2 SDK">Ext JS 2.2 SDK</a> I started working on some simple projects, I have download the latest Ext JS 2.2 SDK from <a href="http://www.extjs.com/products/extjs/download.php" title="download">download page</a>. So Guys! before looking at the below code just download the respective Ext JS 2.2 SDK on your desktop and just download the below tutorial and save it to this location: ExtJS2.2\examples\<strong>tabs</strong> this is because I have not changed the respective relative paths.</p><p><strong><a href="http://www.developersnippets.com/snippets/extjs/examples/tabs/nestedtabs.html" title="Live Preview">Live Preview</a></strong> | <strong><a href="http://www.developersnippets.com/snippets/extjs/download/nestedtabs.zip" title="Download">Download</a></strong></p><p>Below code should be placed in between of<head>&#8230;.</head></p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../resources/css/ext-all.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- GC --&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- LIBS --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../adapter/ext/ext-base.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- ENDLIBS --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../../ext-all.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- Tabs Example Files --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabs-example.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- Common Styles for the examples --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../shared/examples.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></td></tr></table></div><p>Below code should be placed in between of<body>&#8230;.</body></p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Nested Tab Panel Example<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>Nested Tabs with auto height that resize to the content.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- container for the existing markup tabs --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabsContainer&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;parentTab1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;x-hide-display&quot;</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- Sub Tabs --&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;childTab1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;x-hide-display&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed metus nibh, sodales a, porta at, vulputate eget, dui. Pellentesque ut nisl. Maecenas tortor turpis, interdum non, sodales non, iaculis ac, lacus.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;childTab2&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;x-hide-display&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed metus nibh, sodales a, porta at, vulputate eget, dui. Pellentesque ut nisl. Maecenas tortor turpis, interdum non, sodales non, iaculis ac, lacus.<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span><span style="color: #66cc66;">/</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span><span style="color: #66cc66;">/</span>&gt;</span>
        Vestibulum auctor, tortor quis iaculis malesuada, libero lectus bibendum purus, sit amet tincidunt quam turpis vel lacus. In pellentesque nisl non sem. Suspendisse nunc sem, pretium eget, cursus a, fringilla vel, urna.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- Sub Tabs --&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;parentTab2&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;x-hide-display&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed metus nibh, sodales a, porta at, vulputate eget, dui. Pellentesque ut nisl. Maecenas tortor turpis, interdum non, sodales non, iaculis ac, lacus.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- Sub Tabs --&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;childTab3&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;x-hide-display&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed metus nibh, sodales a, porta at, vulputate eget, dui. Pellentesque ut nisl. Maecenas tortor turpis, interdum non, sodales non, iaculis ac, lacus.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;childTab4&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;x-hide-display&quot;</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed metus nibh, sodales a, porta at, vulputate eget, dui. Pellentesque ut nisl. Maecenas tortor turpis, interdum non, sodales non, iaculis ac, lacus.<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span><span style="color: #66cc66;">/</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span><span style="color: #66cc66;">/</span>&gt;</span>
        Vestibulum auctor, tortor quis iaculis malesuada, libero lectus bibendum purus, sit amet tincidunt quam turpis vel lacus. In pellentesque nisl non sem. Suspendisse nunc sem, pretium eget, cursus a, fringilla vel, urna.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- Sub Tabs --&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div><p>Below is the respective JavaScript code for the tabs to rendered. Copy &#038; paste the same just below this line</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;../shared/examples.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></td></tr></table></div><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript&quot;</span><span style="color: #339933;">&gt;</span>
Ext.<span style="color: #660066;">onReady</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">//parent tabs</span>
    <span style="color: #003366; font-weight: bold;">var</span> tabs <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">TabPanel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        renderTo<span style="color: #339933;">:</span> <span style="color: #3366CC;">'tabsContainer'</span><span style="color: #339933;">,</span>
        width<span style="color: #339933;">:</span><span style="color: #CC0000;">450</span><span style="color: #339933;">,</span>
        activeTab<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
        frame<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        defaults<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>autoHeight<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        items<span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span>
            <span style="color: #009900;">&#123;</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'parentTab1'</span><span style="color: #339933;">,</span> title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Parent Tab1'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
            <span style="color: #009900;">&#123;</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'parentTab2'</span><span style="color: #339933;">,</span> title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Parent Tab2'</span><span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#93;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//subtabs</span>
	<span style="color: #003366; font-weight: bold;">var</span> subtabs <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">TabPanel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        renderTo<span style="color: #339933;">:</span> <span style="color: #3366CC;">'parentTab1'</span><span style="color: #339933;">,</span>
        autoWidth<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        activeTab<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
        frame<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        defaults<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>autoHeight<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        items<span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span>
            <span style="color: #009900;">&#123;</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'childTab1'</span><span style="color: #339933;">,</span> title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Sub Tab1'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
            <span style="color: #009900;">&#123;</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'childTab2'</span><span style="color: #339933;">,</span> title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Sub Tab2'</span><span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#93;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//subtabs</span>
	<span style="color: #003366; font-weight: bold;">var</span> subtabs <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">TabPanel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        renderTo<span style="color: #339933;">:</span> <span style="color: #3366CC;">'parentTab2'</span><span style="color: #339933;">,</span>
        autoWidth<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        activeTab<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
        frame<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        defaults<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>autoHeight<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
        items<span style="color: #339933;">:</span><span style="color: #009900;">&#91;</span>
            <span style="color: #009900;">&#123;</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'childTab3'</span><span style="color: #339933;">,</span> title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Sub Tab3'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
            <span style="color: #009900;">&#123;</span>contentEl<span style="color: #339933;">:</span><span style="color: #3366CC;">'childTab4'</span><span style="color: #339933;">,</span> title<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Sub Tab4'</span><span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#93;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div><p><strong>Below is the snap shot of the same:</strong></p><div id="attachment_615" class="wp-caption aligncenter" style="width: 470px"><a href="http://www.developersnippets.com/snippets/extjs/examples/tabs/nestedtabs.html" title="Nested Tabs"><img src="http://developersnippets.com/wp-content/uploads/2008/12/nestedtabs.jpg" alt="Nested Tabs" title="nestedtabs" width="460" height="250" class="size-full wp-image-615" style="border:0px;"/></a><p class="wp-caption-text">Nested Tabs</p></div><p> <strong><a href="http://www.developersnippets.com/snippets/extjs/examples/tabs/nestedtabs.html" title="Live Preview">Live Preview</a></strong> | <strong><a href="http://www.developersnippets.com/snippets/extjs/download/nestedtabs.zip" title="Download">Download</a></strong></p><div class="shr-publisher-614"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F19%2Fhow-to-create-nested-tab-panels-using-extjs%2F' data-shr_title='How+to+create+nested+tabs+panel+using+ExtJS'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F19%2Fhow-to-create-nested-tab-panels-using-extjs%2F' data-shr_title='How+to+create+nested+tabs+panel+using+ExtJS'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F19%2Fhow-to-create-nested-tab-panels-using-extjs%2F' data-shr_title='How+to+create+nested+tabs+panel+using+ExtJS'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2008/12/19/how-to-create-nested-tab-panels-using-extjs/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Ext GWT 1.2 has been released</title><link>http://www.developersnippets.com/2008/12/02/ext-gwt-12-has-been-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ext-gwt-12-has-been-released</link> <comments>http://www.developersnippets.com/2008/12/02/ext-gwt-12-has-been-released/#comments</comments> <pubDate>Tue, 02 Dec 2008 16:43:29 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Programming]]></category><guid isPermaLink="false">http://developersnippets.com/?p=529</guid> <description><![CDATA[All Ext GWT users here is a good news, now Ext GWT 1.2 has been released (means the Ext GWT 1.1 has been upgraded with new features and released as 1.2), Yesterday that is on Dec 1, Darell has officially announced the release of Ext GWT 1.2, and explained about the new features in the [...]]]></description> <content:encoded><![CDATA[<p>All Ext GWT users here is a good news, now Ext GWT 1.2 has been released (means the Ext GWT 1.1 has been upgraded with new features and released as 1.2), Yesterday that is on Dec 1, Darell has officially announced the release of <a href="http://extjs.com/blog/2008/12/01/ext-gwt-12-released" title="Ext GWT 1.2">Ext GWT 1.2</a>, and explained about the new features in the blog. And he has recommended all the respective users of Ext GWT 1.1 users to upgrade the same to the latest version that is Ext GWT 1.2 now!<span id="more-529"></span></p><p><strong>These new features includes:</strong><br /> <strong>Drag and Drop:</strong><br /> In this version of Ext GWT 1.2 it has got a new Drag and Drop (DND) framework. Respective Support is added via the DragSource and DroptTarget classes with specialized subclasses for Grid, Trees, and Lists. The DND code exposes a rich event model to allow precise control of your DND operations.</p><p><strong>Form Data Binding:</strong><br /> With the new data binding framework, your model can be &#8220;bound&#8221; to forms and fields. The relationship is bi-directional with updates propagating in both directions.</p><p><strong>File Upload</strong><br /> This version introduces a few new fields including the FileUploadField which allows files to be uploaded to the server via standard HTML form submissions.</p><p><strong>Examples:</strong></p><div id="attachment_530" class="wp-caption alignleft" style="width: 460px"><a href="http://extjs.com/examples"><img src="http://developersnippets.com/wp-content/uploads/2008/12/ext_gwt_1_2.jpg" alt="Ext GWT 1.2" title="ext_gwt_1_2" width="450" height="140" class="size-full wp-image-530" /></a><p class="wp-caption-text">Ext GWT 1.2</p></div><p>For Notable new examples are added to the demo applications and which includes <a href="http://extjs.com/examples/dnd/gridtogrid.html" title="Grid to Grid DND">Grid to Grid DND</a>, <a href="http://extjs.com/examples/dnd/reorderingtree.html" title="Reordering Tree">Reordering Tree</a>, <a href="http://extjs.com/examples/dnd/imageorganizer.html" title="Image Organizer">Image Organizer</a>, <a href="http://extjs.com/examples/binding/gridbinding.html" title="Grid Binding">Grid Binding</a>, <a href="http://extjs.com/examples/forms/duallistfield.html" title="DualListField">DualListField</a> and <a href="http://extjs.com/examples" title="More Examples">more examples in action</a></p><p><strong>Download:</strong><br /> To download respective Ext GWT 1.2 please visit the Ext GWT <a href="http://extjs.com/products/gxt/download.php" title="download">download page</a>. And for the release notes you can click <a href="http://extjs.com/deploy/gxt-1.2/release_notes.html" title="Release Notes">here</a>.</p><div class="shr-publisher-529"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F02%2Fext-gwt-12-has-been-released%2F' data-shr_title='Ext+GWT+1.2+has+been+released'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F02%2Fext-gwt-12-has-been-released%2F' data-shr_title='Ext+GWT+1.2+has+been+released'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F12%2F02%2Fext-gwt-12-has-been-released%2F' data-shr_title='Ext+GWT+1.2+has+been+released'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2008/12/02/ext-gwt-12-has-been-released/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Mechanism of testing Ext JS Applications with Selenium</title><link>http://www.developersnippets.com/2008/11/08/mechanism-of-testing-ext-js-applications-with-selenium/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mechanism-of-testing-ext-js-applications-with-selenium</link> <comments>http://www.developersnippets.com/2008/11/08/mechanism-of-testing-ext-js-applications-with-selenium/#comments</comments> <pubDate>Sat, 08 Nov 2008 15:53:09 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Addons]]></category> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[IDE Tool]]></category><guid isPermaLink="false">http://developersnippets.com/?p=441</guid> <description><![CDATA[Selenium provides a mechanism to test Ext JS applications, Selenium works by executing tests against your running application within the browser of your choice. Darrell Meyer from Ext JS has written a detailed brief description about the tool in the respective blog titled &#8220;Testing Ext JS &#038; Ext GWT Applications With Selenium&#8220;. He explained about [...]]]></description> <content:encoded><![CDATA[<p><a href="http://selenium.openqa.org/" title="Selenium">Selenium</a> provides a mechanism to test Ext JS applications, Selenium works by executing tests against your running application within the browser of your choice. Darrell Meyer from Ext JS has written a detailed brief description about the tool in the respective blog titled &#8220;<a href="http://extjs.com/blog/2008/11/03/testing-ext-js-ext-gwt-applications-with-selenium/" title="Testing Ext JS &#038; Ext GWT Applications With Selenium">Testing Ext JS &#038; Ext GWT Applications With Selenium</a>&#8220;. He explained about how we can create Selenium tests and execute them in a variety of ways. The respective article demonstrates on creating tests with Selenium IDE, a Firefox plugin, and creating tests within Java. Tests will be loaded and executed within the Selenium IDE, and Java JUnit tests will be executed using Selenium Remote Control.<span id="more-441"></span></p><p>If you would like to know more about Selenium, then please do visit <a href="http://extjs.com/blog/2008/11/03/testing-ext-js-ext-gwt-applications-with-selenium/" title="ExtJS">ExtJS</a> for brief description on how we are going to test our own Ext JS applications.</p><div id="attachment_442" class="wp-caption alignleft" style="width: 461px"><a href="http://selenium-ide.openqa.org/download.jsp" style="border:0px;"><img src="http://developersnippets.com/wp-content/uploads/2008/11/selenium-ide3.gif" alt="Selenium IDE" title="selenium-ide3" width="451" height="414" class="size-full wp-image-442" style="border:0px;" /></a><p class="wp-caption-text">Selenium IDE</p></div><p><strong>Reference:</strong><br /> For reference of respective test lists please do <a href="http://selenium-core.openqa.org/reference.html" title="Reference">click here</a></p><p><strong>Installation of Selenium IDE:</strong><br /> If you want to install the same then please do <a href="http://selenium-ide.openqa.org/download.jsp" title="download">download</a> ) the same and while installing follow the steps carefully.</p><div class="shr-publisher-441"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F11%2F08%2Fmechanism-of-testing-ext-js-applications-with-selenium%2F' data-shr_title='Mechanism+of+testing+Ext+JS+Applications+with+Selenium'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F11%2F08%2Fmechanism-of-testing-ext-js-applications-with-selenium%2F' data-shr_title='Mechanism+of+testing+Ext+JS+Applications+with+Selenium'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F11%2F08%2Fmechanism-of-testing-ext-js-applications-with-selenium%2F' data-shr_title='Mechanism+of+testing+Ext+JS+Applications+with+Selenium'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2008/11/08/mechanism-of-testing-ext-js-applications-with-selenium/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Widgets in the arena of the internet technology</title><link>http://www.developersnippets.com/2008/10/25/widgets-in-the-arena-of-the-internet-technology/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=widgets-in-the-arena-of-the-internet-technology</link> <comments>http://www.developersnippets.com/2008/10/25/widgets-in-the-arena-of-the-internet-technology/#comments</comments> <pubDate>Sat, 25 Oct 2008 18:11:39 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Addons]]></category> <category><![CDATA[AJAX]]></category> <category><![CDATA[Ext JS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Technology News]]></category> <category><![CDATA[Thoughts to Think about]]></category> <category><![CDATA[Widgets]]></category><guid isPermaLink="false">http://developersnippets.com/?p=340</guid> <description><![CDATA[Internet technology has undergone a dramatic change since the day of its launch. The kind of growth that the internet has enjoyed in the last decade is incredible. Especially an internet technology like the cloud computing is an awesome one. On-demand services have become the most favorite service of the next generation. While internet technologies [...]]]></description> <content:encoded><![CDATA[<p>Internet technology has undergone a dramatic change since the day of its launch. The kind of growth that the internet has enjoyed in the last decade is incredible. Especially an internet technology like the cloud computing is an awesome one. On-demand services have become the most favorite service of the next generation. While internet technologies like the <strong><a href="http://en.wikipedia.org/wiki/Software_as_a_Service" title="Software as a service (SaaS)">Software as a service (SaaS)</a></strong> and <strong><a href="http://en.wikipedia.org/wiki/Platform_as_a_service">Platform as a service (PaaS)</a></strong> gained true momentum, widgets of the internet too have been in vogue enticing and helping both visitors and website owners to achieve their goals. This article will enlighten you on the importance of these wonder working web tools.</p><p><span id="more-340"></span></p><p>Knowledge on demand has become the ultimate purpose of many websites. Widgets are nothing but mini-applications, which provide effective solutions to visitors&#8217; needs. Widgets of modern times play a crucial role in making the website a magical stage where you get instant answers for your queries. Apart from making a website interesting and interactive one, they provide instant information on news, entertainment, weather, calculations, and many more.</p><p>As today&#8217;s web visitors expect more and more from websites, and widgets have become an absolute necessity in order to retain the visitors for a longer period or entice more visitors to your site. If you really want a high traffic to your site, just place a few gadgets that are of great interest to your visitors. Of late, widgets have started attracting web visitors of all ages, and it has been proved that useful and simple widgets increase the traffic of websites in multi-folds. One other specialty of widgets is that users can get easy access to information available on the internet without visiting specific websites. <strong>YouTube videos</strong>, <strong>movie trailers</strong>, <strong>photo slideshows</strong>, <strong>news widgets</strong> are some of the popular widgets for blog sites and websites. Desktop widgets on the other hand can be downloaded and used to access information without having to visit the website. Some of the good examples include the weather gadget offered on websites that forecast weather, new feeds, maps, pictures, videos, and music.</p><p>It is a good idea for website promotion too! Do you know that widgets are great marketing tools in the arena of internet marketing? Well, here are a few points on the marketing capability of the widgets. Instead of placing banner ads, website owners can opt for a useful widget that bears the name of the company on it. As it is an interactive tool that provides a service, you are likely to draw more targeted traffic than your banner ads can bring in. Moreover, allowing users to share the widget gets you more inbound links that is a great plus when it comes to search engine optimization for higher page ranking.</p><p>Using widgets on you blog could enhance the looks and usability of your blog site. Apart from providing the blog with great looks, it can draw the attention of the visitors to a large extent. For example, blog widgets like <a href="http://www.twitter.com" title="Twitter">Twitter</a> or <a href="http://www.plurk.com" title="Plurk">Plurk</a> on your site will enable your visitors to know what you do, or even help them subscribe to your blog or follow it.</p><p>In order to help developers in learning more about the widgets, there are number of dedicated websites that provide useful information on widgets. These websites explain in detail about the widget and its uses. One good example is <a href="http://www.developersnippets.com" title="developersnippets">developersnippets.com</a>. You can find a good number of snippet articles that are from basic to high-level. This site helps young developers wishing to have fruitful career in developing innovative web products.</p><p><strong>CloudComputing:</strong><br /><div id="attachment_342" class="wp-caption alignleft" style="width: 268px"><a href="http://en.wikipedia.org/wiki/Software_as_a_Service"><img src="http://developersnippets.com/wp-content/uploads/2008/10/cloud_computing.jpg" alt="SaaS and Cloud Computing" title="cloud_computing" width="258" height="494" class="size-full wp-image-342" /></a><p class="wp-caption-text">Cloud Computing</p></div></p><div class="shr-publisher-340"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F25%2Fwidgets-in-the-arena-of-the-internet-technology%2F' data-shr_title='Widgets+in+the+arena+of+the+internet+technology'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F25%2Fwidgets-in-the-arena-of-the-internet-technology%2F' data-shr_title='Widgets+in+the+arena+of+the+internet+technology'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F25%2Fwidgets-in-the-arena-of-the-internet-technology%2F' data-shr_title='Widgets+in+the+arena+of+the+internet+technology'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2008/10/25/widgets-in-the-arena-of-the-internet-technology/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Free JavaScript database for your browser, Taffy DB</title><link>http://www.developersnippets.com/2008/10/19/free-javascript-database-for-your-browser-taffy-db/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=free-javascript-database-for-your-browser-taffy-db</link> <comments>http://www.developersnippets.com/2008/10/19/free-javascript-database-for-your-browser-taffy-db/#comments</comments> <pubDate>Sun, 19 Oct 2008 11:33:31 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[AJAX]]></category> <category><![CDATA[Databases]]></category> <category><![CDATA[Ext JS]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[YUI]]></category> <category><![CDATA[API]]></category><guid isPermaLink="false">http://developersnippets.com/?p=332</guid> <description><![CDATA[Taffy DB, which is well known JavaScript database for your browser, and which is a free and opensource JavaScript Library which acts as a thin layer inside Web 2.0 and Ajax applications. Unique features are: * Under 10K! * Simple, JavaScript Centric Syntax * Fast * Easy to include in any web application * Compatible [...]]]></description> <content:encoded><![CDATA[<p><a href="http://taffydb.com/" title="Taffy DB">Taffy DB</a>, which is well known JavaScript database for your browser, and which is a free and opensource JavaScript Library which acts as a thin layer inside Web 2.0 and <a href="http://developersnippets.com/2007/05/19/snippet-code-for-simple-ajax-tabs-with-cool-css-styles/" title="Snippet Code for Simple Ajax Tabs with cool CSS Styles">Ajax applications</a>.<span id="more-332"></span><br /> <strong>Unique features are:</strong></p><blockquote><p> * Under 10K!<br /> * Simple, JavaScript Centric Syntax<br /> * Fast<br /> * Easy to include in any web application<br /> * Compatible with major Ajax libraries: YUI, JQuery, Dojo, Prototype, EXT, etc<br /> * CRUD Interface (Create, Read, Update, Delete)<br /> * Sorting<br /> * Looping<br /> * Advanced Queries</p></blockquote><p>We can think this as a SQL database in our web browser. If you would like to know more about the same then please do have a look at here &#8211; <a href="http://taffydb.com/index.cfm?oa=gettingstarted" title="Getting Started">Getting Started</a><br /> Below are the few example snippets on how we are going to implement and utilize the same:<br /> <strong>Example #1: </strong><br /> Let&#8217;s say you have a collection of products and you want to find every product that costs less $10 and is a book. Simple, just write some JavaScript:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">products.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>price<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>lessthan<span style="color: #339933;">:</span><span style="color: #CC0000;">10</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>type<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Book&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p><strong>Example #2:</strong><br /> Let&#8217;s say you want to update every product from XZYDesign and set the status to not available:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">products.<span style="color: #660066;">update</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">status</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;NA&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>manufacturer<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;XZYDesign&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p><strong>Example #3:</strong><br /> Let&#8217;s say you want to sort your products based on type, price descending, and quantity descending:</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">products.<span style="color: #660066;">orderBy</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;type&quot;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">&quot;price&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;desc&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">&quot;quantity&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;desc&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>If you would like to know more about the same then please do have a look at here &#8211; <a href="http://taffydb.com/index.cfm?oa=gettingstarted" title="Getting Started">Getting Started</a></p><p><a href="http://taffydb.com/index.cfm?oa=download" title="Download Taffy DB">Download Taffy DB</a><br /> <a href="http://taffydb.com/index.cfm?oa=feedback" title="Feedback/Bugs">Feedback/Bugs</a><br /> <a href="http://taffydb.com/index.cfm?oa=faq" title="FAQ">FAQ</a></p><p>Articles which you would like to read:<br /> <a href="http://developersnippets.com/2008/08/31/system-error-1072896658-in-ie/" title="System Error: -1072896658 in IE">System Error: -1072896658 in IE</a><br /> <a href="http://developersnippets.com/2008/08/16/simple-steps-to-develop-ajax-website-%e2%80%93-developersnippets/" title="Simple steps to develop AJAX Website – DeveloperSnippets">Simple steps to develop AJAX Website – DeveloperSnippets</a><br /> <a href="http://developersnippets.com/2007/05/19/snippet-code-for-simple-ajax-tabs-with-cool-css-styles/" title="Snippet Code for Simple Ajax Tabs with cool CSS Styles">Snippet Code for Simple Ajax Tabs with cool CSS Styles</a><br /> <a href="http://developersnippets.com/2007/05/14/a-simple-snippet-code-to-learn-basics-of-ajax/" title="A simple snippet code to learn basics of Ajax">A simple snippet code to learn basics of Ajax</a></p><div class="shr-publisher-332"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F19%2Ffree-javascript-database-for-your-browser-taffy-db%2F' data-shr_title='Free+JavaScript+database+for+your+browser%2C+Taffy+DB'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F19%2Ffree-javascript-database-for-your-browser-taffy-db%2F' data-shr_title='Free+JavaScript+database+for+your+browser%2C+Taffy+DB'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F19%2Ffree-javascript-database-for-your-browser-taffy-db%2F' data-shr_title='Free+JavaScript+database+for+your+browser%2C+Taffy+DB'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2008/10/19/free-javascript-database-for-your-browser-taffy-db/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Ext JS Flickr Image Gallery widget</title><link>http://www.developersnippets.com/2008/10/17/ext-js-flickr-image-gallery-widget/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ext-js-flickr-image-gallery-widget</link> <comments>http://www.developersnippets.com/2008/10/17/ext-js-flickr-image-gallery-widget/#comments</comments> <pubDate>Fri, 17 Oct 2008 18:50:32 +0000</pubDate> <dc:creator>admin</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Yahoo]]></category> <category><![CDATA[Flickr]]></category> <category><![CDATA[Widgets]]></category><guid isPermaLink="false">http://developersnippets.com/2008/10/17/ext-js-flickr-image-gallery-widget/</guid> <description><![CDATA[As we all know that Ext JS is rocking all the way in the World of Web, today there was an article from Evan Trimboli regarding &#8220;Ext Flickr Image Gallery&#8221; and as we know Flickr is a popular image sharing tool and do people daily share there images to their loved ones and it allow [...]]]></description> <content:encoded><![CDATA[<p>As we all know that Ext JS is rocking all the way in the World of Web, today there was an article from <strong>Evan Trimboli </strong>regarding &#8220;<strong>Ext Flickr Image Gallery</strong>&#8221; and as we know <a href="http://www.flickr.com" title="Flickr">Flickr</a> is a popular image sharing tool and do people daily share there images to their loved ones and it allow users to create online photo albums and the ability to categorize and tag photos.</p><p>The respective application will retrieve data from <a href="http://www.flickr.com" title="Flickr">Flickr</a> by extending Ext&#8217;s native data package to display an image gallery. This image gallery widget will support search ability as well we can search images based on how they are tagged inside <a href="http://www.flickr.com" title="Flickr">Flickr</a>.<span id="more-328"></span></p><p><strong>Getting Started</strong>, firstly we need have an API key, the API key is sent with all requests and its used to identify the caller. Its a free of cost to get the API key, just follow this URL &#8211; <a href="http://www.flickr.com/services/api/keys/" title="Flickr API Key">http://www.flickr.com/services/api/keys/</a> and it will ask for <a href="http://developersnippets.com/2008/06/23/now-yahoo-mail-comes-with-two-new-email-addresses/" title="Now Yahoo Mail! comes with two new email addresses">yahoo&#8217;s</a> authentication and proceed further to get your own API key. After getting your own API key then just do follow respective steps can be viewed at this URL &#8211; <a href="http://extjs.com/blog/2008/10/17/ext-flickr-image-gallery/" title="Extending Reader and Proxy - An Ext Flickr Image Gallery">http://extjs.com/blog/2008/10/17/ext-flickr-image-gallery/</a> to built your own widget.</p><p><strong>Live Demo:</strong><br /> If you would like to see the demo, then below is the link for the same its awesome! really awesome enough&#8230; <a href="http://extjs.com/playpen/flickr/flickr.html" title="Live Demo">http://extjs.com/playpen/flickr/flickr.html</a></p><p><a href="http://extjs.com/playpen/flickr/flickr.html" style="border:0px;"><img src="http://developersnippets.com/wp-content/uploads/2008/10/extjs_flickr.jpg" alt="Ext JS Flickr Image Gallery Widget" style="border:0px;" /></a></p><p>This widget can be placed on your websites or on your rocking blogs.</p><div class="shr-publisher-328"></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F17%2Fext-js-flickr-image-gallery-widget%2F' data-shr_title='Ext+JS+Flickr+Image+Gallery+widget'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F17%2Fext-js-flickr-image-gallery-widget%2F' data-shr_title='Ext+JS+Flickr+Image+Gallery+widget'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.developersnippets.com%2F2008%2F10%2F17%2Fext-js-flickr-image-gallery-widget%2F' data-shr_title='Ext+JS+Flickr+Image+Gallery+widget'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://www.developersnippets.com/2008/10/17/ext-js-flickr-image-gallery-widget/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 11/124 queries in 4.480 seconds using disk: basic
Object Caching 5839/6039 objects using disk: basic

Served from: www.developersnippets.com @ 2012-02-04 01:50:23 -->
