hi all.
with ivan's help i made some progress. but i am still wondering if
anyone can help me fully resolve my proxyhost. i believe it's an
apache/mac thing. i've gotten an url for georss.html to run in safari,
but not firefox.
the error says: "uncaught exception: Access to restricted URI denied
(NS_ERROR_DOM_BAD_URI)" in XMLHttpRequest.js.
the xhr requests says 0.
here's a run down of what i did:
1) i saved proxy.cgi into /Library/webserver/CGI-Executables
2) then i did the chmod +x proxy.cgi
3) i was working apache through mamp, which i think was a problem. so i
uninstalled mamp and i enabled websharing in the sharing preferences pane.
4) then i did http://localhost/cgi-bin/proxy.cgi which brought me to a
local openlayers site in both firefox and safari (yay!!)
5) then i attempted to set the proxyhost variable. after a couple
different tries, i saw that setting it to: OpenLayers.ProxyHost = "";
works in safari, but not in firefox.
once figured out, i promise to write the greatest how to ever.
thanks again,
alyssa.
Ivan Grcic wrote:
hi, try
chmod +x proxy.cgi
cheers
On Fri, Jan 23, 2009 at 6:59 PM, alyssa wright <[email protected]> wrote:
Hi all,
I know it's been asked before, but after hitting my head against many a
wall I humbly ask again:
I've been attempting to get the rss examples in general, and georss.html
example, in particular to work with an HTTP URL.
As instructed in the FAQ, I saved the proxy.cgi script from the svn
download in a cgi-bin folder within my local examples folder. Then I
set the proxyhost variable to OpenLayers.ProxyHost =
"/cgi-bin/proxy.cgi?url="; When I navigate to the script
(http://localhost:8888/openlayers/examples/cgi-bin/proxy.cgi) the
resulting content is the text of the script and not the openlayers
site. (I do not know if this is a sign of a problem).
When I attempt to load the feed
(http://www.greenwich-church.net/GeoRSS.xml) in georss.html,
"GeoRss.xml" shows up as an overlay, but no data registers on the map.
When I load this same feed on the openlayers version
(http://www.openlayers.org/dev/examples/georss.html) "Greenwich Church"
shows an an overlay along with corresponding data.
I have tried various combinations of where to save the proxy script
(e.g., in the examples folder with the georss file and the variable as
OpenLayers.ProxyHost = "";) and I have tried variations where the
AddHandler section of my httpd.conf knows to call python (as instructed
here http://gist.fas.harvard.edu/chgis/?p=14).
Any help is greatly appreciated.
Best,
Alyssa.
PS. I am not that interested in greenwich churches. . . it was just an
easy test case.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users