very cool Miles, I'll definitely give this a spin.

On Sep 27, 11:29 am, Miles J <mileswjohn...@gmail.com> wrote:
> http://www.milesj.me/resources/script/ajax-handler-component
>
> On Sep 27, 10:21 am, mikeottinger <mikeottin...@gmail.com> wrote:
>
> > Excellent, works like a charm, Thanks!
>
> > On Sep 27, 9:51 am, brian <bally.z...@gmail.com> wrote:
>
> > > I believe you can do:
>
> > > $this->autoRender = $this->layout = false;
> > > echo $new_order;
> > > exit;
>
> > > On Sun, Sep 27, 2009 at 3:14 AM, mikeottinger <mikeottin...@gmail.com> 
> > > wrote:
>
> > > > Hi All,
>
> > > > Very simple question, I have a controller called by an ajax call that
> > > > will return a single number for its response. I couldn't find a way to
> > > > return just that value without going through the process of creating
> > > > an element for it and doing something like this:
>
> > > > $this->set('value', $new_order);
> > > > $this->render('/elements/sort_edit_form', 'ajax');
>
> > > > The contents of the sort_edit_form.ctp are mind-numbingly simple:
>
> > > > <?= $value; ?>
>
> > > > Anyway to bypass the use of an element and simply return the value
> > > > straight back? Or is this how cakephp insists on doing things?
>
> > > > Thanks in advance.
>
>
--~--~---------~--~----~------------~-------~--~----~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to