Sorry osx boy,

I don't quite get what you're trying to achieve, but it's absolutely
nothing like this! Jquery is part of the html / view layer, and the
model layer can't/shouldn't have anything to do with it!

Perhaps what you want to do is:

-  call a controller function via  a AJAX request
- that controller function calls model->save(), and returns an
appropriate success/fail view to the AJAX request
- Your JS examines what was returned by the request, and closes the
form div accordingly.

On Sep 17, 5:46 pm, osxboy <[EMAIL PROTECTED]> wrote:
> Hi
>
> I want to call:
>
> parent.$.akModalRemove();
>
> in afterSave() but can't work it out!
>
> I want the data to be saved and then
>
> parent.$.akModalRemove();
>
> closes the DIV containing the form
--~--~---------~--~----~------------~-------~--~----~
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