Hi,
I have come across one small issue,
Task is Login screen. its a ajax form.
I have 2 fields, user and password. I have kept this form inside the
div with id='loginbox'

Loginbox is a small div box which comes when clicked on the login link

now my submit(login) button is a ajax submit whose action is /login
and i have mentioned the 'update'=>'loginbox'

Inside the controller, it check for different conditions:
1. when no values given, it sets the variable message = 'No input
please type something' and renders the output to loginbox again. (Its
working)

2. when user details entered wrong, it sets the variable message =
'invalid user details please try again' and renders to the loginbox
again (its working)

3. when user details are correct. Here i dont want to render the
output to the loginbox again(think that i just want to go to the index
screen). But as i have given render to the login box while creating
submit button, everything(output) is coming in loginbox div. instead
of rendering to the loginbox, i want everything to come in the main
window.

I tried with redirect, its still showing in loginbox only. Can anybody
tell me, where i am doing mistake.
Thank you
Sanjeev

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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