On Jul 25, 2006, at 10:41 AM, francky06l wrote:

>
> Hello,
>
> I just need to know if the following is normal :
>
> I have view, in which I submit a form and into the controller method I
> do :
>
> $this->autoRender = false;
>
> When I submit that form, I have another tab opening, blank no data (on
> Firefox)..Is it the normal behavior, shouldn't I expect just to "stay"
> on the view I was prior to my submit ?

Yeah that's normal.

Your browser will submit the form data to your application, and once  
it's handled it, you've told Cake not to render anything. So once the  
logic is done in that function, you shouldn't get anything.

> Also the view from which I submit is Ajax, but the submit is not
> because it;s used to upload a file. If there is a better way to come
> back on same screen ..do not hesitate to reply...
> Basically I am in an Ajax view, I need to upload a file in an Iframe
> and come back to my view ...

I'm not sure what you mean here, exactly. If you're upload form is in  
the iframe, then have the action that handles the uploaded file  
redirect to whatever you want displayed after the file is uploaded.

-- John

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to