[OpenLayers-Users] Removing message after WFS-T transaction

paweluz paweluz at o2.pl
Fri Jan 22 07:34:19 EST 2010


Hi is there a way to remove the alert (message) after adding new object to
database with WFS-T. I am using code from demo example from Geoserver. The
code is shown below

     drawControls = {
                add_object:new OpenLayers.Control.DrawFeature(
                    zielona_wfs, OpenLayers.Handler.Path
                )}


        drawControls["add_object"].featureAdded = function(feature) {
                feature.layer.eraseFeatures([feature]);
                feature.geometry = new OpenLayers.Geometry.MultiLineString(
                    feature.geometry
                );
                selectedfeature=feature;
                feature.state = OpenLayers.State.INSERT;
                feature.layer.drawFeature(feature);
            }

.............................

                function add_object() {
                        selectedfeature.attributes['Id']  
=parseInt(document.getElementById("id_geometry").value);
                        selectedfeature.attributes['Road'] =
document.getElementById("road_geometry").value;
                        map.layers[1].commit();
                        return false;
                } 


You can see the alert in link below:
http://jpghost.pl/Inne-problem2_1264161265/

Is there a way to remove this alert. Or maybe just to get the part SUCCESS
or FAILD??

Thanks,
Poul
-- 
View this message in context: http://n2.nabble.com/Removing-message-after-WFS-T-transaction-tp4439742p4439742.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list