Why do I get a "access denied" message on a client side using JavaScript?
Issue:
You get an 'Access Denied' JavaScript error when trying to run geocoding inside an application and geocoding calls a GeoStream server.
Cause:
The JavaScript proxy is not set and so the application attempts to perform cross site scripting (with the GeoStream server running on a different machine to the application), therefore the application can not call the GeoStream server directly.
Solution:
Copy the proxy.aspx file and replace:
"FRAMEWORK_SETTINGS = {…};
to:
FRAMEWORK_SETTINGS = {"framework.path": {"*": ""}, "telogis.geobase.serviceUrl": "proxy.aspx?url≤url_of_your_geostream_server>"};
Published, May 18th 2009, 15:54