PDA

View Full Version : [2.2.1] ComboBox - Proxy



stefan.riedel-seifert
10 Mar 2009, 2:15 AM
Hello community,

i've tried to adapt an example of J. Garcias upcoming eBook/Book, which can be found at
http://tdg-i.com/extjsinaction/chapter05/5.4_using_custom_templates.html.
It doesn't run under IE6, but if you use ExtJS 2.2.1 instead of ExtJS 3.alpha it does run also under IE6 and works as designed. In this example the ComboBox gets its data vai
proxy : new Ext.data.ScriptTagProxy({url : 'http://tdg-i.com/dataQuery.php'})
Because my page runs in the same domain as the data script i am using
proxy : new Ext.data.HttpProxy({url : 'dataQuery.php'})

The ComboBox brings up the values, but doesn't divide the total account into pages, i.e. the whole bunch will be displayed in one list.

Another point faced out, is that the combobox react only hwen entered more than one
characters. Configured was 1. :(

In my opinion the changed coding should behave in the same way.

Any suggestions?

Best regards, Stefan

PS: All other coding was unchained

10 Mar 2009, 4:56 AM
Stefan, this is a good exercise for me and the book:
Your return data needs to be divided into chunks. For instance, if i say, start: 0, limit 25, then your server side code needs to return exactly 25 records.

For the next page, the UI sends: start: 25, limit: 25 - this should cause the server side code to return record # 25 - through 50.

Does this make sense?

stefan.riedel-seifert
12 Mar 2009, 11:56 PM
Hello Jesus,

yes this solved the problem :D. That's typically a mistake of newbies. I've learned a lot
in the past days. ExtJS is great, but the devil is in the details.

Best regards,
Stefan

PS: when is your book completed? With the release date of ExtJS 3.0? I can need
any information to speed up myself