<div>Thanks Shaun. </div><div><br></div><div>Yes I did use jQuery eventually. <span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.333333969116211px">As I have zero knowledge of Javascript,</span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13.333333969116211px"> </span>I started easy with Mark's code on a static page, once successful, I moved on to jQuery. </div>
<div><br></div><div>Thanks for your recommendation. jQuery is really powerful and well commented. </div><div>I was able to get my job done with only the knowledge from the following two tutorials:</div><div><br></div>The load() method<br>
<a href="http://www.jquery-tutorial.net/ajax/the-load-method/">http://www.jquery-tutorial.net/ajax/the-load-method/</a><br><br>Showing progress<br><a href="http://www.jquery-tutorial.net/ajax/showing-progress/">http://www.jquery-tutorial.net/ajax/showing-progress/</a><br>
<div><br></div>Thanks <div><br><div class="gmail_quote">On Fri, Oct 12, 2012 at 4:38 AM, Shaun Fryer <span dir="ltr"><<a href="mailto:sfryer@sourcery.ca" target="_blank">sfryer@sourcery.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The reason jquery is a good idea, is you probably want to add it as an<br>
onclick to a button or something. It's worth it to take the 10 minutes<br>
to rtfm, and avoid yourself alot of headache with cross-browser<br>
events.<br>
<div class="im HOEnZb">--<br>
Shaun Fryer<br>
<a href="tel:647-709-6509" value="+16477096509">647-709-6509</a><br>
----------------------------------------------------------<br>
perl -e 'print chr for map{$_+=22}($ARGV[0])=~/(\d\d)/g' \<br>
52959394107588899482799210587992861082757785799222<br>
----------------------------------------------------------<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">On Fri, Oct 12, 2012 at 4:31 AM, Shaun Fryer <<a href="mailto:sfryer@sourcery.ca">sfryer@sourcery.ca</a>> wrote:<br>
> Or for yet another way, also sans jquery...<br>
><br>
> var iframe = document.createElement("iframe");<br>
> var o = {display:"none", height:0, width:0};<br>
> for (var attr in o) iframe.style[attr] = o[attr]; // append a<br>
> timestamp below to bypass cache<br>
> var getServerStatus = function () { iframe.src =<br>
> "/url/to/your/log/output?" + (new Date ()).getTime() };<br>
> iframe.onload = function() {<br>
><br>
> var win = iframe.contentWindow || iframe.contentDocument;<br>
> if (/your regexp/.test(win.document.body.innerHTML))<br>
> alert("your process completed");<br>
> else setTimeout( getServerStatus, 60*1000 ); // ~1 minute<br>
><br>
> };<br>
> getServerStatus();<br>
> document.body.appendChild(iframe);<br>
> --<br>
> Shaun Fryer<br>
> <a href="tel:647-709-6509" value="+16477096509">647-709-6509</a><br>
> ----------------------------------------------------------<br>
> perl -e 'print chr for map{$_+=22}($ARGV[0])=~/(\d\d)/g' \<br>
> 52959394107588899482799210587992861082757785799222<br>
> ----------------------------------------------------------<br>
><br>
><br>
> On Thu, Oct 11, 2012 at 11:05 AM, Antonio Sun <<a href="mailto:antoniosun@lavabit.com">antoniosun@lavabit.com</a>> wrote:<br>
>> Thanks a lot Mark,<br>
>> That works like a charm. I really appreciate your simplified solution sample<br>
>> code.<br>
>><br>
>> Thanks again everyone for your helps.</div></div></blockquote></div></div>