<div dir="ltr">Hello<br><br>I have a mappanel (containning a wms layer with parametrized url {sql View}) , a textField and buton. When the user enter the value of the parameter's url and click the buton, the mapPanel should reload with the new url (the new value of the parameter) without reloading all the web page. I tried layer.redraw(true), it refreshs the panel but wth the same value of the parameter (so the same url).<br>
<br><br>this is the code:<br><br>var layerDashBoard = new OpenLayers.Layer.WMS(<br> "communeProv",<br> "<a href="http://localhost:8080/geoserver/sf/wms?service=WMS&version=1.1.0&request=GetMap&layers=sf:communeProv&srs=EPSG:4326&">http://localhost:8080/geoserver/sf/wms?service=WMS&version=1.1.0&request=GetMap&layers=sf:communeProv&srs=EPSG:4326&</a><b>viewparams=province:" + idProv,</b><br>
{layers: "sf:communeProv", <br> format: "image/png",<br> }<br> <br> );<br><br>thank you<br><br></div>