1 Sep 2005 22:56
Re: Maverick.NET & AJAX issue
knocte <knocte <at> gmail.com>
2005-09-01 20:56:45 GMT
2005-09-01 20:56:45 GMT
A.D. Kent escribió: >>When I try to access http://216.235.148.245/doGetBusUnitsXML.m I obtain >>a 404 error. Isn't Maverick.NET ready at the server yet? ;) >> > >Hey Andrew: > >Actually, it isn't yet; I've been busy tracking down the problem and >comparing with Maverick (under Orion), and just haven't had time yet. I've >narrowed things down to the Content-Type that is returned. While I can >override this within the controller, the output-type attribute of the >transform node does nothing to affect the resultant Content-Type that is >returned. > >I've verified that this behavior works as advertised in the original >Maverick framework, but have yet to narrow down exactly what Maverick.NET >is behaving differently, at least in my environment. > >I should state that overriding the Content-Type in the controller >(this.ControllerContext.HttpContext.Response.ContentType="text/xml") fixes >the problem, and allows the AJAX responseXML method to behave properly. > Well, are you sure that the issue is caused by that? I doubt about it because, casually, I am using some JavaScript (Ecmascript) libraries that I load through AJAX calls (well, mostly SJAX because they are not asynchronous ;) and they work perfectly. Note that these files have .js extension so I don't beleive that Apache/IIS is serving them as text/xml. I have had some complaints on usenet from users that didn't like the idea of querying non-XML data from "XmlHttpRequest", but I find(Continue reading)
RSS Feed