Hi guys :)<br><br>I am trying to make an on-the-fly route display.<br><br>I managed to send the request to the PHP page to generate and XML response and a copy of this response can be found here : <a href="http://yancho.pastebin.com/f41432b0d">
http://yancho.pastebin.com/f41432b0d</a> . The URL which is sending the data is : <a href="http://yancho.no-ip.org/~yancho/routing.php?startpoint=642983.5%20225176.75&finalpoint=641780.375%20224942.375&method=SPA&region=streets&srid=-1&_=">
http://yancho.no-ip.org/~yancho/routing.php?startpoint=642983.5%20225176.75&finalpoint=641780.375%20224942.375&method=SPA&region=streets&srid=-1&_=</a> And these are the headers of the reply according to FireBug :
<a href="http://yancho.pastebin.com/f18cadf12">http://yancho.pastebin.com/f18cadf12</a><br><br>Small Extract Of the XML Output : <br><br><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<br><route><br>        <edge id='1'><br>                <id>3612</id><br>                <wkt>MULTILINESTRING((642847.022664808 225275.125294559,642901.453947967 225273.479351758))</wkt><br>                <length>0.054</length>
<br>        </edge><br><br>But the problem is when I get to display the route. When I click on Compute Route, on my site : <a href="http://yancho.no-ip.org/~yancho/openl.html">http://yancho.no-ip.org/~yancho/openl.html</a>
<br><br>I get this error :<br><br>String contains an invalid character" code: "5<br><a href="http://yancho.no-ip.org/~yancho/OpenLayers.js">http://yancho.no-ip.org/~yancho/OpenLayers.js</a><br>Line 554<br><br>And further investigations in FireBug shows :
<br><br>String contains an invalid character" code: "5<br>emptyFunction()OpenLayers.js (line 189)<br>getImagesLocation()OpenLayers.js (line 101)<br>emptyFunction()OpenLayers.js (line 189)<br>dispatch("routing.php
", Object method=get)OpenLayers.js (line 191)<br>Class()OpenLayers.js (line 57)<br>nullHandler("routing.php", "startpoint=642983.5%20225176.75&finalpoint=641780.375%20224942.375&method=SPA&region=streets&srid=-1
", null, displayRoute(response), undefined)OpenLayers.js (line 187)<br>compute()openl.html (line 152)<br>onclick(click clientX=0, clientY=0)openl.html (line 1)<br>[Break on this error] if(style.cursor){node.setAttributeNS
(null,"cursor",style.cursor);}},createNode:f...<br><br>Any idea how I can fix my code please? A copy of the code can be seen highlighted here : <a href="http://yancho.pastebin.com/f335b8727">http://yancho.pastebin.com/f335b8727
</a><br><br>I am following this tutorial : <a href="http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007#OpenLayersroutingmap">http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007#OpenLayersroutingmap</a><br><br>Thanks for your continous help. Much Appreciated
<br> <br>Matthew<br><br><br> <br><br clear="all"><br>-- <br> Matthew Pulis<br>URL : <a href="http://www.solutions-lab.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.solutions-lab.net
</a><br>MSN : pulis_matthew[@]hotmail.com<br>ICQ : 145951110<br>Skype : <a href="http://solutions-lab.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">solutions-lab.net</a>