新手问:
我错过了什么吗?
已加载的脚本
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;
}
});
});
原始post.php中
echo "this is response text";
Firebug错误
e is undefined; window.undefined=window.undefined;Ext=...window.attachEvent("onunload",a)}})();
Chrome错误
Uncaught TypeError: Cannot call method 'indexOf' of undefined
===================
已更新/固定
对不起,我的不好。我错过了echo
url: '<?php $template_url."/raw-post.php" ?>',
答案 0 :(得分:4)
我在这里错过echo
url: '<?php $template_url."/raw-post.php" ?>',