疯狂的XHR错误

Crazy xhr error

Also on the server side error_log:

PHP Notice:  Undefined index:  theid in /.../postsForExtension.php on line 27

That code:

$personid = strip_tags($_POST['theid']);

Note: $personid is true. 

I dont think xhr.responsetext contains valid JSON. So JSON.parse vomits up a syntax error.

What's your JSON response look like?