hi,

usually i do this to implement ajax feeling:

VIEW:
with jquery I call the controller functions and tell cake where (in a
DIV) to write the result

$('#attachments_count').load('countattachments');


CONTROLLER
then all the logic happens in my controller function,
countattachments, and I tell cake to render the ouput:

        $this->set('amount_of_attachments', $input);
        $this->render('render_attachment_count','ajax');

voila..i see the result in that DIV in AJAX manner.

BUT now I do not have the jquery-part.. I have a value in my
controller and i would like to write that value in a DIV, in ajax
manner, cause i dont want to load the whole site. here is what i do

                                $amount_of_attachments = 
$this->countattachments();

                                if ($amount_of_attachments < 5)
                                {
                                  >>>>> RENDER the value in a DIV
                                }

is that even possible???

i appreciate your help

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to