...

View Full Version : sending an xml conetnt using ajax



amitye
12-09-2009, 12:23 PM
hi,

My server has an xml configuration file which I want to receive to my browser.
I can do HTTPrequset directly to the file config.xml and get it in the responseXML, but I want to do it im more secure way, so the post request will be to some script ("python" in my case), which will open and read the file.

if my xml file looks like this:
<test>some_data</test>

what shoud be the content of the response?

Old Pedant
12-09-2009, 11:36 PM
And this is a Java-related question in what way???

And how will serving up the file from something other than a simple HTTP request for the file be safer??

[I know ways that it can be safer, but because the client has to make a request, no matter what you do somebody can hack the client code and probably figure out ways around your protection.]

Fou-Lu
12-10-2009, 12:12 AM
I haven't moved this yet since I'm not quite sure that this isn't a java problem yet.
config.xml and HTTPRequest sort of lean this towards JSP (have I ever mentioned how I hate jsp?). Perhaps we could get some clarification from the OP as to if they are looking for Javascript in particular, or if we are looking at integrating javascript with jsp.

amitye
12-10-2009, 05:55 AM
And this is a Java-related question in what way???

And how will serving up the file from something other than a simple HTTP request for the file be safer??

[I know ways that it can be safer, but because the client has to make a request, no matter what you do somebody can hack the client code and probably figure out ways around your protection.]

sorry folks,
I accidently post my question in the wrong forum...
I meant for the javascriptProgramming....

Fou-Lu
12-10-2009, 01:42 PM
sorry folks,
I accidently post my question in the wrong forum...
I meant for the javascriptProgramming....

Ok, moving from Java to Javascript forum.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum