Re: [OpenLayers-Users] replacing url in OpenLayers.Protocol.HTTP

2013-02-14 Thread Gery
The solution was simply to take the protocol outside the formPanel and use "protocol.options.url = newUrl;", simple like that! -- View this message in context: http://osgeo-org.1560.n6.nabble.com/replacing-url-in-OpenLayers-Protocol-HTTP-tp5026602p5034366.html Sent from the OpenLayers Users mai

Re: [OpenLayers-Users] replacing url in OpenLayers.Protocol.HTTP

2013-01-14 Thread Gery
with a "setTimeout" function wrapping the OpenLayers.loadURL I could send the url I want to XMLHttpRequest.js after the one it comes by default from the geoext.form.formpanel, but even though this happens it's not listened by the protocol.http. Any thoughts? -- View this message in context: htt

Re: [OpenLayers-Users] replacing url in OpenLayers.Protocol.HTTP

2013-01-14 Thread Gery
Hallo Jürgen, vielen Dank für Ihre Antwort!, I'll try it today later, but without testing it I have some questions, where do I have to destroy the OpenLayers.Protocol.HTTP? in the handler of the button? and you mean calling again the GeoExt.form.FormPanel, so I have to copy all the form again in t

Re: [OpenLayers-Users] replacing url in OpenLayers.Protocol.HTTP

2013-01-13 Thread Jürgen Dankoweit
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Gery, Am 14.01.2013 00:43, schrieb Gery: > getting closer... because adding OpenLayers.loadURL(myurl, {}, > null, function(response){}); in the handler function sents the url > to XMLHttpRequest.js (right place), but just immediately another > u

Re: [OpenLayers-Users] replacing url in OpenLayers.Protocol.HTTP

2013-01-13 Thread Gery
getting closer... because adding OpenLayers.loadURL(myurl, {}, null, function(response){}); in the handler function sents the url to XMLHttpRequest.js (right place), but just immediately another url (from the formpanel) is sent to the same place and this covers the right one, is there a way to add

Re: [OpenLayers-Users] replacing url in OpenLayers.Protocol.HTTP

2013-01-12 Thread Gery
So, before the protocol url must be sent in the first place, I need to change it, how could I do it? pls help, thanks -- View this message in context: http://osgeo-org.1560.n6.nabble.com/replacing-url-in-OpenLayers-Protocol-HTTP-tp5026602p5027082.html Sent from the OpenLayers Users mailing list

[OpenLayers-Users] replacing url in OpenLayers.Protocol.HTTP

2013-01-10 Thread Gery .
Hello, 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: http://jsbin