There are a number of js logging libraries available. The core library that tapestry uses (4.1 onward at least) is dojo via dojo.debug or dojo.log.<err><warn><etc..> .
You might want to go look at http://tacos.sourceforge.net, they have plenty of examples as well as a completely functional demo app to show you how to do this. (it also handles your XMLHTTPRequest stuff as well but maybe you have something different in mind for that ;) ) On 6/1/06, Peter Dawn <[EMAIL PROTECTED]> wrote:
hi all, i am trying to implement XMLHTTPRequest within my web app. now for starters i would like to display a log file (which is constantly updating), within my web app. how should i display its contents without refreshing the page manually (it should display information as the log gets filled in). this is my code for JavaScript within the html file so far, but i dont think its working, function createXMLHTTP() { var arrSignatures = ["MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", " MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var i=0; i < arrSignatures.length; i++) { try { var oRequest = new ActiveXObject (arrSignatures[i]); return oRequest; } catch (oError) { } } throw new Error ("MSXML is not installed on your system"); } var oRequest = createXMLHTTP(); oRequest.open("get", "c:\log.txt", true); oRequest.send(null); alert("status is " + oRequest.status + "(" + oRequest.statusText + ")" ); alert("Response is" + oRequest.responseText); can somebody help me out. thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind.