<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>edselweb&#039;s fun stuff</title>
	<atom:link href="http://edselweb.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://edselweb.wordpress.com</link>
	<description>A blog for new web skills</description>
	<lastBuildDate>Wed, 15 Dec 2010 15:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='edselweb.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>edselweb&#039;s fun stuff</title>
		<link>http://edselweb.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://edselweb.wordpress.com/osd.xml" title="edselweb&#039;s fun stuff" />
	<atom:link rel='hub' href='http://edselweb.wordpress.com/?pushpress=hub'/>
		<item>
		<title>jQuery Double Scroller Slideshow</title>
		<link>http://edselweb.wordpress.com/2010/12/15/jquery-double-scroller-slideshow/</link>
		<comments>http://edselweb.wordpress.com/2010/12/15/jquery-double-scroller-slideshow/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 15:24:33 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=162</guid>
		<description><![CDATA[The following jquery slideshow is created using two scrollers, one for the main scroller, and one for the navigation scroller. Code for main scroller: var main_api = $(&#8220;div.main_scrollable&#8221;).scrollable({ mousewheel: false, api: true, speed: 400, prev: &#8220;.main_prev&#8221;, next: &#8220;.main_next&#8221;, clickable: &#8220;true&#8221; }); Code for navigation scroller: var thumbs_api = $(&#8220;div.nav_scrollable&#8221;).scrollable({ mousewheel: false, api: true, speed: 400, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=162&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following jquery slideshow is created using two scrollers, one for the main scroller, and one for the navigation scroller.</p>
<p>Code for main scroller:</p>
<p><span style="color:#ff0000;">var main_api = $(&#8220;div.main_scrollable&#8221;).scrollable({</span><br />
<span style="color:#ff0000;"> mousewheel: false,</span><br />
<span style="color:#ff0000;"> api: true,</span><br />
<span style="color:#ff0000;"> speed: 400,</span><br />
<span style="color:#ff0000;"> prev: &#8220;.main_prev&#8221;, </span><br />
<span style="color:#ff0000;"> next: &#8220;.main_next&#8221;,</span><br />
<span style="color:#ff0000;"> clickable: &#8220;true&#8221;</span><br />
<span style="color:#ff0000;"> });</span><br />
Code for navigation scroller:</p>
<p><span style="color:#ff0000;">var thumbs_api = $(&#8220;div.nav_scrollable&#8221;).scrollable({</span><br />
<span style="color:#ff0000;"> mousewheel: false,</span><br />
<span style="color:#ff0000;"> api: true,</span><br />
<span style="color:#ff0000;"> speed: 400,</span><br />
<span style="color:#ff0000;"> prev: &#8220;.thumb_prev&#8221;, </span><br />
<span style="color:#ff0000;"> next: &#8220;.thumb_next&#8221;,</span><br />
<span style="color:#ff0000;"> items: &#8220;img.thumb&#8221;</span><br />
<span style="color:#ff0000;"> })</span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;">Code to help restict number of thumbnails appearing:</span></span></p>
<p><span style="color:#ff0000;">.onSeek(function(){</span><br />
<span style="color:#ff0000;"> //this help to keep the number of thumbnails restricted</span><br />
<span style="color:#ff0000;"> var size = 5;</span><br />
<span style="color:#ff0000;"> if (this.getIndex() &gt;= this.getSize() &#8211; size) {</span><br />
<span style="color:#ff0000;"> this.seekTo(this.getSize() &#8211; size); </span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> });</span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;">Code </span></span>to set fading on all thumbs except the one at index<span style="color:#ff0000;">:</span></p>
<p><span style="color:#ff0000;">thumbs_api.setFade = function(index) {</span><br />
<span style="color:#ff0000;"> thumbs_api.getItems().fadeTo(&#8220;fast&#8221;,0.4); </span><br />
<span style="color:#ff0000;"> thumbs_api.getItems().eq(index).stop().fadeTo(&#8220;fast&#8221;,1); </span><br />
<span style="color:#ff0000;"> };</span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;">the rest of the code with comments:</span></span></p>
<p>// the initial state<br />
<span style="color:#ff0000;">thumbs_api.setFade(0);</span></p>
<p><span style="color:#ff0000;">thumbs_api.vps = 4;</span> // viewport size for thumbs</p>
<p>// &#8211; scroll the main scrollable according to the clicks on the thumbs<br />
// &#8211; set the fading to thumbs accordingly<br />
// Rem.<br />
//   &#8211; clickable has been removed from the scrollable API:<br />
//     -&gt; we use &#8216;each&#8217; from JQuery to associate the callback to each thumb, including<br />
//        a counter at each call<br />
//   &#8211; We can use seekTo to scroll the main scrollable as it presents only<br />
//     a single image in its viewport<br />
<span style="color:#ff0000;">$(&#8220;img.thumb&#8221;).each(function(count) { </span><br />
<span style="color:#ff0000;"> $(this).click(function () {</span><br />
<span style="color:#ff0000;"> thumbs_api.clicked = true;</span><br />
<span style="color:#ff0000;"> thumbs_api.setFade(count);</span><br />
<span style="color:#ff0000;"> main_api.seekTo(count);</span><br />
<span style="color:#ff0000;"> index = thumbs_api.getIndex(); // first visible thumb</span><br />
<span style="color:#ff0000;"> size = thumbs_api.getSize();   // number of thumbs</span><br />
<span style="color:#ff0000;"> if (index == count) {</span><br />
<span style="color:#ff0000;"> thumbs_api.move(-2);</span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> else if (index == count &#8211; 1) {</span><br />
<span style="color:#ff0000;"> thumbs_api.prev();</span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> else if (index &lt;= count &#8211; thumbs_api.vps + 1) {</span><br />
<span style="color:#ff0000;"> if (size &#8211; index &#8211; thumbs_api.vps &gt;= 2) {</span><br />
<span style="color:#ff0000;"> thumbs_api.move(2);</span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> else if (size &#8211; index &#8211; thumbs_api.vps &gt;= 1) {</span><br />
<span style="color:#ff0000;"> thumbs_api.next();</span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> else if (index &lt;= count &#8211; thumbs_api.vps + 2) {</span><br />
<span style="color:#ff0000;"> if (size &#8211; index &#8211; thumbs_api.vps &gt;= 1) {</span><br />
<span style="color:#ff0000;"> thumbs_api.next();</span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> }); </span><br />
<span style="color:#ff0000;"> });</span><br />
// &#8211; scroll the thumb scrollable according to the scroll of the main<br />
//   scrollable when it is scroll directly (click on the image, use of<br />
//   the mousewheel or the main control buttons)<br />
// Rem.<br />
//   &#8211; onBeforeSeek callback is called at each time the main scrollable<br />
//     is scrolled, even when it is due to a thumb click. We use a state<br />
//     variable to avoid double effects<br />
//   &#8211; requires scrollable 1.1.1 (bugfix on callback for onSeek and<br />
//     onBeforeSeek)<br />
<span style="color:#ff0000;">main_api.onBeforeSeek(function (jq_event, index){</span><br />
<span style="color:#ff0000;"> if (! thumbs_api.clicked) {</span><br />
<span style="color:#ff0000;"> thumbs_api.setFade(index);</span><br />
<span style="color:#ff0000;"> thumbs_api.seekTo(index);</span><br />
<span style="color:#ff0000;"> }</span><br />
<span style="color:#ff0000;"> });</span></p>
<p>// reset the state variable after each main scroll<br />
<span style="color:#ff0000;">main_api.onSeek(function (jq_event, index){</span><br />
<span style="color:#ff0000;"> thumbs_api.clicked = false;</span><br />
<span style="color:#ff0000;"> });</span></p>
<p><span style="color:#ff0000;"><span style="color:#000000;">Showcase of the completed double scroller slideshow:</span></span><br />
<a href="http://www.edselweb.com/fun-stuff/jquery/doubleScrollerSlideShow/doubleScrollerSlideShow.htm" target="_blank"></p>
<p>http://www.edselweb.com/fun-stuff/jquery/doubleScrollerSlideShow/doubleScrollerSlideShow.htm</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=162&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2010/12/15/jquery-double-scroller-slideshow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript Error ‘expected identifier, string or number’ in IE</title>
		<link>http://edselweb.wordpress.com/2010/12/15/javascript-error-%e2%80%98expected-identifier-string-or-number%e2%80%99-in-ie/</link>
		<comments>http://edselweb.wordpress.com/2010/12/15/javascript-error-%e2%80%98expected-identifier-string-or-number%e2%80%99-in-ie/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 10:59:18 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=157</guid>
		<description><![CDATA[I just can&#8217;t resist myself to blog this, as this is one of the most annoying error I found in IE.  When I was testing a Jquery Code I&#8217;m writing, Firefox worked without a hitch, but IE threw an &#8216;expected identifier, string or number&#8217; error pointing to the last line of the variable declaration. Here [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=157&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just can&#8217;t resist myself to blog this, as this is one of the most annoying error I found in IE.  When I was testing a Jquery Code I&#8217;m writing, Firefox worked without a hitch, but IE threw an &#8216;expected identifier, string or number&#8217; error pointing to the last line of the variable declaration.</p>
<p>Here is the code:</p>
<p><span style="color:#ff0000;">var main_api = $(&#8220;div.main_scrollable&#8221;).scrollable({</span><br />
<span style="color:#ff0000;"> mousewheel: false,</span><br />
<span style="color:#ff0000;"> api: true,</span><br />
<span style="color:#ff0000;"> speed: 400,</span><br />
<span style="color:#ff0000;"> prev: &#8220;.main_prev&#8221;, </span><br />
<span style="color:#ff0000;"> next: &#8220;.main_next&#8221;,</span><br />
<span style="color:#ff0000;"> clickable: &#8220;true&#8221;,</span><br />
<span style="color:#ff0000;"> });</span></p>
<p>Look at <span style="color:#ff0000;">clickable: &#8220;true&#8221;<span style="color:#000000;">, notice the comma after.  That&#8217;s what was causing the the error. </span></span>I had taken out a variable under that one but forgot to remove the comma.  FireFox ignored the error, but not IE. One little misplaced character, so much wasted time.   Arrrrrggg&#8230;.IE!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=157&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2010/12/15/javascript-error-%e2%80%98expected-identifier-string-or-number%e2%80%99-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS 3.0 with PIE</title>
		<link>http://edselweb.wordpress.com/2010/10/07/css-3-0-with-pie/</link>
		<comments>http://edselweb.wordpress.com/2010/10/07/css-3-0-with-pie/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 15:59:06 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[CSS 3.0]]></category>
		<category><![CDATA[PIE]]></category>
		<category><![CDATA[Progression Internet Explorer]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=103</guid>
		<description><![CDATA[Objective: To recreate a box-shadow using CSS3.0 Problem encountered: CSS3.0 is not widely supported in IE browsers. Solution: Use Progression Internet Explorer (PIE). Code Example: #subNavContainer { /* css3 shadow styles*/ box-shadow: 2px 1px 3px #000;                 // CSS3.0 -moz-box-shadow: 2px 1px 3px #000;     // for Firefox -webkit-box-shadow: 2px 1px 3px #000;  // for webkit based [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=103&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Objective:</strong> To recreate a box-shadow using CSS3.0</p>
<p><strong>Problem encountered:</strong> CSS3.0 is not widely supported in IE browsers.</p>
<p><strong>Solution:</strong> Use Progression Internet Explorer (PIE).</p>
<p><strong>Code Example:</strong></p>
<p>#subNavContainer {</p>
<p>/* css3 shadow styles*/<br />
box-shadow: 2px 1px 3px #000;                 // <strong>CSS3.0</strong><br />
-moz-box-shadow: 2px 1px 3px #000;     //<strong> for Firefox</strong><br />
-webkit-box-shadow: 2px 1px 3px #000;  // <strong>for webkit based browsers like Chrome and Safari</strong><br />
behavior:url(/styles/PIE.htc);                       // <strong>Add this for CSS3.0 to work in IEs browsers</strong><br />
}</p>
<p><strong>Download PIE:</strong><a href="http://css3pie.com/" target="_blank">http://css3pie.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=103&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2010/10/07/css-3-0-with-pie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>Using .live() and .die() in jQuery</title>
		<link>http://edselweb.wordpress.com/2009/11/10/using-live-and-die-in-jquery/</link>
		<comments>http://edselweb.wordpress.com/2009/11/10/using-live-and-die-in-jquery/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:05:27 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=95</guid>
		<description><![CDATA[In jQuery 1.3, a new pair of methods, .live() and .die(), have been introduced. These methods perform the same tasks as .bind() and .unbind(), but behind the scenes they use event delegation. Event delegation is also useful in situations,  such as when new elements are added by DOM manipulation methods  or AJAX routines. Example: The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=95&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In jQuery 1.3, a new pair of methods, .live() and .die(), have been introduced. These methods perform the same tasks as .bind() and .unbind(), but behind the scenes they use event delegation. Event delegation is also useful in situations,  such as when new elements are added by DOM manipulation methods  or AJAX routines.</p>
<p>Example:</p>
<p>The following element #pIconVideo is added using AJAX routine. &#8220;.live()&#8221; bind the function to be called when &#8220;click&#8221; event is sent to the element. To remove the bindings on the element bound with .live(), we could use .die() .</p>
<p>$(&#8216;a#pIconVideo&#8217;).live(&#8220;click&#8221;, function(event) {<br />
$(this).fancybox({&#8216;frameWidth&#8217;:780, &#8216;frameHeight&#8217;:620});<br />
return false;<br />
})</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=95&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2009/11/10/using-live-and-die-in-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a sign-up form with validation using jQuery</title>
		<link>http://edselweb.wordpress.com/2009/11/09/creating-a-sign-up-form-with-validation-using-jquery/</link>
		<comments>http://edselweb.wordpress.com/2009/11/09/creating-a-sign-up-form-with-validation-using-jquery/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 10:50:31 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Form]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=77</guid>
		<description><![CDATA[Objective: To create a sign-up form with validation using jQuery. Skill Set: jQuery, HTML, CSS Demo: Sign-Up Form with validation using jQuery Steps: Download jQuery library here. Download jQuery Form Validation plugin here. Insert this code within the header tag: &#60;script src=&#8221;jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;script src=&#8221;jquery.validate.pack.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; Insert the following code within the header for the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=77&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Objective:</h3>
<p>To create a sign-up form with validation using jQuery.</p>
<h3>Skill Set:</h3>
<p>jQuery, HTML, CSS</p>
<h3>Demo:</h3>
<p><a title="Form validation using jQuery" href="http://edselweb.com/jQuery/form/signupForm.html" target="_blank">Sign-Up Form with validation using jQuery<br />
</a></p>
<h3>Steps:</h3>
<ul>
<li>Download jQuery library <a title="download jquery library" href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&amp;downloadBtn=" target="_blank">here.</a></li>
<li>Download jQuery Form Validation plugin <a title="jQuery Validation plugin" href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="_blank">here.</a></li>
<li>Insert this code within the header tag:</li>
<li><span style="color:#ff0000;">&lt;script src=&#8221;jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;jquery.validate.pack.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</span></li>
<li><span style="color:#ff0000;"><span style="color:#000000;">Insert the following code within the header for the plugin:</span></span></li>
</ul>
<pre><span style="color:#ff0000;">$().ready(function() {
	<span style="color:#000000;">// validate signup form on keyup and submit</span>
	$("#signupForm").validate({
		rules: {
			firstname: "required",
			lastname: "required",
			username: {
				required: true,
				minlength: 2
			},
			password: {
				required: true,
				minlength: 5
			},
			confirm_password: {
				required: true,
				minlength: 5,
				equalTo: "#password"
			},
			email: {
				required: true,
				email: true
			},
			topic: {
				required: "#newsletter:checked",
				minlength: 2
			},
			agree: "required"
		},
		messages: {
			firstname: "Please enter your firstname",
			lastname: "Please enter your lastname",
			username: {
				required: "Please enter a username",
				minlength: "Your username must consist of at least 2 characters"
			},
			password: {
				required: "Please provide a password",
				minlength: "Your password must be at least 5 characters long"
			},
			confirm_password: {
				required: "Please provide a password",
				minlength: "Your password must be at least 5 characters long",
				equalTo: "Please enter the same password as above"
			},
			email: "Please enter a valid email address",
			agree: "Please accept our policy"
		}
	});

	<span style="color:#000000;">// propose username by combining first- and lastname</span>
	$("#username").focus(function() {
		var firstname = $("#firstname").val();
		var lastname = $("#lastname").val();
		if(firstname &amp;&amp; lastname &amp;&amp; !this.value) {
			this.value = firstname + "." + lastname;
		}
	});

	<span style="color:#000000;">// check if confirm password is still valid after password changed</span>
	$("#password").blur(function() {
		$("#confirm_password").valid();
	});

	<span style="color:#000000;">//code to hide topic selection, "none" class is use to hide topic at first</span>
	var newsletter = $("#newsletter");
	<span style="color:#000000;">// newsletter topics are optional, hide at first</span>
	var inital = newsletter.is(":checked");
	<span style="color:#000000;">// [inital ? "removeClass" : "addClass"] ---- if initial is true, then remove class, otherwise add class</span>
	var topics = $("#newsletter_topics")[inital ? "removeClass" : "addClass"]("none");
	var topicInputs = topics.find("input").attr("disabled", !inital);
	<span style="color:#000000;">// show when newsletter is checked</span>
	newsletter.click(function() {
		topics[this.checked ? "removeClass" : "addClass"]("none");
		topicInputs.attr("disabled", !this.checked);
	});
});
</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=77&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2009/11/09/creating-a-sign-up-form-with-validation-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a simple comment form with validation using jQuery</title>
		<link>http://edselweb.wordpress.com/2009/11/09/creating-a-simple-comment-form-with-validation-using-jquery/</link>
		<comments>http://edselweb.wordpress.com/2009/11/09/creating-a-simple-comment-form-with-validation-using-jquery/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 10:48:49 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Form]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=72</guid>
		<description><![CDATA[Objective: To create a simple comment form and validate with jQuery. Skill Set: jQuery, HTML, CSS Demo: Simple Comment Form with validation using jQuery Steps: Download jQuery library here. Download jQuery Form Validation plugin here. Insert this code within the header tag: &#60;script src=&#8221;jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;script src=&#8221;jquery.validate.pack.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; Insert the following code within the header [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=72&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Objective:</h3>
<p>To create a simple comment form and validate with jQuery.</p>
<h3>Skill Set:</h3>
<p>jQuery, HTML, CSS</p>
<h3>Demo:</h3>
<p><a title="Form validation using jQuery" href="http://edselweb.com/jQuery/form/commentForm.html" target="_blank">Simple Comment Form with validation using jQuery<br />
</a></p>
<h3>Steps:</h3>
<ul>
<li>Download jQuery library <a title="download jquery library" href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&amp;downloadBtn=" target="_blank">here.</a></li>
<li>Download jQuery Form Validation plugin <a title="jQuery Validation plugin" href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="_blank">here.</a></li>
<li>Insert this code within the header tag:</li>
<li><span style="color:#ff0000;">&lt;script src=&#8221;jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;jquery.validate.pack.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</span></li>
<li><span style="color:#ff0000;"><span style="color:#000000;">Insert the following code within the header for the plugin:</span></span></li>
</ul>
<p>$().ready(function() {<br />
// validate the comment form when it is submitted<br />
$(&#8220;#commentForm&#8221;).validate();<br />
});</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=72&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2009/11/09/creating-a-simple-comment-form-with-validation-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>Form Validation using jQuery</title>
		<link>http://edselweb.wordpress.com/2009/10/22/form-validation-using-jquery/</link>
		<comments>http://edselweb.wordpress.com/2009/10/22/form-validation-using-jquery/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 15:06:02 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=61</guid>
		<description><![CDATA[Objective: To validate a form using jQuery. Skill Set: jQuery, HTML, CSS Demo: Form validation using jQuery Steps: Download jQuery library here. Download jQuery Form Validation plugin here. Insert this code within the header tag: &#60;script src=&#8221;jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; &#60;script src=&#8221;jquery.validate.pack.js&#8221; type=&#8221;text/javascript&#8221;&#62;&#60;/script&#62; Insert the following code within the header for the plugin: &#60;script type=&#8221;text/javascript&#8221;&#62; //an alert [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=61&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Objective:</h3>
<p>To validate a form using jQuery.</p>
<h3>Skill Set:</h3>
<p>jQuery, HTML, CSS</p>
<h3>Demo:</h3>
<p><a title="Form validation using jQuery" href="http://edselweb.com/jquery/formvalidation/newvalidation.html" target="_blank">Form validation using jQuery<br />
</a></p>
<h3>Steps:</h3>
<ul>
<li>Download jQuery library <a title="download jquery library" href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&amp;downloadBtn=" target="_blank">here.</a></li>
<li>Download jQuery Form Validation plugin <a title="jQuery Validation plugin" href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="_blank">here.</a></li>
<li>Insert this code within the header tag:</li>
<li><span style="color:#ff0000;">&lt;script src=&#8221;jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;jquery.validate.pack.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</span></li>
<li><span style="color:#ff0000;"><span style="color:#000000;">Insert the following code within the header for the plugin:</span></span></li>
</ul>
<p><span style="color:#ff0000;">&lt;script type=&#8221;text/javascript&#8221;&gt;</span></p>
<p><span style="color:#ff0000;"><span style="color:#0000ff;">//an alert message when the form is submitted.</span><br />
$.validator.setDefaults({<br />
submitHandler: function() { alert(&#8220;submitted!&#8221;); }<br />
});<br />
</span></p>
<p><span style="color:#ff0000;"><span style="color:#0000ff;">//this is where the validation function start</span><br />
$().ready(function() {</span></p>
<p><span style="color:#0000ff;">// validate  form when submit</span><br />
<span style="color:#ff0000;">$(&#8220;#bodenform&#8221;).validate({<br />
rules: {</span></p>
<p><span style="color:#0000ff;">//used the &#8220;name&#8221; attribute for each of the form element</span><br />
<span style="color:#ff0000;">ctl00$ContentPlaceHolder1$GenericAddress1$ddlTitle: &#8220;required&#8221;,<br />
ctl00$ContentPlaceHolder1$GenericAddress1$txtFirstName: &#8220;required&#8221;,<br />
ctl00$ContentPlaceHolder1$GenericAddress1$txtLastName: &#8220;required&#8221;,<br />
ctl00$ContentPlaceHolder1$GenericAddress1$txtEmail: {<br />
required: true,<br />
email: true<br />
},</span></p>
<p><span style="color:#0000ff;">//validate radio button</span><br />
<span style="color:#ff0000;">radGender: &#8220;required&#8221;,</span></p>
<p><span style="color:#0000ff;">//validate checkbox</span><br />
<span style="color:#ff0000;">chkType:&#8221;required&#8221;<br />
},</span><br />
<span style="color:#0000ff;">//Error messagea for each of the form elements<br />
</span></p>
<p><span style="color:#ff0000;">messages: {<br />
ctl00$ContentPlaceHolder1$GenericAddress1$ddlTitle:&#8221;Please enter your title&#8221;,<br />
ctl00$ContentPlaceHolder1$GenericAddress1$txtFirstName: &#8220;Please enter your first name&#8221;,<br />
ctl00$ContentPlaceHolder1$GenericAddress1$txtLastName: &#8220;Please enter your last name&#8221;,<br />
ctl00$ContentPlaceHolder1$GenericAddress1$txtEmail: &#8220;Please enter a valid email address&#8221;,<br />
radGender: &#8220;Please select your gender&#8221;,<br />
chkType: &#8220;Please check at least a box&#8221;<br />
}<br />
});</span></p>
<p><span style="color:#ff0000;">});<br />
&lt;/script&gt;</span></p>
<p><span style="color:#ff0000;"><strong><span style="color:#000000;">Note:</span></strong></span></p>
<ul>
<li><span style="color:#ff0000;"><strong><span style="color:#000000;">Some browser might show the error message in the wrong place.  Edit the the CSS for the layout of the error message by overriding css class &#8220;label.error&#8221;.</span></strong></span></li>
<li><span style="color:#ff0000;">label.error { display: none; color:#F00; position:absolute; left:400px; width:200px; text-align:left}</span></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=61&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2009/10/22/form-validation-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>Embeding Flash movies using swfobject</title>
		<link>http://edselweb.wordpress.com/2009/10/22/embeding-flash-movies-using-swfobject/</link>
		<comments>http://edselweb.wordpress.com/2009/10/22/embeding-flash-movies-using-swfobject/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 14:26:32 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=50</guid>
		<description><![CDATA[Objective: To embed Flash movie using swfobject Skill Set: javascript, HTML, CSS Demo: Embeding Flash movie using swfobject Steps: Download the swfobject script from here Insert this code within the header tag: &#60;script type=&#8221;text/javascript&#8221; src=&#8221;swfobject.js&#8221;&#62;&#60;/script&#62; &#60;script type=&#8221;text/javascript&#8221;&#62; var flashvars = false; var params = { base:&#8221;http://edselweb.com/flash/flickbook/images/&#8221; }; var attributes = {}; swfobject.embedSWF(&#8220;images/flickBookUK.swf&#8221;, &#8220;myContent&#8221;, &#8220;353&#8243;, &#8220;698&#8243;, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=50&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Objective:</h3>
<p>To embed Flash movie using swfobject</p>
<h3>Skill Set:</h3>
<p>javascript, HTML, CSS</p>
<h3>Demo:</h3>
<p><a title="Embeding Flash movie using swfobject" href="http://edselweb.com/flash/flickbook/index_dynamic.html" target="_blank">Embeding Flash movie using swfobject<br />
</a></p>
<h3>Steps:</h3>
<ul>
<li>Download the swfobject script from <a href="http://code.google.com/p/swfobject/downloads/list" target="_blank">here</a></li>
<li>Insert this code within the header tag:<span style="color:#ff0000;"> </span></li>
<li><span style="color:#ff0000;">&lt;script type=&#8221;text/javascript&#8221; src=&#8221;swfobject.js&#8221;&gt;&lt;/script&gt;</span></li>
<li><span style="color:#ff0000;">&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var flashvars = false;<br />
var params = {<br />
base:&#8221;http://edselweb.com/flash/flickbook/images/&#8221;<br />
};<br />
var attributes = {};<br />
swfobject.embedSWF(&#8220;images/flickBookUK.swf&#8221;, &#8220;myContent&#8221;, &#8220;353&#8243;, &#8220;698&#8243;, &#8220;9.0.0&#8243;, &#8220;expressInstall.swf&#8221;, flashvars, params, attributes);<br />
&lt;/script&gt;</span></li>
<li><span style="color:#ff0000;"><span style="color:#000000;">A div for alternative content is necessary within the body tag as follow:</span></span></li>
</ul>
<p><span style="color:#ff0000;">&lt;div id=&#8221;myContent&#8221;&gt;<br />
&lt;h1&gt;Alternative content&lt;/h1&gt;<br />
&lt;p&gt;&lt;a href=&#8221;http://www.adobe.com/go/getflashplayer&#8221;&gt;&lt;img src=&#8221;http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&#8221; alt=&#8221;Get Adobe Flash player&#8221; /&gt;&lt;/a&gt;&lt;/p&gt;<br />
&lt;/div&gt;</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=50&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2009/10/22/embeding-flash-movies-using-swfobject/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>How to execute a function only after your ajax request has completed?</title>
		<link>http://edselweb.wordpress.com/2009/10/02/how-to-execute-a-function-only-after-your-ajax-request-has-completed/</link>
		<comments>http://edselweb.wordpress.com/2009/10/02/how-to-execute-a-function-only-after-your-ajax-request-has-completed/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 14:29:39 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=44</guid>
		<description><![CDATA[Objective: To only execute a jQuery function only after all your ajax request in your page has completed successfully. Method: Search the last tag of the Body tag and then &#8220;bind&#8221; the &#8220;ajaxSuccess &#8221; event to the function. Code: $(document).ready(function() { $(&#8216;body:last-child&#8217;).bind(&#8216;ajaxSuccess&#8217;, function() {   }) });<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=44&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Objective:<strong><br />
</strong></h3>
<p>To only execute a jQuery function only after all your ajax request in your page has completed successfully.</p>
<h3>Method:</h3>
<ul>
<li>Search the last tag of the Body tag and then &#8220;bind&#8221; the &#8220;ajaxSuccess &#8221; event to the function.</li>
</ul>
<h3>Code:</h3>
<p style="padding-left:30px;"><span style="color:#0000ff;">$(document).ready(function() {<br />
$(&#8216;body:last-child&#8217;).bind(&#8216;ajaxSuccess&#8217;, function() {   })<br />
});</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=44&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2009/10/02/how-to-execute-a-function-only-after-your-ajax-request-has-completed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
		<item>
		<title>Tutorial: Creating a jquery form with show/hide questions and answers</title>
		<link>http://edselweb.wordpress.com/2009/10/02/tutorial-creating-a-jquery-form-with-showhide-questions-and-answers/</link>
		<comments>http://edselweb.wordpress.com/2009/10/02/tutorial-creating-a-jquery-form-with-showhide-questions-and-answers/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 14:10:22 +0000</pubDate>
		<dc:creator>edselweb</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://edselweb.wordpress.com/?p=9</guid>
		<description><![CDATA[Objective: To create a form which will show and hide the questions and answers according to the user&#8217;s selection. Skill Set: jQuery, HTML, CSS Demo: Show/Hide Questionaire Steps: Create a standard HTML form with various questions and answers. View the form source code in the Demo. Incude the Standard jQuery library in  the Header Tag. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=9&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Objective:</h3>
<p>To create a form which will show and hide the questions and answers according to the user&#8217;s selection.</p>
<h3>Skill Set:</h3>
<p>jQuery, HTML, CSS</p>
<h3>Demo:</h3>
<p><a title="Show/Hide Questionaire" href="http://jquery.edselweb.com/showHide.html" target="_blank">Show/Hide Questionaire</a></p>
<h3>Steps:</h3>
<ul>
<li>Create a standard HTML form with various questions and answers. View the form source code in the <a href="http://jquery.edselweb.com/showHide.html" target="_blank">Demo</a>.</li>
<li>Incude the Standard jQuery library in  the Header Tag.</li>
</ul>
<p style="padding-left:60px;"><span style="color:#0000ff;">&lt;script src=&#8221;jquery-1.3.2.min.js&#8221;&gt;&lt;/script&gt;</span></p>
<ul>
<li>Create a jQuery function that will use the show/hide methods.  The function also use the Switch control sturcture of jQuery.  This function should be placed in the header tag too.</li>
</ul>
<p style="padding-left:60px;"><span style="color:#0000ff;">&lt;script&gt;</span><span style="color:#0000ff;"><br />
$(function(){<br />
<strong><em><span style="color:#808080;">&lt;!&#8211; </span></em></strong></span><strong><em><span style="color:#808080;">&#8220;#event_type_id&#8221; is the ID for the select option &#8211;&gt;</span></em></strong><br />
<span style="color:#0000ff;"> $(&#8220;#event_type_id&#8221;).change(function () {<br />
var val = $(this).val();<br />
</span><strong><em><span style="color:#808080;">&lt;!&#8211; Use Switch/Case Control structure to choose the different selection that the users has choosen.  Use Show method to show the relevant selection, and use Hide method to hide rest of the selection. &#8211;&gt;</span></em></strong><br />
<span style="color:#0000ff;"> switch(val){<br />
case &#8216;image&#8217;:<br />
$(&#8220;#image&#8221;).show();<br />
$(&#8220;#comment&#8221;).show();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
break;<br />
case &#8216;price&#8217;:<br />
$(&#8220;#price&#8221;).show();<br />
$(&#8220;#comment&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
break;<br />
case &#8216;colour&#8217;:<br />
$(&#8220;#colour&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
$(&#8220;#comment&#8221;).hide();<br />
$(&#8220;#freeboardersYes&#8221;).hide();<br />
$(&#8220;#freeboardersNo&#8221;).hide();<br />
break;<br />
case &#8216;product&#8217;:<br />
$(&#8220;#product&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#comment&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
$(&#8220;#mplanYes&#8221;).hide();<br />
$(&#8220;#mplanNo&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
break;<br />
case &#8216;johnnie&#8217;:<br />
$(&#8220;#johnnie&#8221;).show();<br />
$(&#8220;#comment&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
break;<br />
case &#8216;garmentMeasurements&#8217;:<br />
$(&#8220;#garmentMeasurements&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
$(&#8220;#comment&#8221;).hide();<br />
$(&#8220;#garmentMeasurementsYes&#8221;).hide();<br />
$(&#8220;#garmentMeasurementsNo&#8221;).hide();<br />
break;<br />
case &#8216;bulletPoints&#8217;:<br />
$(&#8220;#bulletPoints&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
$(&#8220;#comment&#8221;).hide();<br />
$(&#8220;#bulletPointsYes&#8221;).hide();<br />
$(&#8220;#bulletPointsNo&#8221;).hide();<br />
break;<br />
case &#8216;upsell&#8217;:<br />
$(&#8220;#upsell&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
$(&#8220;#comment&#8221;).hide();<br />
break;<br />
case &#8216;crossSell&#8217;:<br />
$(&#8220;#crossSell&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#other&#8221;).hide();<br />
$(&#8220;#comment&#8221;).hide();<br />
break;<br />
case &#8216;other&#8217;:<br />
$(&#8220;#other&#8221;).show();<br />
$(&#8220;#comment&#8221;).show();<br />
$(&#8220;#image&#8221;).hide();<br />
$(&#8220;#price&#8221;).hide();<br />
$(&#8220;#colour&#8221;).hide();<br />
$(&#8220;#product&#8221;).hide();<br />
$(&#8220;#johnnie&#8221;).hide();<br />
$(&#8220;#garmentMeasurements&#8221;).hide();<br />
$(&#8220;#bulletPoints&#8221;).hide();<br />
$(&#8220;#upsell&#8221;).hide();<br />
$(&#8220;#crossSell&#8221;).hide();<br />
break;<br />
}<br />
});</span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;">});<br />
&lt;/script&gt;</span></p>
<ul>
<li>For questions that includes radio buttons selection, us the onClick events with show/hide methods to show and hide the ID of the relevent section.<br />
<span style="color:#808080;"><br />
<strong><em>&lt;!&#8211; when users select the Yes radio button &#8211;&gt;</em></strong></span></li>
</ul>
<p style="padding-left:60px;"><span style="color:#0000ff;">&lt;input id=&#8221;yes&#8221; onClick=&#8221;javascript: $(&#8216;#freeboardersYes&#8217;).show(&#8216;slow&#8217;);  $(&#8216;#freeboardersNo&#8217;).hide(&#8216;slow&#8217;);&#8221; type=&#8221;radio&#8221; name=&#8221;subscribe&#8221; value=&#8221;1&#8243;/&gt;<br />
&lt;label for=&#8221;yes&#8221;&gt;Yes&lt;/label&gt;</span></p>
<blockquote>
<p style="padding-left:30px;"><strong><em><span style="color:#808080;">&lt;!&#8211; when users select the No radio button &#8211;&gt;</span></em></strong></p>
</blockquote>
<p style="padding-left:60px;"><span style="color:#0000ff;">&lt;input id=&#8221;no&#8221; onClick=&#8221;javascript: $(&#8216;#freeboardersNo&#8217;).show(&#8216;slow&#8217;); $(&#8216;#freeboardersYes&#8217;).hide(&#8216;slow&#8217;);&#8221; type=&#8221;radio&#8221; name=&#8221;subscribe&#8221; value=&#8221;0&#8243;/&gt;<br />
&lt;label for=&#8221;no&#8221;&gt;No&lt;/label&gt;</span></p>
<p style="padding-left:60px;">
<p style="padding-left:60px;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edselweb.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edselweb.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edselweb.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edselweb.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edselweb.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edselweb.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edselweb.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edselweb.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edselweb.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edselweb.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edselweb.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edselweb.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edselweb.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edselweb.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edselweb.wordpress.com&amp;blog=8381440&amp;post=9&amp;subd=edselweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edselweb.wordpress.com/2009/10/02/tutorial-creating-a-jquery-form-with-showhide-questions-and-answers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1ddbf937583578365eef8cf3f869666b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edselweb</media:title>
		</media:content>
	</item>
	</channel>
</rss>
