--- In [email protected], "chmavrog" <[EMAIL PROTECTED]> wrote:

> 1.If i want to send svg data on a server-side script, in order to save 
> them with XMLHttpRequest in FF1.5, do i have to use POST in the .open 
> method for XMLHttpRequest  object or GET is enough?(TRUE -POST must be 
> used).

Well if you do a HTTP GET request then the only way to transmit data
is in the query string part of the URL. So of course with
XMLHttpRequest it is possible to make a GET request and transmit data
in the query string e.g.
  var httpRequest = new XMLHttpRequest();
  httpRequest.open('GET', 'whatever.asp?xml=' + encodeURIComponent(new
XMLSerializer().serializeToString(someXMLNode)), true);
  httpRequest.send(null);
but I am not sure why you would want to do that. A HTTP POST request
with the XML in the request body e.g.
  var httpRequest = new XMLHttpRequest();
  httpRequest.open('POST', 'whatever.asp', true);
  httpRequest.send(someXMLNode);
is in my opinion the better approach.

> 2.If i want to get svg data from the server-side, in order to load 
> them in a svg dom with XMLHttpRequest in FF1.5,i have to use GET in 
> the .open method for XMLHttpRequest?(TRUE)

No, if you make a POST request the server can of course send a
response which can be XML.







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to