PDA

View Full Version : [FIXED][DUP][3.0rc1] Ext.data.Store.load() missing params when the value is 0



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

evant
29 Apr 2009, 6:59 AM
http://extjs.com/forum/showthread.php?p=322695#post322695

Closing off.

CCZu
29 Apr 2009, 7:02 AM
o ,i fund this :">
[FIXED][3.0] Ext.urlEncode bug (http://extjs.com/forum/showthread.php?t=65635)

Looks like is same to my question