[OpenLayers-Users] no element found with OpenLayers.Request

Moataz Elmasry zaza1851983ml at googlemail.com
Mon May 3 04:56:46 EDT 2010


sorry forgot to mention
Firefox 3.5.9
OpenLayers: 2.8
Firebug 1.5.3

And the url is localhost

Moataz Elmasry wrote:
> Hello List
>
> I'm creating a feature with the features-edit tool and then committing 
> this feature to some server in geojson format.
>
> It looks as follows:
> OpenLayers.Request.POST({
>            url: Pronto.consts.Mapservice.URL.Base,
>            callback: this.featureHandler,
>            scope: this,
>            headers: {
>                "Content-Type": "text/plain"
>            },
>
>            params : {
>                geojson : serializedJson,
>                featureid : featureId,
>                featuretype : Pronto.consts.layer.id.Annotation,
>                action : "create"
>                }
>        });
>
> and the handler:
> featureHandler : function(request) {
>        console.log(request);
>    }
>
>
> Everything on the firebug looks ok. but in web developer toolbar I get 
> the error:
> Error: no element found
> Source File: 
> http://localhost:8089/PRONTO_MAP/servlet?geojson=%7B%22type%22%3A%22FeatureCollection%22%2C%22features%22%3A%5B%7B%22type%22%3A%22Feature%22%2C%22id%22%3A%22OpenLayers.Feature.Vector_402%22%2C%22properties%22%3A%7B%22name%22%3A%22%22%2C%22description%22%3A%22%22%7D%2C%22geometry%22%3A%7B%22type%22%3A%22Polygon%22%2C%22coordinates%22%3A%5B%5B%5B6.1054986506963%2C49.58728741831%5D%2C%5B6.1130088359377%2C49.58728741831%5D%2C%5B6.1117642909548%2C49.585033821579%5D%2C%5B6.1076444179081%2C49.585033821579%5D%2C%5B6.1054986506963%2C49.58728741831%5D%5D%5D%7D%7D%5D%7D&featureid=annotations.1_1482%0D%0A.1272876543855&featuretype=annotations&action=create 
>
> Line: 1
>
> Any ideas?
> Thanks for the help
>




More information about the Users mailing list