Re: XMLHTTPRequest within tapestry
ok, i am going to try that and see how i go.i dont fancy my chances though, as i am trying to get something simple to work and all these examples are way beyond simple. will see how we go though. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLHTTPRequest within tapestry
Have you checked out DWR (http://getahead.ltd.uk/dwr/)? It might be a good fit for what you're trying to do and it's framework agnostic, so it will work fine with Tapestry 3. It's also pretty darn easy to use. -Ryan Peter Dawn wrote: just tried to implement it now. the country list example runs fine. but am not sure how should i go about with something simple like a hello world or just displaying the contents of a dummy file. it might sound a very simple thing, i guess i am trying to get the basics. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLHTTPRequest within tapestry
I don't think normal javascript permissions allow you to access the file system on someone's web browser. (There are ways to get past this but it's not standard I think ) You might be better served by going to http://ajaxian.com/ or any number of ajax-related web sites to learn how it works first before trying to apply it to tapestry. On 6/1/06, Peter Dawn <[EMAIL PROTECTED]> wrote: just tried to implement it now. the country list example runs fine. but am not sure how should i go about with something simple like a hello world or just displaying the contents of a dummy file. it might sound a very simple thing, i guess i am trying to get the basics. - 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.
Re: XMLHTTPRequest within tapestry
just tried to implement it now. the country list example runs fine. but am not sure how should i go about with something simple like a hello world or just displaying the contents of a dummy file. it might sound a very simple thing, i guess i am trying to get the basics. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLHTTPRequest within tapestry
Hi Peter, take a look at XTile for Tapestry 3.x here: http://www.t-deli.com/ For simple stuff, it's quite easy to use and very lightweight. Hth, Danny Peter Dawn wrote: i am using tapestry 3.0.3 and i want to use something very light, without the advanced features. is there some coding example (hello world would also do) which just shows how to retreive info from the tapestry page and display it within the html page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLHTTPRequest within tapestry
i am using tapestry 3.0.3 and i want to use something very light, without the advanced features. is there some coding example (hello world would also do) which just shows how to retreive info from the tapestry page and display it within the html page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLHTTPRequest within tapestry
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. . 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.
XMLHTTPRequest within tapestry
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]