Sweet!! I'll try this script. > -----Original Message----- > From: javascript-bounces at LaTech.edu [SMTP:javascript-bounces at LaTech.edu] > On Behalf Of Flavio Gomes > Sent: Friday, June 04, 2004 3:18 PM > To: [JavaScript List] > Subject: Re: [Javascript] JavaScript equivalent to bash shell > scripting > > Try XMLHttp object:: > > Below goes a modified Ctrl+C/Ctrl+V from the list history thanks to Hakam: > > --//--- > var oRequest; > > if(document.all) { > // Internet Explorer > oRequest = new ActiveXObject("Microsoft.XMLHTTP") > } > else { > // Mozilla > oRequest = new XMLHttpRequest(); > } > > textToBeWritten = ''; > > oRequest.open("GET", "http://www.mysite.com/template/index.htm", false); > oRequest.send(null); > textToBeWritten += oRequest.responseText; > > oRequest.open("GET", "http://www.mysite.com/whatever.htm", false); > oRequest.send(null); > textToBeWritten += oRequest.responseText; > > oRequest.open("GET", "http://www.mysite.com/template/bottom.htm", false); > oRequest.send(null); > textToBeWritten += oRequest.responseText; > > document.write(textToBeWritten); > --//--- > > --- > Flavio Gomes > flavio at economisa.com.br > > > > Scott Hamm wrote: > > >How can one write JavaScript in equivalent to (not exactly scripted) bash > >scripting as follows: > > > > > ><a href="whatever.htm" onclick="merge">Whatever</a> > > > > > >bash shell scripting > > > >cp template/index.htm merge/index.htm > >cat whatever.htm >> merge/index.htm > >cat template/bottom.htm >> merge/index.htm > > > >have browser redirect itself to newly built merge/index.htm > > > >Is it possible? > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu > >https://lists.LaTech.edu/mailman/listinfo/javascript > > > > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > https://lists.LaTech.edu/mailman/listinfo/javascript