Hi Mikee, Here's one approach: User submits form via ajax using Js you display a "processing" message Controller action processes the form and redirects* the user to the url
Here's another: User submits the form normally User is redirected to the url for their search results --> If js is disabled, after rendering the results page for the first time, process and cache the results page --> If js is disabled after a sufficient number of seconds redirect to the same url and display the results --> If js is enabled on loading make an ajax request to process and cache the results page - updating the contents of your page. The results in all cases would be pretty similar, for the latter you would need to sniff a little to know if js is enabled (could simply use js to change a value in the submitted form). * To 'redirect' from an ajax call you would use requestAction. HTH, AD7six Please note: The manual/bakery is a good place to start any quest for info. The cake search (at the time of writing) erroneously reports less/no results for the google group. The wiki may contain incorrect info - read at your own risk (it's mainly user submitted) :) You may get your answer quicker by asking on the IRC Channel (you can access it with just a browser here: http://irc.cakephp.org). On Oct 30, 6:18 am, "Mikee Freedom" <[EMAIL PROTECTED]> wrote: > has anyone done anything similar to this in Cake before? or any other > application? > > If the question is seen to be more of a generic one then fair enough. > but if anyone knew of a method within CakePHP to display a processing > screen while PHP performs a function behind the scenes it would be > much appreciated. > > even a nudge in the right direction... > > thanks, > mikee > > On 29/10/06, Mikee Freedom <[EMAIL PROTECTED]> wrote: > > > hey bingo, > > > had a look at it and it was useful in a way. however it seems the > > multi step was more in processing the data rather than any kind of > > display to the user. i've got a handle on how i am searching for the > > data and it is using the very handy findAll method with some creative > > use of bindModel, unbindModel and conditions. > > > however, when my DB grows i think the request to the DB could take > > some time, and then i process the results at the controller / > > component level which will again soak up milliseconds. > > > what i would like is the ability to display an intermediate screen > > while this processing goes on behind the scenes. i didn't really see > > mention of such functionality in that discussion. > > > does this make sense? > > > thanks for your help on this one. > > > cheers, > > mikee > > > On 29/10/06, bingo <[EMAIL PROTECTED]> wrote: > > > > hi Mikee, > > > > read this post...this might give you some ideas > > >http://groups.google.com/group/cake-php/browse_thread/thread/c33b7864... > > > > Cheers > > > bingo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
