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:,