[wp-hackers] AJAX from wp-admin/edit.php

Paul paul at codehooligans.com
Tue Jul 27 15:39:39 UTC 2010

Ok. I'll bite. Smells like a support request but here it goes. I just implemented this on a custom plugin. So feeling I might be qualified to answer. But no promises. Some questions. 

1. You added the link. Ok, how are you capturing the click event? Assumed some jQuery or whatever. Have you checked to make sure this is getting properly captured and processed?

2. Also, via your client event processing you are calling the method to post to the server something similar to the examples described http://codex.wordpress.org/AJAX_in_Plugins

2b. You mentioned adding debug to admin-ajax.php. Are you using Firefox + Firebug? You should at least be able to see the post of your message to the server. Anything?

3. How about some code to review?


On Jul 27, 2010, at 11:24 AM, John Gadbois wrote:

> I'm attempting to do an AJAX call from wp-admin/edit.php (I added a link
> after Quick Edit, through the post_row_actions filter for a plugin).  For
> some reason it's not working.  I've verified in Chrome developer tools that
> the request is getting sent to the correct URL, but I'm not getting any
> response at all from the server.  I even put a debug line and die() at the
> top of admin-ajax.php and it didn't return a response.  I've set up AJAX
> successfully on other pages specific to my plugin in the admin section.
> I'm posting using ajaxurl, so it isn't a typo or anything like that.
> Any ideas?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list