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 > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
