ext-js update params dynamically

Posted by jeffkolez on Stack Overflow See other posts from Stack Overflow or by jeffkolez
Published on 2010-05-02T20:32:21Z Indexed on 2010/05/02 20:38 UTC
Read the original article Hit count: 163

Filed under:
|

I'm building a search using ext-js. I have an event that fires on keyup. I want to be able to change either the URL I'm searching, or the params. I've had luck with neither.

Here's my snippit of code:

Ext.get("search").on('keyup', function() {
proxy.url = '/customer/list?key=' + $('search').value;
store.load();
});

But, no love for me. The store loads, but the proxy.url is the old value. Is what I'm trying to do possible?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about extjs