[OpenLayers-Users] error in url

Phil Scadden p.scadden at gns.cri.nz
Thu Aug 23 14:43:53 PDT 2012


>
> protocol: new OpenLayers.Protocol.HTTP(
>                 {
>                         url: 
> '/cgi-bin/proxy.cgi?url=http://localhost/mop/py/test3.py',
>                         format: new OpenLayers.Format.GeoJSON()
>                 }
>                 ),
>
> in firebug, I'm getting the query (as well as if I write in firefox 
> http://localhost/mop/py/test3.py) and this error message:
>
> JSON.parse: unexpected character
> [Break On This Error] 	
> object = JSON.parse(json, filter);
>
I would say it means that the json is badly formed. Use Firebug. Either 
look at what is being returned by in the NET table (or possibly console) 
or set a breakpoint on the line above and have a look at the json 
variable to see what is going on.

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120824/27b8ee10/attachment.html>


More information about the Users mailing list