472,332 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,332 software developers and data experts.

Post XML

might seem like a dumb question but does anyone know how i can post XML from
the browser to the server, in just an ordanary HTML (derived from XML) page.
Flash can do it so i assume that there must be a way to do it from a
standard html page. i'd prefer not to use ActiveX or Java Applets, but if
that's how it done then so be it.

i need to get a better structure for the data being sent to the cgi script
then the MIME string.
Jul 20 '05 #1
3 4422
I still don't get why you want to send XML from a browser. What is the
client doing? Are they modifying the database? Making queries?

Robyn Mylius wrote:
the data I'm sending is not so much complex although it could be, I'm more
interested in building a single cgi script that can generate a HTML or XML
document from a template and if needed populate that document with the data
from the DB, that's heading out to the client, then I need to be able to do
the same coming the other way.
the idea is that I can use this cgi script for any web database application
with out the need to keep writing the server code, all I'd need to
concentrate on is the unique things for that web site I.e session variables
ect.
the reason I am looking at Posting XML back to the server is because xml can
describe the data, because from one web site to the next the database and
the data in it is going to be different.
so by reading the XML I can validate the data and determine where in the DB
it need to go.
but theres not much point going to the trouble if the client can't make use
of it, a flash site could, but i want to use it for any web site.
EJ idea of the msxml com control would do the trick, but being an activeX
how do we go for cross platform?
is there a java version?

"Sascha Kerschhofer" <sk**********@yahoo.de> wrote in message
news:bd**********@news.mch.sbs.de...
AFAIK you can only let the Browser create your XML and post it to the


server
like usual. You could let JavaScript do that for you by process the user
input, write the XML in a hidden feeld and post the hidden feeld to your
CGI. But: be aware, that the client could send any junk to your script -


so
I am in doubt if serverside processing the MIME string is more robust. Is
your data you want to enter realy that complex to need XML?

Sascha Kerschhofer

"Robyn Mylius" <rm*****@optusnet.com.au> schrieb im Newsbeitrag
news:3e***********************@news.optusnet.com .au...
might seem like a dumb question but does anyone know how i can post XML


from
the browser to the server, in just an ordanary HTML (derived from XML)


page.
Flash can do it so i assume that there must be a way to do it from a
standard html page. i'd prefer not to use ActiveX or Java Applets, but
if
that's how it done then so be it.

i need to get a better structure for the data being sent to the cgi
script
then the MIME string.




Jul 20 '05 #2
In article <3e***********************@news.optusnet.com.au> , one of infinite monkeys
at the keyboard of "Robyn Mylius" <rm*****@optusnet.com.au> wrote:
might seem like a dumb question but does anyone know how i can post XML from
the browser to the server, in just an ordanary HTML (derived from XML) page.
You mean form submission? There are a couple of modules you can
use to decode them and/or present them to your app as XML/XMTP.
Or if you mean file upload of an XML doc, just use mod_upload.
i need to get a better structure for the data being sent to the cgi script
then the MIME string.


Erm, if it's CGI, why not just use a CGI library to decode the data?
That's a readymade, tried-and-tested solution.

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #3
what are these modules that can decode the forms and present them as XML
called?
"Nick Kew" <ni**@fenris.webthing.com> wrote in message
news:im***********@jarl.webthing.com...
In article <3e***********************@news.optusnet.com.au> , one of infinite monkeys at the keyboard of "Robyn Mylius" <rm*****@optusnet.com.au> wrote:
might seem like a dumb question but does anyone know how i can post XML from the browser to the server, in just an ordanary HTML (derived from XML) page.

You mean form submission? There are a couple of modules you can
use to decode them and/or present them to your app as XML/XMTP.
Or if you mean file upload of an XML doc, just use mod_upload.
i need to get a better structure for the data being sent to the cgi

script then the MIME string.


Erm, if it's CGI, why not just use a CGI library to decode the data?
That's a readymade, tried-and-tested solution.

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an...
1
by: khawar | last post by:
my application is in asp.net using C# hi guys having a complicated problem i am using payflowlink to process CC payments I have to send a httppost...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data...
1
by: Manuel | last post by:
I have to log into a website and retrieve some information. The problem is that the post isn't "normal". I'm used to passing post values in the form...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can...
24
by: moriman | last post by:
Hi, The script below *used* to work. I have only just set up a server, PHP etc again on my Win98 system and now it doesn't? On first loading...
9
by: c676228 | last post by:
Hi, I am new to this discussion forum. I started to post questions on this forum since this Jan. and got many good responses and I am very...
3
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every...
10
by: Peter Michaux | last post by:
Hi, All Ajax libraries I've read use encodeURIComponent() on the name- value pairs extracted from forms before POST ing the result to the server...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.