<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi,<br><br>A suggestion :<br>In Util.js at line ~825<br>In the function "OpenLayers.Util.getParameters (url)"<br><br><br>You have : <br>...<br>//parse out parameters portion of url string<br>var paramsString = "";<br>...<br><br>I propose :<br>...<br>
//parse out parameters portion of url string<br>
var paramsString = url;<br>...<br><br>I tested it, and that solved the problem here...<br><br>Regards <br><br>Jean-Christophe<br><br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Message d'origine ----<br>De : Eric Lemoine <eric.c2c@gmail.com><br>À : Jc Albert <jcalbert802@yahoo.fr><br>Cc : dev@openlayers.org<br>Envoyé le : Jeudi, 6 Mars 2008, 21h41mn 51s<br>Objet : Re: [OpenLayers-Dev] OpenLayers.loadURL( ) : params - Params on get (doesnt seem to work)<br><br>On
Thu,
Mar
6,
2008
at
9:36
PM,
Eric
Lemoine
<<a ymailto="mailto:eric.c2c@gmail.com" href="mailto:eric.c2c@gmail.com">eric.c2c@gmail.com</a>>
wrote:<br>>
2008/3/6
Jc
Albert
<<a ymailto="mailto:jcalbert802@yahoo.fr" href="mailto:jcalbert802@yahoo.fr">jcalbert802@yahoo.fr</a>>:<br>><br>>
><br>>
>
Hi,<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
=<br>>
>
OpenLayers.Util.getParameters(this.options.parameters);<br>>
>
return
null.<br>>
><br>>
>
OpenLayers.Util.getParameters()
seems
to
need
a
full
url
like<br>>
>
"page.php?toto=blabla&titi=haha"
to
work.<br>>
>
if
you
only
give
the
params,
it
return
null.
So
parameters
are
lost.<br>><br>>
Hi
Jc<br>><br>>
It
looks
like
you've
found
a
bug
in
the
Ajax
code.
Note
however
that<br>>
providing
a
object
instead
of
a
string
should
work:<br>>
OpenLayers.loadURL(url,
{'fookey':'fooval','barkey':'barval'});<br><br>I've
opened
a
ticket
for
this
stuff:
<<a href="http://trac.openlayers.org/ticket/1419" target="_blank">http://trac.openlayers.org/ticket/1419</a>><br><br>Thanks
for
reporting
this
Jc.<br><br>--<br>Eric<br></div><br></div></div><br>
<hr size="1">
Envoyé avec <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html">Yahoo! Mail</a>.<br>Une boite mail plus intelligente. </a></body></html>