You could just move the whole loop to the view and pass the array from
the controller to it. I guess it really just depends on what you mean
by "on the fly". When I get a chance I'll update my example in the
other thread to produce your desired output.

On Jan 3, 12:02 pm, "skyblueink" <[EMAIL PROTECTED]> wrote:
Chris, very insightful opinion!!
Now it seems to be a time for me to learn something like ajax in
cakePHP.
Could anyone show me how to apply ajax to my tiny program for doing "on
the fly" output?
It could present with a  good starting point  for studying ajax in
Cake.

On 1월4일, 오전1시35분, "skyblueink" <[EMAIL PROTECTED]>
wrote:

> Hi, rpetrain1

> yes there is also a synchronization problem between the controller and
> the view.
> I know that $this->set doesn't do appending, but appending is time
> consuming in real life. What I aim at is 'not appending': instead of
> appending string data, I want to send each datum to view so that the
> user can see the output without enduring the whole appending time. That
> is my point.

> On 1월4일, 오전1시24분, "rpetrain" <[EMAIL PROTECTED]> wrote:

> > The out put that you got is right.
> > When you are using set it is setting the value not appending.
> > In your code you are not printing the value after it has been set each
> > time.
> > By the time the code gets to the call to echo the value of message your
> > loop has already completed and it print outs the last value that you
> > set message to.- 따온 텍스트 숨기기 -- 따온 텍스트 보기 -


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