CCZu
29 Apr 2009, 6:57 AM
I use a new Ext.data.JsonStore like this
new Ext.data.JsonStore({
...
autoLoad:{params:{start:0, limit:20}},
url:'get_data_list.php',
...
}),
in the get_data_list.php
value of $_POST['start'] is empty
value of $_POST['limit'] is 20
so i will change all of my code to
if(empty($_POST['start']))...:( more then a hundred page ....
but when i set autoLoad like "autoLoad:{params:{start:1, limit:20}}"
in the get_data_list.php
value of $_POST['start'] is 1
value of $_POST['limit'] is 20
I use Extjs 2.2.1, i set autoLoad like "autoLoad:{params:{start:0, limit:20}}"
I get value of $_POST['start'] is 0 in "get_data_list.php"
so i find if the value of param is 0, extjs post the var value change to empty string
My English not so good
Who can help me
Thanks everyone
new Ext.data.JsonStore({
...
autoLoad:{params:{start:0, limit:20}},
url:'get_data_list.php',
...
}),
in the get_data_list.php
value of $_POST['start'] is empty
value of $_POST['limit'] is 20
so i will change all of my code to
if(empty($_POST['start']))...:( more then a hundred page ....
but when i set autoLoad like "autoLoad:{params:{start:1, limit:20}}"
in the get_data_list.php
value of $_POST['start'] is 1
value of $_POST['limit'] is 20
I use Extjs 2.2.1, i set autoLoad like "autoLoad:{params:{start:0, limit:20}}"
I get value of $_POST['start'] is 0 in "get_data_list.php"
so i find if the value of param is 0, extjs post the var value change to empty string
My English not so good
Who can help me
Thanks everyone