<?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>cakebaker &#187; ajax</title>
	<atom:link href="http://cakebaker.42dh.com/tags/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Mon, 19 Jul 2010 14:23:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Edit in place with JQuery and CakePHP</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/</link>
		<comments>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 10:07:41 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/</guid>
		<description><![CDATA[Sometimes it is quite handy if the users of an application can simply click on some text to edit it. Adding such a feature to your application is not very difficult as you will see. At first we have to get the Jeditable plugin (plus the JQuery library if you don&#8217;t have it already) and [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is quite handy if the users of an application can simply click on some text to edit it. Adding such a feature to your application is not very difficult as you will see.</p>
<p>At first we have to get the <a href="http://www.appelsiini.net/projects/jeditable">Jeditable</a> plugin (plus the <a href="http://jquery.com/">JQuery</a> library if you don&#8217;t have it already) and place it in app/webroot/js. In this folder we also create a js file which will contain the Javascript code we have to write (I will name this file example.js). </p>
<p>To use the Javascript files, we have to include them in the layout (or in the view, see <a href="http://cakebaker.42dh.com/2007/02/21/referencing-javascript-files/">&#8220;Referencing Javascript files&#8221;</a> for more information):</p>
<pre>
// app/views/layouts/default.ctp
&lt;?php echo $javascript-&gt;link(array('jquery-1.2.3', 'jquery.jeditable', 'example')); ?&gt;
</pre>
<p>Don&#8217;t forget to add the Javascript helper to the $helpers array of your (App)Controller.</p>
<p>The next step is to write the &#8220;normal&#8221; functionality of the application, in this example we simply list the titles of all posts. The controller (app/controllers/posts_controller.php):</p>
<pre>
class PostsController extends AppController {

    public function index() {
        $this-&gt;set('posts', $this-&gt;Post-&gt;find('all'));
    }
}
</pre>
<p>And the view (app/views/posts/index.ctp):</p>
<pre>
&lt;?php foreach ($posts as $post): ?&gt;
    &lt;div class="post" id="&lt;?php echo $post['Post']['id']; ?&gt;"&gt;&lt;?php echo $post['Post']['title']; ?&gt;&lt;/div&gt;
&lt;?php endforeach; ?&gt;
</pre>
<p>With that we are ready to add the edit in place functionality. Thanks to the Jeditable plugin this is an easy task: we only have to define the editable element(s), the url to which the changes should be posted, plus some parameters.</p>
<pre>
// app/webroot/js/example.js
$(function() {
    $('.post').editable('/posts/updateTitle', {
         id        : 'data[Post][id]',
         name      : 'data[Post][title]',
         type      : 'text',
         cancel    : 'Cancel',
         submit    : 'Save',
         tooltip   : 'Click to edit the title'
    });
});
</pre>
<p>I think this code is self-explanatory (if not, please leave a comment), so we can go on to implement the updateTitle action. We also add the RequestHandler component to our controller, so that the response of the updateTitle action automatically uses the ajax layout:</p>
<pre>
class PostsController extends AppController {
    public $components = array('RequestHandler');

    public function index() {
        $this-&gt;set('posts', $this-&gt;Post-&gt;find('all'));
    }

    public function updateTitle() {
        if ($this-&gt;data) {
            App::import('Core', 'sanitize');
            $title = Sanitize::clean($this-&gt;data['Post']['title']);

            $this-&gt;Post-&gt;id = $this-&gt;data['Post']['id'];
            $this-&gt;Post-&gt;saveField('title', $title);
            $this-&gt;set('posttitle', $title);
        }
    }
}
</pre>
<p>Last, but not least, we have to create a simple view for the updateTitle action (app/views/posts/update_title.ctp):</p>
<pre>
&lt;?php echo $posttitle;?&gt;
</pre>
<p>That&#8217;s it, our application now provides edit in place functionality. Happy baking :)</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/feed/</wfw:commentRss>
		<slash:comments>75</slash:comments>
		</item>
		<item>
		<title>Livesearch with CakePHP</title>
		<link>http://cakebaker.42dh.com/2006/11/22/livesearch-with-cakephp/</link>
		<comments>http://cakebaker.42dh.com/2006/11/22/livesearch-with-cakephp/#comments</comments>
		<pubDate>Wed, 22 Nov 2006 13:32:47 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/11/22/livesearch-with-cakephp/</guid>
		<description><![CDATA[The guys from Justkez have published a nice tutorial about creating a live search with CakePHP. If you consider to integrate such a search in your application, have a look at that tutorial, it is a good starting point.]]></description>
			<content:encoded><![CDATA[<p>The guys from Justkez have published a nice <a href="http://www.justkez.com/cakephp-livesearch/">tutorial</a> about creating a live search with CakePHP. If you consider to integrate such a search in your application, have a look at that tutorial, it is a good starting point.</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/11/22/livesearch-with-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating multiple divs with Ajax. Without crashing Firefox</title>
		<link>http://cakebaker.42dh.com/2006/08/18/updating-multiple-divs-with-ajax-without-crashing-firefox/</link>
		<comments>http://cakebaker.42dh.com/2006/08/18/updating-multiple-divs-with-ajax-without-crashing-firefox/#comments</comments>
		<pubDate>Fri, 18 Aug 2006 07:37:57 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=248</guid>
		<description><![CDATA[In an earlier post I showed you how you can update multiple divs with Ajax. But there was one problem: it crashed Firefox on my machine, and other people reported the same problem, whereas it worked for others&#8230; In a comment, Josh Southern, pointed me to the cause of the problem: the &#8220;latest&#8221; version, 1.4, [...]]]></description>
			<content:encoded><![CDATA[<p>In an earlier <a href="http://cakebaker.42dh.com/2006/06/29/how-to-update-multiple-divs-with-ajax/">post</a> I showed you how you can update multiple divs with Ajax. But there was one problem: it crashed Firefox on my machine, and other people reported the same problem, whereas it worked for others&#8230;</p>
<p>In a <a href="http://cakebaker.42dh.com/2006/06/29/how-to-update-multiple-divs-with-ajax/#1356">comment</a>, Josh Southern, pointed me to the cause of the problem: the &#8220;latest&#8221; version, 1.4, of <a href="http://prototype.conio.net/">prototype</a>, the Javascript framework used by CakePHP, caused the problem. After replacing the prototype library with the latest version (1.5.0_rc final) provided with <a href="http://script.aculo.us/">script.aculo.us</a>, the example worked fine with Firefox. Thanks to Josh for the hint!</p>
<p>Update (2006-10-01): Corrected links.</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/08/18/updating-multiple-divs-with-ajax-without-crashing-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to update multiple divs with Ajax</title>
		<link>http://cakebaker.42dh.com/2006/06/29/how-to-update-multiple-divs-with-ajax/</link>
		<comments>http://cakebaker.42dh.com/2006/06/29/how-to-update-multiple-divs-with-ajax/#comments</comments>
		<pubDate>Thu, 29 Jun 2006 13:32:02 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=218</guid>
		<description><![CDATA[This is a question which arises from time to time in the CakePHP google group. There is an example in the group, but I have to admit I didn&#8217;t understood it the first time I read it. So I try to provide a better example. First we create a view with an Ajax link and [...]]]></description>
			<content:encoded><![CDATA[<p>This is a question which arises from time to time in the <a href="http://groups.google.com/group/cake-php">CakePHP google group</a>. There is an <a href="http://groups.google.com/group/cake-php/browse_thread/thread/64187c8a41e8750f/5bddef3d172b7109">example</a> in the group, but I have to admit I didn&#8217;t understood it the first time I read it. So I try to provide a better example.</p>
<p>First we create a view with an Ajax link and two divs we want to update:<br />
<code>&amp;lt;?php echo $ajax-&amp;gt;link('Link', '/test/update', array('update' =&amp;gt; array('first', 'second'))); ?&amp;gt;
&amp;lt;div id="first"&amp;gt; first div &amp;lt;/div&amp;gt;
&amp;lt;div id="second"&amp;gt; second div &amp;lt;/div&amp;gt;</code></p>
<p>The update function of the test controller is very simple, we just say it should use the ajax layout:<br />
<code>function update()
{
 &amp;nbsp; &amp;nbsp;$this-&amp;gt;layout = 'ajax';
}</code></p>
<p>As last step we have to create the update view.<br />
<code>&amp;lt;?php echo $ajax-&amp;gt;div('first'); ?&amp;gt;
first div updated: &amp;lt;?php echo strtotime('now'); ?&amp;gt; 
&amp;lt;?php echo $ajax-&amp;gt;divEnd('first'); ?&amp;gt;
&amp;lt;?php echo $ajax-&amp;gt;div('second'); ?&amp;gt;
second div updated
&amp;lt;?php echo $ajax-&amp;gt;divEnd('second'); ?&amp;gt;</code></p>
<p>That&#8217;s it. If you click on the link the divs should get updated (I say &#8220;should&#8221; as it crashes for some reason my Firefox, but it works fine with Konqueror).</p>
<p><strong>Update (2006-08-18)</strong>: To avoid that Firefox crashes, you have to use a prototype version higher than 1.4. Thanks to Josh Southern for the hint!</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/06/29/how-to-update-multiple-divs-with-ajax/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>AjaxLoad &#8211; custom ajax activity indicators</title>
		<link>http://cakebaker.42dh.com/2006/06/28/ajaxload-custom-ajax-activity-indicators/</link>
		<comments>http://cakebaker.42dh.com/2006/06/28/ajaxload-custom-ajax-activity-indicators/#comments</comments>
		<pubDate>Wed, 28 Jun 2006 17:03:45 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[graphics]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=217</guid>
		<description><![CDATA[AjaxLoad is a nice little service which allows you to create customized ajax activity indicator gifs.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ajaxload.info/">AjaxLoad</a> is a nice little service which allows you to create customized ajax activity indicator gifs. </p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/06/28/ajaxload-custom-ajax-activity-indicators/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Autocompletion &#8211; the easy way</title>
		<link>http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/</link>
		<comments>http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/#comments</comments>
		<pubDate>Tue, 06 Jun 2006 14:50:08 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[component]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=202</guid>
		<description><![CDATA[Nate has published a nice component (update 2009-05-27: for CakePHP 1.2, please use the version from GitHub which contains the patch from Mariano Guezuraga) which makes the creation of an input field with Ajax autocompletion very easy. In fact, it is (almost) as easy as creating a simple input field. What do you have to [...]]]></description>
			<content:encoded><![CDATA[<p>Nate has published a nice <a href="http://cakeforge.org/snippet/detail.php?type=snippet&amp;id=70">component</a> (update 2009-05-27: for CakePHP 1.2, please use the version from <a href="http://github.com/cakebaker/autocomplete-component">GitHub</a> which contains the patch from <a href="http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/#comment-111744">Mariano Guezuraga</a>) which makes the creation of an input field with Ajax autocompletion very easy. In fact, it is (almost) as easy as creating a simple input field. </p>
<p>What do you have to do? Put the component to your app/controllers/components directory. In your controller you have to include the component with:</p>
<pre>
<code>var $components = array('Autocomplete');</code>
</pre>
<p>Also make sure that you have defined the Ajax helper in your controller. I usually add it to the helpers array in my AppController (app/app_controller.php):</p>
<pre>
<code>var $helpers = array('Html', 'Javascript', 'Ajax');</code>
</pre>
<p>Please notice that the Ajax helper requires the <a href="http://www.prototypejs.org/">Prototype</a> and <a href="http://script.aculo.us/">Scriptaculous</a> Javascript libraries (they are placed in app/webroot/js). They are typically loaded in the &#8220;head&#8221; section of your layout with:</p>
<pre>
<code>&lt;?php
echo $javascript-&gt;link('prototype');
echo $javascript-&gt;link('scriptaculous');
?&gt;</code>
</pre>
<p>After that, you can add the autocompleter to your view. </p>
<pre>
<code>&lt;?php echo $ajax-&gt;autocomplete('Company.name'); ?&gt;</code>
</pre>
<p>One condition must be fullfilled to make this code snippet work: the controller which renders the view must have access to the appropriate model, in our example to the Company model. </p>
<p>That&#8217;s it :)</p>
<p>Thanks to Nate for the hint.</p>
<p>Update 2010-03-08: Added a paragraph about the requirement of the Prototype and Scriptaculous libraries. Thanks to <a href="http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/#comment-150050">Andy Potanin</a> for the hint.</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>89</slash:comments>
		</item>
		<item>
		<title>An Ajax file upload progress bar</title>
		<link>http://cakebaker.42dh.com/2006/04/28/an-ajax-file-upload-progress-bar/</link>
		<comments>http://cakebaker.42dh.com/2006/04/28/an-ajax-file-upload-progress-bar/#comments</comments>
		<pubDate>Fri, 28 Apr 2006 07:26:49 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=174</guid>
		<description><![CDATA[Felix Geisendörfer has announced an Ajax file upload progress bar which integrates with CakePHP. The solution looks very promising, but check it out yourself, there is a demo online the demo is no longer available and Felix now recommends to use a flash-based uploader (see the aforementioned article).]]></description>
			<content:encoded><![CDATA[<p>Felix Geisendörfer has <a href="http://www.thinkingphp.org/2006/04/27/an-ajax-file-upload-progressbar/">announced</a> an Ajax file upload progress bar which integrates with CakePHP. The solution looks very promising, <del datetime="2009-06-18T14:11:25+00:00">but check it out yourself, there is a demo online</del> the demo is no longer available and Felix now recommends to use a flash-based uploader (see the aforementioned article). </p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/04/28/an-ajax-file-upload-progress-bar/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A simple redirect component</title>
		<link>http://cakebaker.42dh.com/2006/03/28/a-simple-redirect-component/</link>
		<comments>http://cakebaker.42dh.com/2006/03/28/a-simple-redirect-component/#comments</comments>
		<pubDate>Tue, 28 Mar 2006 15:11:57 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=153</guid>
		<description><![CDATA[I already wrote about doing a redirect with Ajax. Now, I created a simple component from that code I presented there: // app/controllers/components/redirect.php class RedirectComponent extends Object { var $controller; var $components = array('RequestHandler'); function startup(&#38;$controller) { $this-&#62;controller =&#38; $controller; } function goto($url) { if ($this-&#62;RequestHandler-&#62;isAjax()) { $this-&#62;controller-&#62;set('url', $url); } else { $this-&#62;controller-&#62;redirect($url); } } [...]]]></description>
			<content:encoded><![CDATA[<p>I already wrote about doing a <a href="http://cakebaker.42dh.com/2006/03/15/redirect-with-ajax/">redirect with Ajax</a>. Now, I created a simple component from that code I presented there:</p>
<pre>
// app/controllers/components/redirect.php
class RedirectComponent extends Object
{
    var $controller;
    var $components = array('RequestHandler');

    function startup(&amp;$controller)
    {
        $this-&gt;controller =&amp; $controller;
    }

    function goto($url)
    {
        if ($this-&gt;RequestHandler-&gt;isAjax())
        {
            $this-&gt;controller-&gt;set('url', $url);
        }
        else
        {
            $this-&gt;controller-&gt;redirect($url);
        }
    }
}
</pre>
<p>The usage is easy. Add the component to the components array: </p>
<pre>
var $components = array('Redirect');
</pre>
<p>Afterwards you can use it in the following way:</p>
<pre>
$this-&gt;Redirect-&gt;goto('/mycontroller/myaction');
</pre>
<p>Do not forget do add the code snippet to your view which necessary to do the javascript redirect:</p>
<pre>
&lt;?php if (isset($url)) echo $javascript-&gt;codeBlock('window.location = '.json_encode($url)); ?&gt;
</pre>
<p>Update (2006-04-03): Small bug fixed in startup function.<br />
Update (2009-12-05): Using json_encode to prevent a possible javascript injection problem. Thanks to <a href="http://cakebaker.42dh.com/2006/03/28/a-simple-redirect-component/#comment-141239">pb</a> for the hint.</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/03/28/a-simple-redirect-component/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>30 Ajax tutorials</title>
		<link>http://cakebaker.42dh.com/2006/03/19/30-ajax-tutorials/</link>
		<comments>http://cakebaker.42dh.com/2006/03/19/30-ajax-tutorials/#comments</comments>
		<pubDate>Sun, 19 Mar 2006 09:13:05 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=146</guid>
		<description><![CDATA[Max Kiesler has published in his blog a list of 30 Ajax tutorials. If you use Ajax, I am sure you will find in this list some new ideas. I am especially happy about the fact that one of these 30 tutorials is an article I wrote in this blog two months ago (&#8220;Submit a [...]]]></description>
			<content:encoded><![CDATA[<p>Max Kiesler has published in his blog a <a href="http://www.maxkiesler.com/index.php/weblog/comments/round_up_of_30_ajax_tutorials/">list of 30 Ajax tutorials</a>. If you use Ajax, I am sure you will find in this list some new ideas. I am especially happy about the fact that one of these 30 tutorials is an article I wrote in this blog two months ago (&#8220;<a href="http://cakebaker.42dh.com/2006/01/18/submit-a-form-with-ajax/">Submit a form with Ajax</a>&#8220;).</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/03/19/30-ajax-tutorials/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Redirect with Ajax</title>
		<link>http://cakebaker.42dh.com/2006/03/15/redirect-with-ajax/</link>
		<comments>http://cakebaker.42dh.com/2006/03/15/redirect-with-ajax/#comments</comments>
		<pubDate>Wed, 15 Mar 2006 08:28:23 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=142</guid>
		<description><![CDATA[In my current project I have a login form I want to validate with Ajax. If everything is ok, the user should be redirected to the respective start page. As it seems to be impossible to do the redirect on the server-side (at least to me), I do it on the client-side. I use the [...]]]></description>
			<content:encoded><![CDATA[<p>In my current project I have a login form I want to validate with Ajax. If everything is ok, the user should be redirected to the respective start page. As it seems to be impossible to do the redirect on the server-side (at least to me), I do it on the client-side. I use the following snippet in my view:</p>
<pre>
&lt;div id="login"&gt;
    &lt;?php echo $ajax-&gt;form(array('action' =&gt; '/login'), 'post',
                                              array('update' =&gt; 'login')); ?&gt;
    ...
    &lt;/form&gt;
    &lt;?php if (isset($url)) echo $javascript-&gt;codeBlock('window.location = "'.$url.'"'); ?&gt;
&lt;/div&gt;
</pre>
<p>And in my controller I use the following code:</p>
<pre>
if ($this-&gt;RequestHandler-&gt;isAjax())
{
    $this-&gt;set('url', '/'.$page);
}
else
{
    $this-&gt;redirect($page);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/03/15/redirect-with-ajax/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
