真的很簡單我的代碼,我用ajax多次工作沒有問題。但現在我已經這樣:Ajax回饋最近頁面的代碼HTML,爲什麼?
var dataForm=jQuery('form').serialize();
jQuery.post(
'/home/index/page/1',
dataForm,
process_Results_Search
);
function process_Results_Search(response)
{
console.log('Im processing data');
console.log(response);
}
在我的控制,我只作簡單的回聲:
echo "im here";
但我的回答是這樣的(最近頁面的內容)。我使用Zend:
<!DOCTYPE HTML>
<html>
<head>
....
im here<!----------in the end of the response!!!---------------->
你明白了什麼,當你看到POST在Firebug的反應? – 2012-07-26 08:54:34