Seems if you want to update a div on error, you should make $ajax-
>submit first.
Then your "div to update" could contain some values in case of error
or an url in case of success. Now if you want this redirection to be
html (not ajax), just use a javascript (window.location) ..
Hope this helps
On Jul 10, 3:41 am, Michael Augustyniak <[EMAIL PROTECTED]>
wrote:
> <?php print $html->formtag();?>
> <?php echo $html->input('User/email', array( 'type' => 'text'));?>
> <?php echo $html->password('User/password');?>
> <?php echo $html->submit('Login',array('url' => '/user/login/'))?>
> </form>
>
> I need submit form on success go somewhere else but on error update a
> div, before update render some info inside this div.
> Well, Rails is so comfortable the I can do dynamic ajax inside
> controller , depends on what I need I can do ajax which I need
> (effects... etc.).
>
> Is it possible to do with cakephp ?
>
> Thank you for help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---