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
Ricardo Rodríguez
Univalle
On Sat, Dec 11, 2010 at 1:51 PM, Ricardo Rodríguez
<ricardorodot02@anonymised.com> 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
(how to download a file from geoserver gml from a url using javascript? - Geographic Information Systems Stack Exchange)
we need to see an example of the url you are using to request the data
to see why it is not working.
Ian
On Tue, Dec 14, 2010 at 2:33 PM, Ricardo Rodríguez
<ricardorodot02@anonymised.com> wrote:
hi, thanks for your answer, this is the url i try use:
http://192.168.47.6:8080/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=univalle:redpeatonal
Well from my machine that URL doesn't work so that may be your
problem. If you are sure that your machine is up and running (and is
behind a firewall or something) then you will need to install and use
FireBug to look at the request that is being sent to your GeoServer
instance to make sure it is correct (i.e. your javascript isn't
changing it) and then look in the log files of GeoServer to see if
there is a helpful error message.
Ian
PS Try to remember to copy the user-list in your replies.
--
Ian Turton
hi, this is of error in geoserver
119501 [btpool0-3] INFO /geoserver - Initializing Spring FrameworkServlet ‘dispatcher’
121825 [btpool0-3] INFO org.apache.wicket.Application - [GeoServerApplication] init: Wicket extensions initializer
121949 [btpool0-3] INFO org.apache.wicket.Application - [GeoServerApplication] init: Wicket core library initializer
121954 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
121954 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
121986 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
121986 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
122008 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
122008 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
122014 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()]
122014 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()]
122016 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()]
122016 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()]
122042 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()]
122042 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()]
122073 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
122073 [btpool0-3] INFO org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
122074 [btpool0-3] INFO org.apache.wicket.protocol.http.WebApplication - [GeoServerApplication] Started Wicket version 1.3.7 in deployment mode
15 dic 18:22:07 ERROR [data.shapefile] -
15 dic 18:22:07 ERROR [data.shapefile] -
15 dic 18:22:07 ERROR [data.shapefile] -
what can these cause
thanks for your help
Ricardo Rodríguez
Univalle