2013-05-02 67 views
0
<Script> 
     new Ajax.Request('http://impact.brighterplanet.com/automobiles.json', { 
       automobile_fuel:'diesel', 
       daily_distance:'1389.45', 
       size_class:'Midsize suv', 
       timeframe:2013-01-01/F2014-01-01, 
       KEY:'46feab14298d36f0d8b48304f81fe068', 

       onSuccess: function(response) { 
        alert(response.decisions.carbon.object.value); 
       } 
     }); 

</script> 

我有一個錯誤「未捕獲的ReferenceError:阿賈克斯沒有定義」 我能做些什麼................ ................Ajax錯誤:未捕獲的ReferenceError:阿賈克斯沒有定義

回答

2

我想你正在使用Prototype。你在這個腳本標籤之前包含了合適的js文件嗎?