It is deleting, that is ok. the problem is that it is not replacing the
content of my div.
So the method is being executed, but it either not sending anything
back or it is not being cought on the client side.
Armando Sosa wrote:
Maybe it is not deleting it for some reason, try to put
some echo out of the if block just to see if the method is properly
executed.
On 4/19/06, Olivier percebois-Garve
<[EMAIL PROTECTED]>
wrote:
thanks Troy
I tried to change it to a dummy div and it isn't updated either.
I have firebug installed and it tells me that there is no answer.
(beside that it is strange that firebug shows bugs from FF/Firebug
scripts...)
The call seems to be ok because when I refresh manually the delete has
been effective.
So I think that the problem is either :
1. in my delete method and/or the ajax_index view, who are not sending
the response
2. In the page which is not catching the answer.
I would tend more to the 1st solution.
Anyway I need to explore more the example code I can find....
[EMAIL PROTECTED]
wrote:
> I *think* that if you have that link inside the div you are trying
to
> update it could cause problems. Instead you would need an
'oncomplete'
> _javascript_ outside of the div to execute and make that div update.
>
> And to track AJAX calls and their results you can get the FireBug
> extension for FF 1.5. Just go to options and Check the 'Show
> XMLHTTPRequests'. Works amazingly.
>
>
> >
>
>
--
Armando Sosa
www.nolimit-studio.com
www.dospuntocero.info
--~--~---------~--~----~------------~-------~--~----~
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 -~----------~----~----~----~------~----~------~--~---
|
- Re: Ajax refresh Olivier percebois-Garve
-