Hi there, I'm trying to do an XHR request using the same method as "@DirectLink" component.
Here is the code: <script type="text/javascript"> var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); var content; function SendAjaxRequest() { tapestry.bind ("/PhoneBook/app?component=%24DirectLink&page=majax&service=direct"); tapestry.load(xmlDoc); content = xmlDoc.responseXML; } </script> <p> <a href="#" onclick="SendAjaxRequest()">click here</a> </p> The server-side component does work when called when using DirectLink, but when clicking the link as coded above it doesn't. 1./ in IE7 it simply doesn't work but the page is displayed 2./ in Firefox it doesn't display the whole page and Firebug sends an error message:"uncaught exception: [Exception...' "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [ nsIXMLHttpRequest.setRequestHeader]" I know, I know there must be something I have misunderstood but I am a bit lost. I don't want to use DirectLink because the result of the XHR must be used in another javascript function. Any help/remarks ? Thanks Loïc