For the trunk, you must use params like this:<br><br>var params = {<br> 'toto': "blabla",<br> 'titi': "haha"<br>};<br> <br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> <br> When calling this function the 'params' parameter doesn't work.<br> I think I've found why :<br> <br> When you call OpenLayers.loadURL(url, param,... ) and you give string like<br> param = "toto=blabla&titi=haha";<br>
<br> The following function (Ajax.js, line 257) :<br> this.options.parameters = OpenLayers.Util.getParameters(this.options.parameters);<br> return null.<br> <br> OpenLayers.Util.getParameters() seems to need a full url like "page.php?toto=blabla&titi=haha" to work.<br>
if you only give the params, it return null. So parameters are lost.<br> <br> Regards,<br> Jean-Christophe<br> <br></blockquote></div><br><br clear="all"><br>-- <br>Li XinGang<br>EMail: <a href="mailto:slinavlee@gmail.com">slinavlee@gmail.com</a><br>
Blog: <a href="http://avlee.cnblogs.com">avlee.cnblogs.com</a><br>Site: <a href="http://www.mapboost.org.cn">www.mapboost.org.cn</a>