On Sat, Dec 11, 2010 at 1:51 PM, Ricardo Rodríguez <[email protected]> wrote: > hi all, > I have a question and a problem. > How to make a data request xml (gml file) forn javascript (ajax) to > geoserver? > > I developed a web client to my site where users upload urls geoserver to use > the service wps of the page, but I can not save any form data geoserver > always returns "null" in all, this what I'm doing. > > get url from user: > > new Ext.form.TextField({ > > disabled: false, > fieldLabel: "URL GML", > > value:'', > id:"Ugml" > > > save url of user: > > var Ugml = Ext.getCmp('Ugml').getValue() > > > request data(1): > > xmlhttp = new XMLHttpRequest(); > > xmlhttp.open("POST", Ext.getCmp('Ugml').getValue(),true, > User="admin",Password="geoserver"); > > xmlhttp.send(null); > alert(xmlhttp.responseXML.xml); > > > request data(2): > $.post() > > please someone to past examples of code are templates for making these > requests, someone could help me is urgent. > > thanks for your answers and help
As I said in reply to your question on gis.stackexchange (http://gis.stackexchange.com/questions/4134/how-to-download-a-file-from-geoserver-gml-from-a-url-using-javascript/4137#4137) we need to see an example of the url you are using to request the data to see why it is not working. Ian ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
