3.2.0

Active.HTTP-Request = XML-Http?

I'm assuming that this section implements the popular XML-Http requests, such as is used on GMail and Google Suggest. Does anyone have an example using this?
Brian Kreulen
May 4,
Here is some simple code that uses POST instead of GET. We return XML documents to our function.

var at = new Active.HTTP.Request;
at.setURL("design_handler.asmx/RetrieveWidgetSpecification");
at.setRequestMethod("POST");

var formhandler = this;
at.setParameter("widgetid", widgetid.trim());
var _rsp = at.response;
at.response = function(xml)
{
        _rsp.call(this, xml); 
       // at this point, XML is a standard XML document and you would parse it for your needs
}
Alex
May 4,

This topic is archived.

See also:


Back to support forum