Tuesday, May 31, 2011

Re: Load content into static page with ajax

Just to add:

If I am doing this:

$.ajax({
cache: false,
type: 'post',
url: '/aboutus',
success: function(data) {
alert(data);

I get the entire rendered layout.
How can I avoid this?
I just want the content from this aboutus.ctp file.
I am not using any controller, as I am only working on a static
project. So I don't know where to add $this->autoRender = false;

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: