[wp-trac] [WordPress Trac] #15291: receiving data with response from ajax call
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 3 13:40:18 UTC 2010
#15291: receiving data with response from ajax call
-----------------------------+----------------------------------------------
Reporter: christian_gnoth | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.1
Component: Inline Docs | Version: 3.0.1
Severity: normal | Resolution:
Keywords: ajax,response |
-----------------------------+----------------------------------------------
Comment(by christian_gnoth):
the ajax call is now working, but still the return of data is not working.
I have tried different versions of:
`
$x = new WP_Ajax_Response( array(
'what' => 'post_id',
'id' => $post_id,
'data' => $url,
'supplemental' => $url
) );
// $x->send();
die($url);
`
but I get an error message back that mysql_real_escape_string expects one
parameter and on the end of that the parameter of die is appended.
i do not use mysql_real-escape in my ajax function and it tells it comes
from wp-db.php line 785.
the variables of the wp_ajax_response are not available in the response
function of the jquery.post call.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15291#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list