[OpenLayers-Users] Filling URL with
OpenLayers.Util.getParameterString
Kai Behncke
Kai-Behncke at gmx.de
Thu Apr 9 09:24:11 EDT 2009
Dear users,
I try to fill an URL with:
--------------------
if (startPoint && stopPoint) {
var result = {
startpoint: startPoint.geometry.x + ' ' + startPoint.geometry.y,
finalpoint: stopPoint.geometry.x + ' ' + stopPoint.geometry.y,
method: OpenLayers.Util.getElement('method').value,
region: "victoria",
srid: "900913"
};
OpenLayers.loadURL("my_routing.php",
OpenLayers.Util.getParameterString(result),
null,
displayRoute,
null);
--------------------
But somehow it does not work.
The ur l is loaded with success, but only:
http://localhost/openlayers/workshop/routing/my_routing.php
and not:
http://localhost/openlayers/workshop/routing/my_routing.php?
startpoint=-53.4375%2064.77412531292873&finalpoint=140.625%2045.089035564831036&
method=SPD®ion=victoria&srid=900913&
Has anybody an idea with this doesn`t work?
Thank you very much in advance, Kai
--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a
More information about the Users
mailing list