[OpenLayers-Users] Die Erlaubnis für den Aufruf der Methode XMLHttpRequest.open wurde verweigert - PGRouting

Mehmet Sirin m.sirin07 at googlemail.com
Fri Sep 11 19:39:47 EDT 2009


Hi, thanks, It really seems to solve that problem! But now I got another
one:
Firebug needs to POST to the server to get this information for url:
http://localhost/OpenLayers/examples/routing2.php?startpoint=890544.23042729%206847095.3929257&finalpoint=893983.89669951%206848777.0075477&method=SPD&srid=900913

This second POST can interfere with some sites. If you want to send the POST
again, open a new tab in Firefox, use URL 'about:config', set boolean value
'extensions.firebug.allowDoublePost' to true
This value is reset every time you restart Firefox This problem will
disappear when https://bugzilla.mozilla.org/show_bug.cgi?id=430155 is
shipped.

When I push "Load Response": 890544.23042729<br>6847095.3929257<br><br />
<b>Fatal error</b>: Call to undefined function pg_connect() in
<b>/home/jars/workshop/OpenLayers/examples
/routing2.php</b> on line <b>42</b><br />


I think the last error is the main problem..
Am 12. September 2009 00:12 schrieb Andreas Hocevar <ahocevar at opengeo.org>:

> Hi,
>
> you have to run your application off a web server, not the file system.
>
> Du mußt deine Anwendung auf einem Webserver installieren, statt sie vom
> Dateisystem zu starten, d.h. du brauchst URLs, die mit http:// beginnen
> statt mit file://
>
> lg
> Andreas.
>
> Mehmet Sirin wrote:
> > Hi, I got an error like "No access for for method XMLHttpRequest.open,
> > when trying to calculate a route with pgrouting (data comes from
> postgis).
> > Hi, derzeit versuche ich mich am Tutorial
> >  http://pgrouting.postlbs.org/wiki/WorkshopOL2.7andOSM bzw. habe schon
> > alle dortigen Schritte ausgeführt. Nun, wenn ich Start und Endpunkte
> > setze, dann auf "Calculate Route" drücke, bekomme ich einfach gar
> > nichts angezeigt. Firebug sagt das hier:
> > Die Erlaubnis für den Aufruf der Methode XMLHttpRequest.open wurde
> > verweigert
> > file:///home/jars/OpenLayers/lib/OpenLayers/Request/XMLHttpRequest.js
> > Line 177
> >
> >
> > Die Erlaubnis für den Aufruf der Methode XMLHttpRequest.open wurde
> > verweigert
> > open()()XMLHttpRequest.js (Linie 177)
> > issue()(Object)Request.js (Linie 134)
> > GET()(Object)Request.js (Linie 222)
> > loadURL()("routing2.php?startpoint=889168.36391841
> > 6851146.5554241&finalpoint=896888.50377383
> > 6850611.4962262&method=SPD&srid=900913", null, null,
> > displayRoute(response), null)Ajax.js (Linie 82)
> > compute()index.html (Linie 199)
> > onclick(click clientX=413, clientY=394)1YJQEPyB...BjA%3D%3D (Linie 2)
> > [Break on this error] this._object.open(sMethod, sUrl, bAsync, sUser,
> > sPassword);
> >
> > System: Ubuntu 8.04, Openlayers 2.8
> >
> > Hat jemand eine Idee zur Behebung dieses Problems? Ich bin dankbar für
> > jede Hilfe.
> > MfG
> > Mehmet
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090912/e1252301/attachment.html


More information about the Users mailing list