With the current version you can simply return an XmlDocument and will
get the responseXML object.

Regards,
Michael



On 4/17/06, mr_bliss <[EMAIL PROTECTED]> wrote:
>
> In the original version of Ajax.net it was possible to access the
> underlying XMLHttpRequest object servicing the AjaxMethod and Ajax.net
> in general. In certain situations it makes sense to return Xml from my
> Ajax calls and I was previously able to set my return type to
> XmlDocument and access the already instantiated DOM object of the
> XMLHttpRequest object via it's .responseXML property. Although a small
> script error would occur in IE, I could use the Xml on the client in an
> intuitive and efficient way.
>
> The current version of Ajax.net Pro wraps and hides the XMLHttpRequest
> object (as far as the standard callback is concerned) and thus
> eliminates my use scenario. I can already see the way this question has
> been answered and thus, I'm not looking for a solution to my problem
> but rather wondering why access to this object has been removed. It
> seems unnatural for a tool that provides a solution to simplify using
> the XMLHttpRequest object to not provide access to the object itself.
>
> Finally, as a solution to the problem I choose to hook the
> .onStateChanged callback to extract a reference to responseXML before
> it is cleared with the .abort() method. This almost works, but then the
> following line blows up with a js error in IE I guess because the
> responseText property contains xml:
>
>  eval("r.value = " + responseText + ";");
>
> I'm able to get around this by basically aborting the current request
>
>  ref.xmlHttp.open("GET","/include/blank.txt" ,true);
>
> which is an inefficient and ugly hack. My current short term plan is to
> implement a custom Core.ashx so that no onStateChange weirdness needs
> to happen, but I really think the calling code, or specifically, the js
> callback for an AjaxMethod should have access to the XMLHttpRequest
> object or at very least, the already parsed and instantiated XML DOM
> object of the XMLHttpRequest object.
>
> Thanks,
>
> John
>
>
> >
>


--
Kind regards,
Michael Schwarz

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to