<div dir="ltr">I've found my mistake. I use a reload the web page instead of to use the events in OL<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/19 Mark Prins <span dir="ltr"><<a href="mailto:mc.prins@gmail.com" target="_blank">mc.prins@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2013/4/11 Gaëtan Palka <<a href="mailto:palka.gaetan@gmail.com">palka.gaetan@gmail.com</a>>:<br>
<div><div class="h5">> Hi everybody,<br>
><br>
> For my research project, I try to develop a web map application but I'm a<br>
> great beginner in web development.<br>
> My web app has to change the style of the layers according to selected radio<br>
> button.<br>
> I have written these two files. The first is my page in php :<br>
> --------------------------------------------------------------------------------<br>
> <?php<br>
> session_start();<br>
> $_SESSION["login"]="bob";<br>
> ?><br>
> <!DOCTYPE html><br>
> <html><br>
> <head><br>
> <meta http-equiv="content-type" content="text/html; charset=utf-8"/><br>
> <title>IMaDeS bis</title><br>
> <script type="text/javascript"<br>
> src="IMaDeS/OpenLayers/lib/OpenLayers.js"></script><br>
> <link rel="stylesheet" href="test.css" type="text/css"><br>
> </head><br>
> <body onload="init()"><br>
> <form name="formulaire" method="post" action="test_carte.php"><br>
> <div id="bloc"><br>
> <div id="bloc_alea"><br>
> Bonjour <?php echo $_SESSION["login"]; ?><br>
> <div id="couche_alea"><br>
> <input type="radio" name="alea" value="alea_value_green" id="alea_id_green"<br>
> checked="checked" onchange="init(alea);" />green<br>
> <input type="radio" name="alea" value="alea_value_blue" id="alea_id_blue"<br>
> onchange="init(alea);" />blue<br>
<br>
</div></div>you probably want to use onselect if you're listening to the radio,<br>
because this will trigger both for unselect and select events for both<br>
radio's.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br></div>