<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>CommaVee - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-30aaa428" type="application/json"/><link>http://commavee.disqus.com/</link><description></description><atom:link href="http://commavee.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 17 Nov 2011 14:37:44 -0000</lastBuildDate><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-366878734</link><description>Use Chrome's developer tools console to track down whatever issue you're experiencing.&lt;br&gt;&lt;br&gt;A status code 200, assuming that it is inside updatePage(), is actually just a simple 'request succeeded' indicator, that when tested for, allows the function to proceed.&lt;br&gt;&lt;br&gt;If you've significantly modified the script, then the test logic may be now broken.  Ensure that the request object you're testing is the object you've created in getLog().</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Thu, 17 Nov 2011 14:37:44 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-366826351</link><description>Hello I'm trying to wrap this inside a template and now receiving "Error Request Status is 200" any ideas?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Thu, 17 Nov 2011 13:24:46 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-366788330</link><description>actually spoke to soon threw the error again.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Thu, 17 Nov 2011 12:56:22 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-366787044</link><description>Looks like problem is solved with error 0.  We are streaming constant new information in this log and have implemented scrolling bars to help keep up with the data.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Thu, 17 Nov 2011 12:55:32 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-366720500</link><description>Open your page in Chrome + watch the console (in Developer Tools).  That should tell you what's actually happening when updatePage() throws the error message.&lt;br&gt;&lt;br&gt;If you used my script unaltered, the error message is thrown when request.status is != 200, in this case 0.  Request status 0 is an unusual beast; I've written a separate post about it that you may find useful:&lt;br&gt;&lt;br&gt;&lt;a href="http://commavee.com/2011/04/11/status-code-0-a-simple-fix/" rel="nofollow"&gt;http://commavee.com/2011/04/11...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Thu, 17 Nov 2011 11:43:33 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-366696694</link><description>Hello I'm streaming game log files with your scripts from a file called server.log it starts streaming fine but I'm guessing after it doesn't receive data or something it throws a "Error! request status is 0" any idea?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Thu, 17 Nov 2011 11:22:41 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-338298708</link><description>Sure.   Just add an img link either before or after the log line that is written to the log div, i.e.&lt;br&gt;for (i=0; i &amp;lt; currentLogValue.length - 1; i++) {logLine += currentLogValue[i] + "&amp;lt;img src="\"https://freepository.com/images/favicon.ico\""&amp;gt;&lt;br&gt;\n";}&lt;br&gt;&lt;br&gt;Whether the DOM will parse the img tags if they are already *in* your logfile is an exercise for you.&lt;br&gt;&lt;br&gt;I've updated the example to include the freepository favicon to illustrate this.&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Tue, 18 Oct 2011 12:40:17 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-338233331</link><description>Do you know how I could show images in this tail output? I have a log file that contains &amp;lt;img&amp;gt; tags and I would like to display those images specified in the img tags. Is it possible in this implementation? &lt;br&gt;&lt;br&gt;Thank you very much</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Radu</dc:creator><pubDate>Tue, 18 Oct 2011 11:23:35 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-305161079</link><description>Here's my logtail.php:&lt;br&gt;&lt;br&gt;&lt;a href="https://freepository.com/ajax-logtail-viewer/ajax-logtail.phps" rel="nofollow"&gt;https://freepository.com/ajax-...&lt;/a&gt;&lt;br&gt;&lt;br&gt;With the exception of the path, which I have obscured, this is exactly what is running in the demo.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Thu, 08 Sep 2011 13:53:27 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304633545</link><description>Yes that is what I have been doing ... It's weird. There must be something different with the logtail.php script you actually use - but I cant see that. Sorry for bothering you.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Wed, 07 Sep 2011 20:28:19 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304617792</link><description>ok - managed to access you js files. Looks like the problem is my logtail.php. When I run that direct it does not work. My tail command works when done from command line. Anyway - must be something dump - but wasted too much time on it. My logtail.php simply has $cmd = "tail -10 /etc/gopher/gopher.log"; exec .... as per your origional file. But it does not work. No Idea.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Wed, 07 Sep 2011 19:56:56 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304602481</link><description>That logtail.php doesn't look right.  You're missing a large chunk of it, including the opening tag to indicate a php script.&lt;br&gt;&lt;br&gt;php needs an opening tag like &amp;lt;? or &amp;lt;?php (depends on os + build) in order to be interpreted by the server.  It may be an artifact of posting that your first character is &amp;amp;1", but if not - well that's why the php is throwing a 500.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Wed, 07 Sep 2011 19:32:32 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304601382</link><description>my logtail.html ....&lt;br&gt;&amp;lt;script src="./ajax.js" type="text/javascript"&amp;gt; &amp;lt;/script&amp;gt;&amp;lt;script src="./logtail.js" type="text/javascript"&amp;gt; &amp;lt;/script&amp;gt;&amp;lt;button onclick="getLog('start');"&amp;gt;Start Log&amp;lt;/button&amp;gt;&amp;lt;button onclick="stopTail();"&amp;gt;Stop Log&amp;lt;/button&amp;gt;&amp;lt;div id="log" style="border:solid 1px #dddddd; margin-left:25px; font-size:9px;padding-left:5px; padding-right:10px; padding-top:10px; padding-bottom:20px;margin-top:10px; margin-bottom:10px; width:90%; text-align:left;"&amp;gt;This is the Log Viewer. To begin viewing the log live in this window, click Start Viewer. To stop the window refreshes, click Pause Viewer.&amp;lt;/div&amp;gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Wed, 07 Sep 2011 19:30:25 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304598535</link><description>I use the script(s) elsewhere and use several request variables.   The use of request1, however, is consistent across the demo page.  &lt;br&gt;&lt;br&gt;But you're right - I have mixed-use in the post above, which must be confusing!  Thanks for catching that - it will improve the post for others.&lt;br&gt;&lt;br&gt;To view the source of the individual javascript files, ajax.js + ajax-logtail.js, simply click on them from the view-source page of the demo itself.&lt;br&gt;&lt;br&gt;WRT the 500 error - that's your server complaining abt the php script (or something it calls).  Try opening that script by itself in a browser + see what you get, i.e. does the php render, execute or puke?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Wed, 07 Sep 2011 19:25:27 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304597668</link><description>My logtail.php ...&lt;br&gt;&amp;amp;1", $output);foreach($output as $outputline) { echo ("$outputline\n");}?&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Wed, 07 Sep 2011 19:23:43 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304597237</link><description>My ajax.js ...&lt;br&gt;function createRequest() {	var request = null;	try 	{		request = new XMLHttpRequest();	}	catch (trymicrosoft) 	{		try 		{			request = new ActiveXObject("Msxml2.XMLHTTP");		}		catch (othermicrosoft) 		{			try 			{				request = new ActiveXObject("Microsoft.XMLHTTP");			} 			catch (failed) 			{				request = null;			}		}	}	if (request == null) {		alert("Error creating request object!");	} else {		return request;	}}var request = createRequest();</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Wed, 07 Sep 2011 19:22:51 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304596705</link><description>My logtail.js ...&lt;br&gt;function getLog(timer) {	var url = "logtail.php";	request.open("GET", url, true);	request.onreadystatechange = updatePage;	request.send(null);	startTail(timer);}function startTail(timer) {	if (timer == "stop") 	{		stopTail();	} else {		t= setTimeout("getLog()",1000);	}}function stopTail() {	clearTimeout(t);	var pause = "The log viewer has been paused. To begin viewing again, click the Start Viewer button.\n";	logDiv = document.getElementById("log");	var newNode=document.createTextNode(pause);	logDiv.replaceChild(newNode,logDiv.childNodes[0]);}function updatePage() {	if (request.readyState == 4) 	{		if (request.status == 200) 		{			alert("Good URL ");			var currentLogValue = request.responseText.split("\n");			eval(currentLogValue);			logDiv = document.getElementById("log");			var logLine = ' ';			for (i=0; i &amp;lt; currentLogValue.length - 1; i++) 			{				logLine += currentLogValue[i] + "&lt;br&gt;\n";			}			logDiv.innerHTML=logLine;		} else			alert("Error! Request status is " + request.status);				}}</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Wed, 07 Sep 2011 19:21:48 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304587095</link><description>Great script John and was so pleasantly surprised to get this response so quickly. Yes I have the scripts in the same directory as logtail.php. I just have var url = "logtail.php";. That results in the error 500. Once thing that confused me was that in some of the scripts you had request and in other places request1. I changed all the request1's to request. Umm I can view source but dont know how from their to look at the javascript files (eg ajax.js).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Wed, 07 Sep 2011 19:10:44 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304570050</link><description>Not at all.   The easiest way is to open the demo (mentioned in the post)&lt;br&gt;&lt;br&gt;&lt;a href="https://freepository.com/ajax-logtail-viewer/ajax-logtail-viewer.php" rel="nofollow"&gt;https://freepository.com/ajax-...&lt;/a&gt;&lt;br&gt;&lt;br&gt; in a new tab/window + then view the source.  From there, you can view the entire arrangement + the individual javascript files.&lt;br&gt;&lt;br&gt;You must set the URL for logtail.php to a resolvable path.  If that's the samefolder as the javascript, simply using the name should work.  For clarity of the example, I have used a FQP in my URL.  Take a look at the source + this will be apparent.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Wed, 07 Sep 2011 18:51:14 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-304547483</link><description>To get this code do we have to copy from the 4 windows above? That caused me all sorts of issues. Do you possibly have a clean download? I cant get mine to work - I keep getting an Error! request status is 500. tried everything and am about to give up unfortunately. I am using Web Browser 2.30.6 on Debian. In getLog I set my url to "logtail.php".</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Wed, 07 Sep 2011 18:25:10 -0000</pubDate></item><item><title>Re: Ajax Logfile Viewer &amp;#8211; revisited</title><link>http://commavee.com/2009/01/24/ajax-logfile-viewer-revisited/#comment-286624408</link><description>hi, your site suffers from not "Make it easier to contribute.", i happen to have a disqus account. but many don't also other may note have a twitter account. I understand the need to reduce spam, however a captcha would be nice and simple. &lt;br&gt;&lt;br&gt;anyway, i also just stumbled upon you logfile viewer. I need to use it soon. thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">gmcc</dc:creator><pubDate>Sun, 14 Aug 2011 19:06:27 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-202040629</link><description>Thank you very much. I didn't even thought saving demo page. Anyway, you could put also "reload.php" page source code (instead of having it only in comments). Great work!&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrea</dc:creator><pubDate>Thu, 12 May 2011 09:33:09 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-202033722</link><description>Hey Andrea,&lt;br&gt;&lt;br&gt;Arrrgghh.   Looks like another cut + paste error in the construction of the post.  Funny, it's been there for over three years + no one (inc me) noticed it.  The working example was correct, so folks must have simply grabbed the correct code there.  In any case, the very fist line of ajax.js was missing the statemement that defines the function createRequest.&lt;br&gt;&lt;br&gt;I've updated the post with the full, corrected code.  Thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Thu, 12 May 2011 09:15:51 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-201982491</link><description>createRequest() raises an error in javascript console:&lt;br&gt;&lt;br&gt;createRequest() is not defined.&lt;br&gt;&lt;br&gt;I am using Firefox 4&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrea</dc:creator><pubDate>Thu, 12 May 2011 07:05:03 -0000</pubDate></item><item><title>Re: AJAX Logfile Tailer &amp;#038; Viewer</title><link>http://commavee.com/2007/04/13/ajax-logfile-tailer-viewer/#comment-198497498</link><description>Yes, it is.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Minnihan</dc:creator><pubDate>Fri, 06 May 2011 13:58:17 -0000</pubDate></item></channel></rss>
