I tried just using the same string that I send to the java equiv code but it gave me
some message about not
being able to convert it.
Is there anywhere I can find out a sample of what it is actually expecting? At the
moment, I just use
astring containing the content: "name=value&name=value..."
I have no idea how this would be translated to XML. Keeping in mind that I use the
same data value for all
browsers. Any conversion needs to be dome after this data has been passed to the
_readURLData method.
Scott Andrew LePera wrote:
> You create a DOM Document object in Mozilla like this (last I knew, this
> may have changed):
>
> xmlDoc = document.implementation.createDocument("", "", null);
>
> .but doesn't the XmlHttpRequest send() method support a string of XML
> as well?
>
>
>http://unstable.elemental.com/mozilla/build/latest/mozilla/extensions/dox/class_nsIXMLHttpRequest.html#a5
>
> <snip>
>
> void nsIXMLHttpRequest::send ( in nsISupports body )
>
> Sends the HTTP request.
>
> If the request is asynchronous, returns immediately after sending the
> request. If it is synchronous returns only after the response has been
> received.
>
> Parameters:
> body - Either an instance of nsIDOMDocument, nsIInputStream or a string
> (nsISupportsWString in the native calling case). This is used to
> populate the body of the HTTP request if the HTTP request method is
> "POST". If the parameter is a nsIDOMDocument, it is serialized. If the
> parameter is a nsIInputStream, it is expected to contain the
> ContentType: and ContentLength: headers and trailing
> carriage-return/line-feed pairs.
>
> </snip>
>
> scottandrew
>
> Michael Pemberton wrote:
> >
> > Does anyone out there now I can create a DomDocument object in Mozilla.
> > I am using an XmlHttpRequest object to transmit data to the server. It
> > accepts post data in the form of a DomDocument and I have no idea on how
> > I convert my post data into such a format.
> >
>
> --
> scott andrew lepera
> [EMAIL PROTECTED]
> web stuff: www.scottandrew.com
> music stuff: www.walkingbirds.com
>
> JavaScript is a lot like C++, without all that useless stability.
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev