Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/256.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php ExtJS Ajax调用_Php_Ajax_Extjs - Fatal编程技术网

Php ExtJS Ajax调用

Php ExtJS Ajax调用,php,ajax,extjs,Php,Ajax,Extjs,新手问: 我错过什么了吗 加载的脚本 http://extjs.cachefly.net/ext-3.2.1/adapter/ext/ext-base.js http://extjs.cachefly.net/ext-3.2.1/ext-all.js 代码 Ext.onReady(function() { Ext.Ajax.request({ method: 'GET', url: '<?php $template_url."/raw-post.ph

新手问:

我错过什么了吗

加载的脚本

http://extjs.cachefly.net/ext-3.2.1/adapter/ext/ext-base.js
http://extjs.cachefly.net/ext-3.2.1/ext-all.js

代码

Ext.onReady(function() {
    Ext.Ajax.request({
        method: 'GET',
        url: '<?php $template_url."/raw-post.php" ?>',
        params: { Xc : 0, Xp : <?php echo '84'; ?> },
        success: function( result, request ){
            Ext.get('test').dom.innerHTML = result.responseText;
        }
    });
});
Ext.onReady(函数(){
Ext.Ajax.request({
方法:“GET”,
url:“”,
参数:{Xc:0,Xp:},
成功:功能(结果、请求){
Ext.get('test').dom.innerHTML=result.responseText;
}
});
});
raw post.php

echo“这是响应文本”

萤火虫错误

e未定义;window.undefined=window.undefined;Ext=…window.attachEvent(“onunload”,a)}}()

Chrome错误

未捕获类型错误:无法调用未定义的方法“indexOf”

===================

更新/修复


对不起,我的错。我错过了
echo
这里
url:,

我错过了
echo
这里
url:,