<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8064796525792588299</id><updated>2011-07-08T05:51:02.535-07:00</updated><category term='Tips'/><category term='Projects'/><title type='text'>JJ's Webs</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jjswebs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8064796525792588299/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jjswebs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jay</name><uri>http://www.blogger.com/profile/09333888448759702000</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8064796525792588299.post-3967120376220484743</id><published>2010-03-01T17:14:00.000-08:00</published><updated>2010-03-15T11:24:34.273-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><title type='text'>jQuery-UI: Chaining Effects</title><content type='html'>&lt;div class="ui-state-highlight"&gt;&lt;span class="ui-icon ui-icon-info" style="float: left; margin-right: 0.4em;"&gt;&lt;/span&gt;  &lt;strong&gt;IMPORTANT:&lt;/strong&gt; This requires the &lt;a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jqueryUI"&gt;jQuery-UI API&lt;/a&gt;.&lt;/div&gt;&lt;br /&gt;Using effects for callbacks in other effects, or chaining effects, can be done quite easily really. &amp;nbsp;As an example, lets say you have two block elements with separate identification variables, or divs with ids. &amp;nbsp;Your code may look something like this:&lt;br /&gt;&lt;code class="ui-state-highlight"&gt;&lt;br /&gt;&amp;lt;div id="pg1"&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Page 1&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;a href="#"&amp;gt;&amp;lt;img src="img/128-1.png" /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;a href="#"&amp;gt;&amp;lt;img src="img/128-2.png" /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;a href="#"&amp;gt;&amp;lt;img src="img/128-3.png" /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div id="pg2" style="visibility:hidden"&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Page 2&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;a href="#"&amp;gt;&amp;lt;img src="img/128-1.png" /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;a href="#"&amp;gt;&amp;lt;img src="img/128-2.png" /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;a href="#"&amp;gt;&amp;lt;img src="img/128-3.png" /&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now if you want to use one page, and then click something, and move to the next, most people would utilize separate functions and jump between the two, this is where the [callback] portion of the calls comes in handy.  This is assuming you have a block element with an id of p1.&lt;br /&gt;&lt;code class="ui-state-highlight"&gt;&lt;br /&gt;$(&amp;quot;#p1&amp;quot;).click(function(){&lt;br /&gt;$(&amp;quot;#pg1&amp;quot;).hide(&amp;quot;bounce&amp;quot;,{ times:1, direction:&amp;quot;left&amp;quot; },300, function(){&lt;br /&gt;$(&amp;quot;#pg2&amp;quot;).removeAttr('style').show(&amp;quot;bounce&amp;quot;,{ times:1, direction:&amp;quot;right&amp;quot; },300);&lt;br /&gt;});&lt;br /&gt;});&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Notice the second function() call within the hide effect.  That's how you chain effects.  Just declare that the value is a function, and run your code, simple as that.&lt;br /&gt;&lt;br /&gt;&lt;div class="ui-state-highlight"&gt;&lt;span class="ui-icon ui-icon-info" style="float: left; margin-right: 0.4em;"&gt;&lt;/span&gt;  &lt;strong&gt;NOTE:&lt;/strong&gt; The extra block elements, or pages, need to be hidden, notice the removeAttr() function in the script, that way everything is done for you.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8064796525792588299-3967120376220484743?l=jjswebs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jjswebs.blogspot.com/feeds/3967120376220484743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jjswebs.blogspot.com/2010/03/jquery-ui-chaining-effects.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8064796525792588299/posts/default/3967120376220484743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8064796525792588299/posts/default/3967120376220484743'/><link rel='alternate' type='text/html' href='http://jjswebs.blogspot.com/2010/03/jquery-ui-chaining-effects.html' title='jQuery-UI: Chaining Effects'/><author><name>Jay</name><uri>http://www.blogger.com/profile/09333888448759702000</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8064796525792588299.post-1177062452911746687</id><published>2010-02-27T13:13:00.000-08:00</published><updated>2010-02-27T13:14:21.050-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Projects'/><title type='text'>Template and jQuery</title><content type='html'>Well, the flash part of &lt;a href="http://jjswebs.com/"&gt;my website&lt;/a&gt; is done and fully customized, now it's on to bigger things, and a few bug fixes. I noticed that the flash site doesn't operate correctly in Google Chrome. &amp;nbsp;While it would be nice to track down the issue within the flash files. &amp;nbsp;I believe that it's best if I leave it as is, and create a static HTML version from its base. &amp;nbsp;Being that flash isn't really &lt;a href="http://www.google.com/search?rlz=1C1GGLS_enUS325US325&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8&amp;amp;q=define:+seo"&gt;SEO&lt;/a&gt; friendly, it just makes more sense to create the HTML version and optimize it for&amp;nbsp;Google&amp;nbsp;and other search engines. &lt;br /&gt;&lt;br /&gt;This isn't to say that I will not be using the flash, it's just that instead of having a "splash" page with options for flash or HTML, there will be a sort of "View Flash Version" link on the HTML version of the site. &amp;nbsp;Furthermore, the HTML version is the first version that the user will see, and the flash version will be located within a subdirectory of the root site.&lt;br /&gt;&lt;br /&gt;First thing is to create a slider out of jQuery so the thumbnails operate&amp;nbsp;similar&amp;nbsp;to the flash version of the site. &amp;nbsp;Hopefully I'll put up some jQuery tutorials or findings in the later days. &amp;nbsp;I also have to template this "Blogger" theme as to match my original site, this should be fun!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8064796525792588299-1177062452911746687?l=jjswebs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jjswebs.blogspot.com/feeds/1177062452911746687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jjswebs.blogspot.com/2010/02/template-and-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8064796525792588299/posts/default/1177062452911746687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8064796525792588299/posts/default/1177062452911746687'/><link rel='alternate' type='text/html' href='http://jjswebs.blogspot.com/2010/02/template-and-jquery.html' title='Template and jQuery'/><author><name>Jay</name><uri>http://www.blogger.com/profile/09333888448759702000</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8064796525792588299.post-4394989465399453301</id><published>2010-02-22T12:38:00.001-08:00</published><updated>2010-02-22T12:38:18.995-08:00</updated><title type='text'>Workin' on it!</title><content type='html'>Go figure, it's not even worked on! &amp;nbsp;Well it's kind of new so gimme some time, I'll have code for ya.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8064796525792588299-4394989465399453301?l=jjswebs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jjswebs.blogspot.com/feeds/4394989465399453301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jjswebs.blogspot.com/2010/02/workin-on-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8064796525792588299/posts/default/4394989465399453301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8064796525792588299/posts/default/4394989465399453301'/><link rel='alternate' type='text/html' href='http://jjswebs.blogspot.com/2010/02/workin-on-it.html' title='Workin&apos; on it!'/><author><name>Jay</name><uri>http://www.blogger.com/profile/09333888448759702000</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
