Can't Send Parameter Ajax in ExtJs

给你一囗甜甜゛ 提交于 2019-12-11 03:42:52

问题


I have code in View Extjs. Here's the code:

var storeTree = Ext.create('Ext.data.TreeStore', {
            proxy: {
                type: 'ajax',
                method: 'POST',
                url: 'data/newoss_get_paket.php',
                params: { nopstn:"02318330549",
                        num:"tester"
                }
            }
        });

I call it in newoss_get_paket.php:

$pstn = $_POST['nopstn']; 
$number= $_POST['num']; 

But the result is null.. parameters can't sent to php file. any solution for me?


回答1:


Use the extraParams config instead of params. There is no params config on a proxy.



来源:https://stackoverflow.com/questions/28145642/cant-send-parameter-ajax-in-extjs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!