You can just do an ajax->submit

<?php
            if (!isset($complete)) $complete = '';
            $options = array(
                'url'       => ''url_for_submit',
                'update'    => 'div_to_update',
                'complete'  => $complete."some effects here
maybe...?");
            echo $ajax->submit('Save', $options);
            ?>

Then in your controller you could make sure the from you had is
rendered again.

$this->render('myform' 'ajax');

The first parameter is a view, and the second parameter tells Cake the
view should be rendered as ajax (which means: with an empty layout).

Gerben.


On 11 apr, 13:36, "rstuker" <[EMAIL PROTECTED]> wrote:
> thanks gerbezomp!. I tried it and is ok. Is there a way to do the same
> when it comes about submitting the same form using $ajax->? i mean no
> reload,because when it happens( the user click the submit button) it
> gets out of my <div>.Obviously, it is expected to do that, just i
> wanna commit new data & remain with no reloading in the same div.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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