473,729 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4479
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**********@y ahoo.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*****@optusn et.com.au> schrieb im Newsbeitrag
news:3e****** *************** **@news.optusne t.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************ ***********@new s.optusnet.com. au>, one of infinite monkeys
at the keyboard of "Robyn Mylius" <rm*****@optusn et.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.we bthing.com> wrote in message
news:im******** ***@jarl.webthi ng.com...
In article <3e************ ***********@new s.optusnet.com. au>, one of infinite monkeys at the keyboard of "Robyn Mylius" <rm*****@optusn et.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
3128
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 ASP file and sends the name either by GET or POST. When I find is that if I send the value by the GET method, response.write("From QueryString: " & Request.QueryString("usernamefromform") & "<br><br>")
1
4781
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 to their servers. The problem is how do i do a post where i get these values like the amount from the database. eg of the post: <form method="post" action="https://payflowlink.verisign.com/payflowlink.cfm"> <input type="hidden" name="name" value="john adams">
2
12560
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 and open display.asp in the current browser <form action="display.aspx" method="post" target="_blank"> will submit the form data and open display.asp in a new browser
1
2975
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 of: Variable1=Value1&Variable2=Value2 etc. I used Live Http Headers to retrieve the POST information, I included it at the end of this message. Can anyone tell me how to make THIS kind of post? Another thing, "Content-Type: multipart/form-data;
10
3435
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 get to their values easily to write to a database or continue to process on to the next page. I am now trying to learn ASP to see if we can replace some of our applications that were written in php with an ASP alternative. However, after doing many searches on google and reading a couple...
24
2882
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 this page, you would have $p = and the button image below it.
9
3098
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 appreciated to those who are willing to help with their expertise. That save me a lot of time and stress. I want to rate the post, but I only see questions "is this post helpful" and " why should I rate a post" link. I didn't see any thing "rate the post" link. I already sign into the community...
3
4925
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 20 seconds. But if the post rate is increased to one post for every 10 seconds the client start getting error 403 'forbidden' from the webserver after a short period of time. The webserver is IIS. The choking of the client/server communication when doing high frequency posting is due to that we...
10
15718
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 with and xmlhttprequest. I can understand why this encoding is required in the case of a GET request and the form data is attached as a URI query string; however, why is the encoding necessary for POST requests? Thanks,
0
8930
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8766
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9158
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6026
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3244
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2699
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.