<?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>The Tutorial Blog &#187; ajax</title>
	<atom:link href="http://www.thetutorialblog.com/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thetutorialblog.com</link>
	<description></description>
	<lastBuildDate>Tue, 08 Nov 2011 19:21:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
<link>http://www.thetutorialblog.com</link>
<url>http://www.thetutorialblog.com/wp-content/plugins/maxblogpress-favicon/icons/favicon-28.ico</url>
<title>The Tutorial Blog</title>
</image>
		<item>
		<title>5 PHP Frameworks you may not know about</title>
		<link>http://www.thetutorialblog.com/php/5-php-frameworks-you-may-not-know-about/</link>
		<comments>http://www.thetutorialblog.com/php/5-php-frameworks-you-may-not-know-about/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 14:55:30 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[lists]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[akelos]]></category>
		<category><![CDATA[akelos php framework]]></category>
		<category><![CDATA[auth module]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[DB Objects]]></category>
		<category><![CDATA[framework tutorial]]></category>
		<category><![CDATA[kohana]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[mutiple databases]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[php framework tutorial]]></category>
		<category><![CDATA[php frameworks]]></category>
		<category><![CDATA[php on trax]]></category>
		<category><![CDATA[php on trax framework]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[PRADO]]></category>
		<category><![CDATA[PRADO php framework]]></category>
		<category><![CDATA[seagull]]></category>
		<category><![CDATA[seagull php framework]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[yii]]></category>
		<category><![CDATA[yii php framework]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=263</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	There are many PHP frameworks available for developers to choose from when creating a project. Frameworks such as CodeIgniter, CakePHP, Symfony and Zend are the most popular frameworks used by developers. In this article I will compile a list of 5 frameworks that many developers may not know of. Seagull Supports: PHP4 PHP5 Multiple Database's [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2F5-php-frameworks-you-may-not-know-about%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2F5-php-frameworks-you-may-not-know-about%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="5 PHP Frameworks you may not know about" alt=" 5 PHP Frameworks you may not know about" /><br />
			</a>
		</div>
<p><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/php_logo.jpg" alt="php logo 5 PHP Frameworks you may not know about" title="php_logo" width="328" height="230" class="alignleft size-full wp-image-280" /><br />
There are many PHP frameworks available for developers to choose from when creating a project. Frameworks such as <a href="http://codeigniter.com">CodeIgniter</a>, <a href="http://www.cakephp.org">CakePHP</a>, <a href="http://www.symfony-project.org/">Symfony</a> and <a href="http://framework.zend.com/">Zend</a> are the most popular frameworks used by developers.</p>
<p>In this article I will compile a list of 5 frameworks that many developers may not know of.<br />
<span id="more-263"></span></p>
<h2><a href="http://seagullproject.org/">Seagull</a></h2>
<p><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/Seagull.jpg" alt="Seagull 5 PHP Frameworks you may not know about" title="Seagull" width="300" height="75" class="alignleft size-full wp-image-275" /><br />
Supports:</p>
<ul>
<li>PHP4</li>
<li>PHP5</li>
<li>Multiple Database's</li>
<li>ORM</li>
<li>DB Objects</li>
<li>Templates</li>
<li>Caching</li>
<li>Validation</li>
<li>Ajax</li>
<li>Auth Module</li>
<li>Modules</li>
</ul>
<h2><a href="http://www.phpontrax.com/">PHP on TRAX</a></h2>
<p><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/phpontrax.jpg" alt="phpontrax 5 PHP Frameworks you may not know about" title="phpontrax" width="187" height="194" class="alignleft size-full wp-image-277" /><br />
Supports:</p>
<ul>
<li>PHP5</li>
<li>Multiple Database's</li>
<li>ORM</li>
<li>DB Objects</li>
<li>Validation</li>
<li>Ajax</li>
<li>Modules</li>
</ul>
<h2><a href="http://www.yiiframework.com/">Yii</a></h2>
<p><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/Yii.jpg" alt="Yii 5 PHP Frameworks you may not know about" title="Yii" width="430" height="55" class="alignleft size-full wp-image-278" /><br />
Supports:</p>
<ul>
<li>PHP5</li>
<li>Multiple Database's</li>
<li>ORM</li>
<li>DB Objects</li>
<li>Templates</li>
<li>Caching</li>
<li>Validation</li>
<li>Ajax</li>
<li>Auth Module</li>
<li>Modules</li>
</ul>
<h2><a href="http://www.akelos.org/">Akelos</a></h2>
<p><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/Akelos.jpg" alt="Akelos 5 PHP Frameworks you may not know about" title="Akelos" width="225" height="115" class="alignleft size-full wp-image-279" /><br />
Supports:</p>
<ul>
<li>PHP4</li>
<li>PHP5</li>
<li>Multiple Database's</li>
<li>ORM</li>
<li>DB Objects</li>
<li>Templates</li>
<li>Caching</li>
<li>Validation</li>
<li>Ajax</li>
<li>Auth Module</li>
<li>Modules</li>
</ul>
<h2><a href="http://www.pradosoft.com/">Prado</a></h2>
<p><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/PRADO.jpg" alt="PRADO 5 PHP Frameworks you may not know about" title="PRADO" width="540" height="50" class="alignleft size-full wp-image-276" /><br />
Supports:</p>
<ul>
<li>PHP5</li>
<li>Multiple Database's</li>
<li>ORM</li>
<li>DB Objects</li>
<li>Templates</li>
<li>Caching</li>
<li>Validation</li>
<li>Ajax</li>
<li>Auth Module</li>
<li>Modules</li>
</ul>
<h2>Other frameworks</h2>
<p>If there are other frameworks that you know of that you think I have missed then please feel free to post a comment.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/php/5-php-frameworks-you-may-not-know-about/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>10 Awesome jQuery Tutorials You Should Check Out</title>
		<link>http://www.thetutorialblog.com/jquery/10-awesome-jquery-tutorials-you-should-check-out/</link>
		<comments>http://www.thetutorialblog.com/jquery/10-awesome-jquery-tutorials-you-should-check-out/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 14:02:53 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[codeingiter]]></category>
		<category><![CDATA[digg-style]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[jquery suggestions]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[scrolling menu]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=222</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	jQuery is a great tool that everyone in web development should be using to make the functionality of their websites better, it's easy of use and good documentation is what makes jQuery such a successful framework. Although the documentation is good there are still a lot of tutorials out there that you should check out. [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fjquery%2F10-awesome-jquery-tutorials-you-should-check-out%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fjquery%2F10-awesome-jquery-tutorials-you-should-check-out%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="10 Awesome jQuery Tutorials You Should Check Out" alt=" 10 Awesome jQuery Tutorials You Should Check Out" /><br />
			</a>
		</div>
<p><img class="alignleft size-full wp-image-224" title="jquery-logo" src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/jquery-logo.gif" alt="jquery logo 10 Awesome jQuery Tutorials You Should Check Out" width="320" height="220" /></p>
<p>jQuery is a great tool that everyone in web development should be using to make the functionality of their websites better, it's easy of use and good documentation is what makes jQuery such a successful framework. Although the documentation is good there are still a lot of tutorials out there that you should check out.</p>
<p><span id="more-222"></span></p>
<ol>
<li>
<h2><a href="http://www.thetutorialblog.com/text-tutorials/quick-tip-resolving-conflicting-problems-between-jquery-and-mootools-or-any-other-javascript-library/">Quick Tip: Resolving conflicting problems between jQuery and MooTools or any other Javascript library</a></h2>
</li>
<li>
<h2><a href="http://www.thetutorialblog.com/php/twitter-like-pagination-using-codeigniter-and-jquery/">Twitter-like pagination using CodeIgniter and jQuery</a></h2>
</li>
<li>
<h2><a href="http://www.thetutorialblog.com/php/php-gallery-with-no-page-reloads-using-jquery/">PHP gallery with no page reloads using jQuery</a></h2>
</li>
<li>
<h2><a href="http://www.thetutorialblog.com/jquery/jquery-dropdown-suggestions/">jQuery Dropdown Suggestions</a></h2>
</li>
<li>
<h2><a href="http://www.thetutorialblog.com/php/twitter-like-pagination-using-cakephp-and-jquery/">Twitter-like pagination using CakePHP and jQuery</a></h2>
</li>
<li>
<h2><a href="http://valums.com/scroll-menu-jquery/">Create a Scrolling Menu with CSS and jQuery</a></h2>
</li>
<li>
<h2><a href="http://marcgrabanski.com/article/jquery-google-maps-tutorial-basics">jQuery and Google Maps Tutorial</a></h2>
</li>
<li>
<h2><a href="http://net.tutsplus.com/tutorials/javascript-ajax/inettuts/">How to Mimic the iGoogle Interface</a></h2>
</li>
<li>
<h2><a href="http://jqueryfordesigners.com/jquery-infinite-carousel/">jQuery Infinite Carousel</a></h2>
</li>
<li>
<h2><a href="http://www.queness.com/post/309/create-a-digg-style-post-sharing-tool-with-jquery">Create a Digg-style post sharing tool with jQuery</a></h2>
</li>
</ol>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/jquery/10-awesome-jquery-tutorials-you-should-check-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP gallery with no page reloads using jQuery</title>
		<link>http://www.thetutorialblog.com/php/php-gallery-with-no-page-reloads-using-jquery/</link>
		<comments>http://www.thetutorialblog.com/php/php-gallery-with-no-page-reloads-using-jquery/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 18:02:09 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Text Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[image gallery using ajax]]></category>
		<category><![CDATA[imgbrowz0r]]></category>
		<category><![CDATA[php image gallery]]></category>
		<category><![CDATA[prettyPhoto]]></category>
		<category><![CDATA[thetutorialblog]]></category>
		<category><![CDATA[wez pyke]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=173</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	For this tutorial we will be using the ImgBrowz0r class for the backend of the gallery, we will then write a jQuery script so that we can browse through the gallery created by ImgBrowz0r without no page reloads and a nice effect between page requests so the user knows the page has changed. We will [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2Fphp-gallery-with-no-page-reloads-using-jquery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2Fphp-gallery-with-no-page-reloads-using-jquery%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="PHP gallery with no page reloads using jQuery" alt=" PHP gallery with no page reloads using jQuery" /><br />
			</a>
		</div>
<p><img src="http://www.thetutorialblog.com/wp-content/uploads/2009/12/jquery_gallery.jpg" alt="jquery gallery PHP gallery with no page reloads using jQuery" title="jquery_gallery" width="300" height="300" class="alignleft size-full wp-image-174" />For this tutorial we will be using the <a href="http://61924.nl/projects/imgbrowz0r.html">ImgBrowz0r</a> class for the backend of the gallery, we will then write a jQuery script so that we can browse through the gallery created by ImgBrowz0r without no page reloads and a nice effect between page requests so the user knows the page has changed. We will also be using the <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/">prettyPhoto plugin</a> for jQuery to open up the actual images.</p>
<h2>Getting ImgBrowz0r and prettyPhoto to work</h2>
<p>The first thing I done was create a folder called jquery_gallery inside here is where all the files and folders are gonna be stored. I then created 4 folders inside jquery_gallery, the folders are called css, images, inc and js.</p>
<p>When you have downloaded the ImgBrowz0r class, copy the file into the inc folder.<br />
<span id="more-173"></span><br />
Now inside the images folder create 2 folders cache and gallery. After you have unzipped prettyPhoto goto the images folder and inside the images folder copy the folder named prettyPhoto to our image folder. There should now be 3 folders inside our images folder cache, gallery and prettyPhoto.</p>
<p>Inside our css folder that we have created we will copy the css file from the prettyPhoto css folder named prettyPhoto.css.</p>
<p>The last thing to do for prettyPhoto is to copy the javascript file from the prettyPhoto js folder to our js folder.</p>
<p>So now we should have a file structure like so:<br />
|css<br />
|--prettyPhoto.css</p>
<p>|images<br />
|--cache<br />
|--gallery<br />
|--prettyPhoto</p>
<p>|inc<br />
|--imgbrowz0r.php</p>
<p>|js<br />
|--jquery.prettyPhoto.js</p>
<p>We need to also create a css file for our imgBrowz0r class, create a css file inside our css folder and name it gallery.css. Copy the code into this file that is below:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">strong <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">/* This is some example CSS. You can change this to your own liking. */</span>
	<span style="color: #6666ff;">.img-description</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.imgbrowz0r-navigation</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>width<span style="color: #00AA00;">:</span> <span style="color: #933;">970px</span><span style="color: #00AA00;">;</span>text-align<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.imgbrowz0r-navigation</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">0.5em</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.imgbrowz0r-navigation</span> <span style="color: #6666ff;">.img-statistics</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.img-description</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span> <span style="color: #993333;">auto</span> <span style="color: #cc66cc;">0</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-row</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1em</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>text-decoration<span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-thumbnail</span> a<span style="color: #3333ff;">:link </span>img<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-thumbnail</span> a<span style="color: #3333ff;">:visited </span>img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-thumbnail</span> a<span style="color: #3333ff;">:hover </span>img<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-thumbnail</span> a<span style="color: #3333ff;">:active </span>img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>border<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span><span style="color: #00AA00;">;</span>color<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ccc</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a<span style="color: #3333ff;">:active </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>color<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> span.img-dir-name<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> span<span style="color: #6666ff;">.img-thumb-date</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> span<span style="color: #6666ff;">.img-dir-name</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-thumbnail</span> a<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>margin<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>width<span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#imgbrowz0r</span> .img-thumbnail<span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>width<span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span><span style="color: #00AA00;">;</span>text-align<span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-column-1</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span>
	<span style="color: #cc00cc;">#imgbrowz0r</span> <span style="color: #6666ff;">.img-directory</span> a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">160px</span><span style="color: #00AA00;">;</span>line-<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
					       <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>background-<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">/* http://sonspring.com/journal/clearing-floats */</span>
	html body div.<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">,</span>
	html body span<span style="color: #6666ff;">.clear</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>border<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>clear<span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>display<span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>float<span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>list-style<span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
			       <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>overflow<span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>visibility<span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>width<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Create a file called index.php in the root of our folder and copy in the basic html.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
	&lt;title&gt;TheTutorialBlog.com | Photo Gallery&lt;/title&gt;
	&lt;script src=&quot;http://www.google.com/jsapi&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
	google.load(&quot;jquery&quot;, &quot;1.3.2&quot;);
	&lt;/script&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;css/prettyPhoto.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;css/gallery.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;&gt;
	&lt;script src=&quot;js/jquery.prettyPhoto.js&quot;&gt;&lt;/script&gt;
&nbsp;
	&lt;script&gt;
		$(document).ready(function(){
		// prettyPhoto
			$(&quot;a[rel^='prettyPhoto']&quot;).prettyPhoto({
				showTitle: false
			});
	&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;content_main&quot;&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>Inside the div called content_main is where our the ImgBrowz0r class code will go.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'inc/imgbrowz0r.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// These are all settings (set to default). The settings are not validated since you have to configure everything.</span>
<span style="color: #666666; font-style: italic;">// There is a chance that ImgBrowz0r stops working if you enter the wrong values.</span>
<span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #666666; font-style: italic;">// Directory settings. These are required. Without trailing slash. (required)</span>
	<span style="color: #0000ff;">'images_dir'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'images/gallery'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'cache_dir'</span>                <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'images/cache'</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Url settings. These are required. Without trailing slash. (required)</span>
	<span style="color: #666666; font-style: italic;">// %PATH% is replaced with the directory location and page number</span>
	<span style="color: #0000ff;">'main_url'</span>                 <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http://localhost:8888/tutorials/jquery_gallery/index.php?q=%PATH%'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'images_url'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http:///localhost:8888/tutorials/jquery_gallery/images/gallery'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'cache_url'</span>                <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http:///localhost:8888/tutorials/jquery_gallery/images/cache'</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Sorting settings (optional)</span>
	<span style="color: #0000ff;">'sort_by'</span>                  <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// 1 = filename, 2 = extension (png, gif, etc.), 3 = inode change time of file</span>
	<span style="color: #0000ff;">'sort_order'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// true = ascending, false = descending</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Thumbnail settings (optional)</span>
	<span style="color: #0000ff;">'thumbs_per_page'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">12</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Amount of thumbnails per page</span>
	<span style="color: #0000ff;">'max_thumb_row'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Amount of thumbnails on a row</span>
	<span style="color: #0000ff;">'max_thumb_width'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Maximum width of thumbnail</span>
	<span style="color: #0000ff;">'max_thumb_height'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Maximum height of thumbnail</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Time settings (optional)</span>
	<span style="color: #0000ff;">'time_format'</span>              <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'F jS, Y'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Date formatting. Look at the PHP date() for help: http://nl3.php.net/manual/en/function.date.php</span>
	<span style="color: #0000ff;">'time_zone'</span>                <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Timezone. Example: 1</span>
	<span style="color: #0000ff;">'enable_dst'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Daylight saving time (DST). Set this to true to enable it.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Misc settings (optional)</span>
	<span style="color: #0000ff;">'ignore_port'</span>              <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Ignore port in url. Set this to true to ignore the port.</span>
	<span style="color: #0000ff;">'dir_thumbs'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Show a thumbnail in a category box. Default is false.</span>
	<span style="color: #0000ff;">'random_thumbs'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Use random thumbnails for categories. Default is false.</span>
	<span style="color: #0000ff;">'read_thumb_limit'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #666666; font-style: italic;">// See README for information about this setting.</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Start the class</span>
<span style="color: #000088;">$gallery</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> imgbrowz0r<span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// Prepare everything. This function must be called before you call other functions.</span>
<span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Generate navigation and statistics</span>
<span style="color: #000088;">$gallery_breadcrumbs</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">breadcrumbs</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gallery_pagination</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pagination</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// Display navigation</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;imgbrowz0r-navigation&quot;&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gallery_breadcrumbs</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gallery_pagination</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Display images and directories</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">browse</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Display navigation</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;imgbrowz0r-navigation&quot;&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gallery_pagination</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gallery_breadcrumbs</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Fill in the information for the main_url, images_url and cache_url or it will not work.</p>
<p>In the imgBrowz0r.php file located in inc find line number 205 and add a rel called prettyPhoto:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">cur_directory</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&quot; title=&quot;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&quot; rel=&quot;prettyPhoto&quot;&gt;&lt;img src=&quot;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cache_url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span></pre></div></div>

<p>If we do not do this then the jQuery prettyPhoto plugin will not work.</p>
<h2>Navigating through the gallery without page reloads</h2>
<p>To do this we need to write our own jQuery code so that when a hyperlink inside the gallery div then we will do an ajax call that will then replace the content in the content_main div.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.img-directory a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</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: #660066;">get</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#content_main&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</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: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#content_main&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#content_main&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>So when a hyperlink inside the a div with the class called img-directory is clicked we will get the href from the hyperlink and retrieve that page using $.get(). We will then slide up the element until the content has loaded and then the elemnt will slide back down and contain the content we requested. We also return false so that the page does not reload.</p>
<p>We do the same for the breadcrumbs so we can navigate between them without the page refreshing also:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.img-breadcrumbs'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</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: #660066;">get</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#content_main&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</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: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#content_main&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#content_main&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The entire index.php page should look like so:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
	&lt;title&gt;TheTutorialBlog.com | Photo Gallery&lt;/title&gt;
	&lt;script src=&quot;http://www.google.com/jsapi&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
	google.load(&quot;jquery&quot;, &quot;1.3.2&quot;);
	&lt;/script&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;css/prettyPhoto.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;css/gallery.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; title=&quot;no title&quot; charset=&quot;utf-8&quot;&gt;
	&lt;script src=&quot;js/jquery.prettyPhoto.js&quot;&gt;&lt;/script&gt;
&nbsp;
	&lt;script&gt;
		$(document).ready(function(){
		// prettyPhoto
			$(&quot;a[rel^='prettyPhoto']&quot;).prettyPhoto({
				showTitle: false
			});
&nbsp;
			$('.img-directory a').click(function(){
				$.get($(this).attr(&quot;href&quot;), function(data){
					$(&quot;#content_main&quot;).slideUp(&quot;slow&quot;, function(){
					$(&quot;#content_main&quot;).html(data)}), $(&quot;#content_main&quot;).slideDown()
				});
				return false;
			})
&nbsp;
			$('.img-breadcrumbs').click(function(){
				$.get($(this).attr(&quot;href&quot;), function(data){
					$(&quot;#content_main&quot;).slideUp(&quot;slow&quot;, function(){
					$(&quot;#content_main&quot;).html(data)}), $(&quot;#content_main&quot;).slideDown()
				});
				return false;
			});
		});
	&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'inc/imgbrowz0r.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// These are all settings (set to default). The settings are not validated since you have to configure everything.</span>
<span style="color: #666666; font-style: italic;">// There is a chance that ImgBrowz0r stops working if you enter the wrong values.</span>
<span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #666666; font-style: italic;">// Directory settings. These are required. Without trailing slash. (required)</span>
	<span style="color: #0000ff;">'images_dir'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'images/gallery'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'cache_dir'</span>                <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'images/cache'</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Url settings. These are required. Without trailing slash. (required)</span>
	<span style="color: #666666; font-style: italic;">// %PATH% is replaced with the directory location and page number</span>
	<span style="color: #0000ff;">'main_url'</span>                 <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http://localhost:8888/tutorials/jquery_gallery/index.php?q=%PATH%'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'images_url'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http:///localhost:8888/tutorials/jquery_gallery/images/gallery'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'cache_url'</span>                <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http:///localhost:8888/tutorials/jquery_gallery/images/cache'</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Sorting settings (optional)</span>
	<span style="color: #0000ff;">'sort_by'</span>                  <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// 1 = filename, 2 = extension (png, gif, etc.), 3 = inode change time of file</span>
	<span style="color: #0000ff;">'sort_order'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// true = ascending, false = descending</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Thumbnail settings (optional)</span>
	<span style="color: #0000ff;">'thumbs_per_page'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">12</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Amount of thumbnails per page</span>
	<span style="color: #0000ff;">'max_thumb_row'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Amount of thumbnails on a row</span>
	<span style="color: #0000ff;">'max_thumb_width'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Maximum width of thumbnail</span>
	<span style="color: #0000ff;">'max_thumb_height'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Maximum height of thumbnail</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Time settings (optional)</span>
	<span style="color: #0000ff;">'time_format'</span>              <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'F jS, Y'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Date formatting. Look at the PHP date() for help: http://nl3.php.net/manual/en/function.date.php</span>
	<span style="color: #0000ff;">'time_zone'</span>                <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Timezone. Example: 1</span>
	<span style="color: #0000ff;">'enable_dst'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Daylight saving time (DST). Set this to true to enable it.</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Misc settings (optional)</span>
	<span style="color: #0000ff;">'ignore_port'</span>              <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Ignore port in url. Set this to true to ignore the port.</span>
	<span style="color: #0000ff;">'dir_thumbs'</span>               <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Show a thumbnail in a category box. Default is false.</span>
	<span style="color: #0000ff;">'random_thumbs'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Use random thumbnails for categories. Default is false.</span>
	<span style="color: #0000ff;">'read_thumb_limit'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span> <span style="color: #666666; font-style: italic;">// See README for information about this setting.</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Start the class</span>
<span style="color: #000088;">$gallery</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> imgbrowz0r<span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">// Prepare everything. This function must be called before you call other functions.</span>
<span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Generate navigation and statistics</span>
<span style="color: #000088;">$gallery_breadcrumbs</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">breadcrumbs</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gallery_pagination</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pagination</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div id=&quot;content_main&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Display navigation</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;imgbrowz0r-navigation&quot;&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gallery_breadcrumbs</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gallery_pagination</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Display images and directories</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$gallery</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">browse</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Display navigation</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;imgbrowz0r-navigation&quot;&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gallery_pagination</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gallery_breadcrumbs</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;&lt;!--content_main--&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<h2>Download</h2>
<p>You can download the files used in this tutorial <a href="http://www.thetutorialblog.com/files/tutorials/jquery_gallery.zip">here</a></p>
<h2>Final words</h2>
<p>I hope this tutorial has been useful for you and that you can take something you have learnt from it and use it in future projects.</p>
<p>Please feel free to leave a comment.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/php/php-gallery-with-no-page-reloads-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax Helper For CodeIgniter [Video]</title>
		<link>http://www.thetutorialblog.com/php/ajax-helper-for-codeigniter-video/</link>
		<comments>http://www.thetutorialblog.com/php/ajax-helper-for-codeigniter-video/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 16:59:46 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[CI]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[video tutorial]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=162</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	Blip.tv Page Link to helper Twitter No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2Fajax-helper-for-codeigniter-video%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2Fajax-helper-for-codeigniter-video%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="Ajax Helper For CodeIgniter [Video]" alt=" Ajax Helper For CodeIgniter [Video]" /><br />
			</a>
		</div>
<p><embed src="http://blip.tv/play/AYG3kl8A" type="application/x-shockwave-flash" width="400" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<p><a href="http://blip.tv/file/2980874">Blip.tv Page</a></p>
<p><a href="http://codeigniter.com/wiki/AJAX_for_CodeIgniter/">Link to helper</a></p>
<p><a href="http://twitter.com/wezpyke">Twitter</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/php/ajax-helper-for-codeigniter-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASCIICasts: AJAX History and Bookmarks</title>
		<link>http://www.thetutorialblog.com/external/asciicasts-ajax-history-and-bookmarks/</link>
		<comments>http://www.thetutorialblog.com/external/asciicasts-ajax-history-and-bookmarks/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 22:30:25 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[External]]></category>
		<category><![CDATA[active-record]]></category>
		<category><![CDATA[active-support]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[controllers]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[rails-22]]></category>
		<category><![CDATA[rails-23]]></category>
		<category><![CDATA[refactoring]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=133</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	View full tutorial In the last episode we added AJAX functionality to a paginated list of products. Instead of acting as normal HTML links, the paginated links had click events added to them via unobtrusive JavaScript so that when clicked they made an AJAX request that updated the main content of the page with a [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fexternal%2Fasciicasts-ajax-history-and-bookmarks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fexternal%2Fasciicasts-ajax-history-and-bookmarks%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="ASCIICasts: AJAX History and Bookmarks" alt=" ASCIICasts: AJAX History and Bookmarks" /><br />
			</a>
		</div>
<p><a href="http://asciicasts.com/episodes/175-ajax-history-and-bookmarks">View full tutorial</a></p>
<p>In the last episode we added AJAX functionality to a paginated list of products. Instead of acting as normal HTML links, the paginated links had click events added to them via unobtrusive JavaScript so that when clicked they made an AJAX request that updated the main content of the page with a new page of products.</p>
<p><img class="alignnone size-full wp-image-134" title="AJAX History and Bookmarks" src="http://www.thetutorialblog.com/wp-content/uploads/2009/09/E175I01.png" alt="AJAX History and Bookmarks" width="576" height="307" /></p>
<h3><span id="more-133"></span></h3>
<h3>Problems With AJAX</h3>
<p>Because we’re using AJAX to update the page the URL doesn’t change when a new page of products is loaded. This means that if we reload the page, or bookmark it and return to it later, the first page of products will be shown no matter what page of products we were on. Another consequence of using AJAX is that changing the page of links we’re viewing doesn’t add the previous page to the browser’s history, so we can’t use the back and forward buttons to move through the pages we’ve just viewed.</p>
<p>So there are disadvantages to our AJAX approach; how can we work around them? That’s what we’ll show you in this episode. Be warned that this episode will be more about JavaScript than Ruby on Rails as the issues we’ll be dealing with are on the client-side.</p>
<p>There are a number of JavaScript libraries we could use to solve this problem. One of the oldest is <a href="http://code.google.com/p/reallysimplehistory/">reallysimplehistory</a>, available on Google code. There is also Yahoo’s <a href="http://developer.yahoo.com/yui/history/">Browser History Manager</a>. Yahoo have a number of JavaScript libraries available so it’s worth a look. Another option is Asual’s <a href="http://www.asual.com/swfaddress/">SWFAddress</a>, which works with Flash as well as JavaScript.</p>
<p>All of the libraries mentioned above work with plain JavaScript, but as we’re using jQuery in our application it would be better if we could find one designed to work with that. Asual, mentioned above, have released a plugin called <a href="http://www.asual.com/jquery/address/">jQuery Address</a> that would work, but instead we’re going to use a different one called <a href="http://benalman.com/projects/jquery-url-utils-plugin/">jQuery URL Utils plugin</a>. This plugin has a lot of functionality despite its small size (less than 4KB minified) and comes with good documentation.</p>
<p><a href="http://asciicasts.com/episodes/175-ajax-history-and-bookmarks">Continue reading full tutorial...</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/external/asciicasts-ajax-history-and-bookmarks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send form data to PHP without the whole page reloading using jQuery</title>
		<link>http://www.thetutorialblog.com/php/send-form-data-to-php-without-the-whole-page-reloading-using-jquery/</link>
		<comments>http://www.thetutorialblog.com/php/send-form-data-to-php-without-the-whole-page-reloading-using-jquery/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 00:43:14 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Text Tutorials]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[nettuts]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[screenr]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=121</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	This is my screencast for the Nettuts/Screenr screencast competition. I feel as though I rushed it because I had to do it under 5 minutes but I hope you learn a thing or two from it. Source Files No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2Fsend-form-data-to-php-without-the-whole-page-reloading-using-jquery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2Fsend-form-data-to-php-without-the-whole-page-reloading-using-jquery%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="Send form data to PHP without the whole page reloading using jQuery" alt=" Send form data to PHP without the whole page reloading using jQuery" /><br />
			</a>
		</div>
<p>This is my screencast for the Nettuts/Screenr screencast competition. I feel as though I rushed it because I had to do it under 5 minutes but I hope you learn a thing or two from it.</p>
<p><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_0817090731.swf' /><param name='flashvars' value='i=10656' /><param name='allowFullScreen' value='true' /><embed src='http://screenr.com/Content/assets/screenr_0817090731.swf' flashvars='i=10656' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object></p>
<p><a href="http://www.thetutorialblog.com/files/tutorials/jquery_form.zip">Source Files</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/php/send-form-data-to-php-without-the-whole-page-reloading-using-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10 CakePHP Tutorials You Should Read</title>
		<link>http://www.thetutorialblog.com/general/5-cakephp-tutorials-you-should-read/</link>
		<comments>http://www.thetutorialblog.com/general/5-cakephp-tutorials-you-should-read/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 23:25:05 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[cakephp 1.2]]></category>
		<category><![CDATA[cakephp theme]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[controllers]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[image upload]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[kohana]]></category>
		<category><![CDATA[meta tags]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[mvc pattern]]></category>
		<category><![CDATA[page titles]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[scriptaculous]]></category>
		<category><![CDATA[sessions]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[theming]]></category>
		<category><![CDATA[uploader plugin]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[views]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=87</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	There are a number of frameworks available for PHP such as CodeIgnitor, Zend, Symfony, Kohana and many more. In this article you will find tutorials that I have found on the web that will help PHP programmers that are new to the MVC pattern or CakePHP. CakePHP is an amazing framework if you know how [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fgeneral%2F5-cakephp-tutorials-you-should-read%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fgeneral%2F5-cakephp-tutorials-you-should-read%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="10 CakePHP Tutorials You Should Read" alt=" 10 CakePHP Tutorials You Should Read" /><br />
			</a>
		</div>
<p><img class="alignleft size-full wp-image-88" title="cake-logo" src="http://www.thetutorialblog.com/wp-content/uploads/2009/07/cake-logo.png" alt="cake logo 10 CakePHP Tutorials You Should Read" width="180" height="180" />There are a number of frameworks available for <a href="http://www.php.net">PHP</a> such as <a href="http://codeigniter.com/" target="_blank">CodeIgnitor</a>, <a href="http://framework.zend.com/" target="_blank">Zend</a>, <a href="http://www.symfony-project.org/" target="_blank">Symfony</a>, <a href="http://www.kohanaphp.com/" target="_blank">Kohana</a> and many more. In this article you will find tutorials that I have found on the web that will help PHP programmers that are new to the <a href="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller" target="_blank">MVC pattern</a> or <a href="http://www.cakephp.org">CakePHP</a>.</p>
<p>CakePHP is an amazing framework if you know how to use it, but the documentation for CakePHP is quite badly written and can cause confusion for new users. Here are a few links to try and make life easier for new and experienced CakePHP users.</p>
<ol>
<li><a href="http://cakebaker.42dh.com/2007/01/03/validation-with-cakephp-12/" target="_blank">Validation with CakePHP</a></li>
<li><a href="http://www.pseudocoder.com/archives/2008/01/07/theming-with-cakephp/" target="_blank">Theming with CakePHP</a></li>
<li><a href="http://bakery.cakephp.org/articles/view/getting-started-quickly-with-scriptaculous-effects" target="_blank">Getting started quickly with Scriptaculous effects</a></li>
<li><a href="http://dieter.plaetinck.be/drag_n_drop_tutorial_with_cakephp_ajax_prototype_scriptaculous" target="_blank">Drag 'n drop tutorial with the CakePHP 1.2 Ajax helper, Prototype framework and Scriptaculous library</a></li>
<li><a href="http://labs.iamkoa.net/2007/11/08/secure-cakephp-via-sessions-login-logout/" target="_blank">Secure CakePHP via Sessions &amp; Magic (Login / Logout)</a></li>
<li><a href="http://aranworld.com/article/161/cakephp-acl-tutorial-what-is-it" target="_blank">CakePHP ACL Tutorial</a></li>
<li><a href="http://www.webdevelopment2.com/cakephp-bake-baking-models-controllers-views-cakephp-12/" target="_blank">CakePHP Bake - Baking Models, Controllers and Views the CakePHP 1.2 Way</a></li>
<li><a href="http://jamienay.com/blog/featured/cascading-dynamic-meta-tags-and-page-titles-in-cakephp-12/" target="_blank">Cascading Dynamic Meta Tags and Page Titles in CakePHP 1.2</a></li>
<li><a href="http://bakery.cakephp.org/articles/view/jquery-image-upload-crop" target="_blank">jQuery image upload &amp; crop</a></li>
<li><a href="http://www.milesj.me/resources/script/uploader-plugin" target="_blank">Uploader - Plugin</a></li>
</ol>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/general/5-cakephp-tutorials-you-should-read/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

