I'm working with Ext/GeoExt/OpenLayers, so this is like a mixed question, but I'm pretty sure ExtJS has to be very important on this issue. I've been trying to replace correctly an url in OpenLayers.Protocol.HTTP after using a GeoExt.form.FormPanel (ie. combobox and textfield), but seems that the new url is being passed to the url of ExtJS and not to the url of the protocol. I've a live demo for this here: . In the case I choose "cars" in the combobox and enter "cool" in textfield, the new url I want will be: http://www.mop.org/fs/cars?format=GeoJSON&comments__ilike=cool&queryable=comments (please see ).
To send this new url to the protocol, I use an autoLoad call in the handler function of the search button, after pressing it the new url is sent but it's not catched by the protocol itself (ie. XMLHttpRequest.js) but for ExtJS. So, the GeoJSON output is displayed in the window of the form panel (please see ). Thus, in Firebug two urls (please see ) are called, the first one is the new url I want in the url of the protocol, but it goes to ext-base.js, which is the wrong place. The second one, I actually don't know why is sent, goes to XMLHttpRequest.js which is the right place, but it shouldn't be sent.
I tried taking the protocol out of the form panel and put it as variable, but after pressing the button, I receive 'o.protocol is null' in Firebug.
how could I do to replace correctly my new url (ie. 'myurl' in the code)? it seems to me that the new url is replacing an inexistent url which belongs to ExtJS,
I'd appreciate any suggestions about this problem, thanks in advance,