<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Edit in place with JQuery and CakePHP</title>
	<atom:link href="http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 16 Mar 2010 15:25:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-142641</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 23 Dec 2009 08:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-142641</guid>
		<description>@Jens: Hm, do you use the Security component? If that&#039;s the case, your request probably got &quot;blackholed&quot;. You could resolve this issue by defining a blackHoleCallback method:

&lt;code&gt;
public function beforeFilter(){
    $this-&gt;Security-&gt;blackHoleCallback = &quot;isAllowedAjaxRequest&quot;;
}

public function isAllowedAjaxRequest($error){
    if($this-&gt;params[&#039;controller&#039;] == &quot;posts&quot; &amp;&amp; $this-&gt;params[&#039;action&#039;] == &quot;updateTitle&quot;) {
        return;
    } 

    die(&#039;invalid request&#039;);
}
&lt;/code&gt;
Hope this helps!</description>
		<content:encoded><![CDATA[<p>@Jens: Hm, do you use the Security component? If that&#8217;s the case, your request probably got &#8220;blackholed&#8221;. You could resolve this issue by defining a blackHoleCallback method:</p>
<pre><code>public function beforeFilter(){
    $this-&gt;Security-&gt;blackHoleCallback = "isAllowedAjaxRequest";
}

public function isAllowedAjaxRequest($error){
    if($this-&gt;params['controller'] == "posts" &amp;&amp; $this-&gt;params['action'] == "updateTitle") {
        return;
    } 

    die('invalid request');
}</code></pre><br />
Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-142497</link>
		<dc:creator>Jens</dc:creator>
		<pubDate>Sun, 20 Dec 2009 14:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-142497</guid>
		<description>After save the form field is empty.</description>
		<content:encoded><![CDATA[<p>After save the form field is empty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-141512</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 07 Dec 2009 15:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-141512</guid>
		<description>@Josh: Hm. Did you check with Firebug (or a similar tool) what is sent to the server? Do you use the Security component? And can you set &quot;debug&quot; in app/config/core.php to a value greater than 0 and check whether there is some notice/warning?</description>
		<content:encoded><![CDATA[<p>@Josh: Hm. Did you check with Firebug (or a similar tool) what is sent to the server? Do you use the Security component? And can you set &#8220;debug&#8221; in app/config/core.php to a value greater than 0 and check whether there is some notice/warning?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-141428</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sun, 06 Dec 2009 03:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-141428</guid>
		<description>@cakeaker @alex:
Thanks, that&#039;s got me most of the way there.  But after I save, though the database is being updated, it goes to a blank page (with the url of my detail page where I&#039;ve implemented the edit in  place...

Can anybody help me out?  It&#039;s also adding an &quot;&gt;&quot; to the end of every value on save...</description>
		<content:encoded><![CDATA[<p>@cakeaker @alex:<br />
Thanks, that&#8217;s got me most of the way there.  But after I save, though the database is being updated, it goes to a blank page (with the url of my detail page where I&#8217;ve implemented the edit in  place&#8230;</p>
<p>Can anybody help me out?  It&#8217;s also adding an &#8220;&gt;&#8221; to the end of every value on save&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-141083</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 01 Dec 2009 16:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-141083</guid>
		<description>@Josh: Thanks for your comment.

Well, you can use the &quot;edit in place&quot; on a detail view in the same way you use it on the index page.

And to make it work for different fields, have a look at the &lt;a href=&quot;http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-100211&quot; rel=&quot;nofollow&quot;&gt;comment from alex&lt;/a&gt;.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@Josh: Thanks for your comment.</p>
<p>Well, you can use the &#8220;edit in place&#8221; on a detail view in the same way you use it on the index page.</p>
<p>And to make it work for different fields, have a look at the <a href="http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-100211" rel="nofollow">comment from alex</a>.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-141050</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 01 Dec 2009 05:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-141050</guid>
		<description>Could anybody explain to me how I would change this to use it as an edit in place on the detail view rather than the index page?  And have it work for all fields?  Actually -- I need to be able to edit the children models of the model whose view I am in...  Is that possible with this?</description>
		<content:encoded><![CDATA[<p>Could anybody explain to me how I would change this to use it as an edit in place on the detail view rather than the index page?  And have it work for all fields?  Actually &#8212; I need to be able to edit the children models of the model whose view I am in&#8230;  Is that possible with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-140844</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 27 Nov 2009 14:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-140844</guid>
		<description>@Momo: You are welcome!</description>
		<content:encoded><![CDATA[<p>@Momo: You are welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Momo the Monster</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-140731</link>
		<dc:creator>Momo the Monster</dc:creator>
		<pubDate>Wed, 25 Nov 2009 22:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-140731</guid>
		<description>Very easy to understand - glad you&#039;re the top search for &#039;editable cakePHP&#039;. Got it up and running on my system in minutes - cheers to you and Mika Tuupola.</description>
		<content:encoded><![CDATA[<p>Very easy to understand &#8211; glad you&#8217;re the top search for &#8216;editable cakePHP&#8217;. Got it up and running on my system in minutes &#8211; cheers to you and Mika Tuupola.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-134710</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 17 Aug 2009 15:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-134710</guid>
		<description>@Stephen: You are welcome!</description>
		<content:encoded><![CDATA[<p>@Stephen: You are welcome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Speakman</title>
		<link>http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/comment-page-2/#comment-134496</link>
		<dc:creator>Stephen Speakman</dc:creator>
		<pubDate>Thu, 13 Aug 2009 03:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2008/02/24/edit-in-place-with-jquery-and-cakephp/#comment-134496</guid>
		<description>@cakebaker: Thanks very much for an excellent snippet and tutorial, this is perfect and much easier to use than Ajax::editable (with jQuery loaded).

@alex: Your code was exactly what I was hoping on achieving, I&#039;ve tweaked it a little and it does the job perfectly! Now for a bit of tinkering and that&#039;s Add, Edit, Delete and View all wrapped into 1 page =]</description>
		<content:encoded><![CDATA[<p>@cakebaker: Thanks very much for an excellent snippet and tutorial, this is perfect and much easier to use than Ajax::editable (with jQuery loaded).</p>
<p>@alex: Your code was exactly what I was hoping on achieving, I&#8217;ve tweaked it a little and it does the job perfectly! Now for a bit of tinkering and that&#8217;s Add, Edit, Delete and View all wrapped into 1 page =]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
