[OpenLayers-Dev] OpenLayers.loadURL( ) : params - Params on get (doesnt seem to work)

Jc Albert jcalbert802 at yahoo.fr
Thu Mar 6 09:34:41 EST 2008


Hi,

When calling this function the 'params' parameter doesn't work.
I think I've found why  :

When you call OpenLayers.loadURL(url, param,... ) and you give string like 
param = "toto=blabla&titi=haha";

The following function (Ajax.js, line 257) :
this.options.parameters = OpenLayers.Util.getParameters(this.options.parameters);
return null.

OpenLayers.Util.getParameters() seems to need a full url like "page.php?toto=blabla&titi=haha" to work.
if you only give the params, it return null. So parameters are lost.

Regards,
Jean-Christophe




      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080306/8838c383/attachment.html


More information about the Dev mailing list