I moved the Configure::write('debug', 0); inside the if block, still same
thing... The items deletes then 
 ERROR: The requested address 'users/delete_quote/(id number trying to
delete)' was not found on this server fades in where the item was originally
before deletion.

Tried:
 Configure::write('debug', 0);
Configure::write('debug', 1);
Configure::write('debug', 2);

Exact same error.

Ideas?

Dave



-----Original Message-----
From: bcreeve [mailto:[email protected]] 
Sent: March-03-09 4:45 PM
To: CakePHP
Subject: Re: AJAX Delete


First, I would move the Configure::write('debug', 0); to within the if
block.  Then if you hit that URL in your browser you can see any specific
errors.

On Mar 3, 2:46 pm, "Dave Maharaj :: WidePixels.com"
<[email protected]> wrote:
> I am trying to delete a record using an AJAX link. The entry gets 
> deleted, effects and all that great stuff.... but after clicking 
> "delete" I get
> ERROR: The requested address 'users/delete_quote/(id number trying to 
> delete)' was not found on this server.
>
> Now I am deleting the quote from the user page.
>
> Tables Users haveMany Quotes
>
> my users controller code :
>
> function delete_quote($id)
>     // delete selected quote from profile
>     {
>         Configure::write('debug', 0);
>         if ($this->RequestHandler->isAjax()) {
>             $this->Quote->del($id);
>         }
>     }
>
> Ideas of whets wrong or missing?
>
> Thanks
>
> Dave


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