No it turned out that it was correct as is.  The problem I was having
was related to Firebug I think.

However, I think as long as you are using the same controller to
handle the AJAX work/response as the view that created the page using
the AJAX call, you don't need to specify the longer URL.

I might be wrong on that, but I'm assuming if you wanted the AJAX call
to use a different controller, that's when you would specify the
longer url (ie controllername/action).  Am I wrong?

Regardless, it works now by just calling the action in the controller
(no need to add controllername/action).  It may not hurt to add it
though.

- Dustin Weber
http://www.dustinweber.com




On Mar 30, 10:23 am, "fr3nch13" <[EMAIL PROTECTED]> wrote:
> You have:
> <?php echo $ajax->sortable('questions', array('url' =>'saveOrder')); ?
>
>
>
> Shouldn't the url be /controller/action?
> so like this:
> <?php echo $ajax->sortable('questions', array('url' =>'/faq/
> saveorder/')); ?>


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to