<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments for Stickblog</title>
	<atom:link href="http://the-stickman.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://the-stickman.com</link>
	<description>Random developer notes</description>
	<lastBuildDate>Fri, 30 Sep 2016 07:45:01 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>Comment on Getting HTTP response headers when using file_get_contents() by Stickman</title>
		<link>http://the-stickman.com/web-development/php/getting-http-response-headers-when-using-file_get_contents/comment-page-1/#comment-8721</link>
		<dc:creator><![CDATA[Stickman]]></dc:creator>
		<pubDate>Fri, 30 Sep 2016 07:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/?p=14#comment-8721</guid>
		<description><![CDATA[Well there are various ways you could do that. I&#039;m not an expert on HTTP header string formats, but looking at &lt;a href=&quot;https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6&quot; title=&quot;HTTP spec&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;the spec&lt;/a&gt; I reckon that you could probably get away with something as simple as:

&lt;code&gt;
list( $protocol, $status_code, $status ) = explode( &#039; &#039;, $http_response_header[ 0 ] );
&lt;/code&gt;

...where &lt;em&gt;$status_code&lt;/em&gt; is the HTTP status code that&#039;s returned (e.g. 200).]]></description>
		<content:encoded><![CDATA[<p>Well there are various ways you could do that. I&#8217;m not an expert on HTTP header string formats, but looking at <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6" title="HTTP spec" target="_blank" rel="nofollow">the spec</a> I reckon that you could probably get away with something as simple as:</p>
<p><code><br />
list( $protocol, $status_code, $status ) = explode( ' ', $http_response_header[ 0 ] );<br />
</code></p>
<p>&#8230;where <em>$status_code</em> is the HTTP status code that&#8217;s returned (e.g. 200).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting HTTP response headers when using file_get_contents() by Andrew</title>
		<link>http://the-stickman.com/web-development/php/getting-http-response-headers-when-using-file_get_contents/comment-page-1/#comment-8720</link>
		<dc:creator><![CDATA[Andrew]]></dc:creator>
		<pubDate>Fri, 30 Sep 2016 07:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/?p=14#comment-8720</guid>
		<description><![CDATA[But how to check if my page status code lies between 200 - 208 from &quot;HTTP/1.1 200 OK&quot; string?

Can we get the exact number for this like 200 or 203 etc?]]></description>
		<content:encoded><![CDATA[<p>But how to check if my page status code lies between 200 &#8211; 208 from &#8220;HTTP/1.1 200 OK&#8221; string?</p>
<p>Can we get the exact number for this like 200 or 203 etc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using .htaccess to suspend an entire site while still working on it by Stickman</title>
		<link>http://the-stickman.com/web-development/using-htaccess-to-suspend-an-entire-site-while-still-working-on-it/comment-page-1/#comment-1612</link>
		<dc:creator><![CDATA[Stickman]]></dc:creator>
		<pubDate>Wed, 03 Aug 2011 09:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/?p=244#comment-1612</guid>
		<description><![CDATA[Thanks for pointing this out Michael, I&#039;ve updated the post to include a redirect with the appropriate status code.]]></description>
		<content:encoded><![CDATA[<p>Thanks for pointing this out Michael, I&#8217;ve updated the post to include a redirect with the appropriate status code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using .htaccess to suspend an entire site while still working on it by Michael</title>
		<link>http://the-stickman.com/web-development/using-htaccess-to-suspend-an-entire-site-while-still-working-on-it/comment-page-1/#comment-1611</link>
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Wed, 03 Aug 2011 09:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/?p=244#comment-1611</guid>
		<description><![CDATA[You have to send back 503 Service Unavailable HTTP response code unil the end of maintenance.]]></description>
		<content:encoded><![CDATA[<p>You have to send back 503 Service Unavailable HTTP response code unil the end of maintenance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Upload multiple files with a single file element by Vishwajeet</title>
		<link>http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/comment-page-11/#comment-1610</link>
		<dc:creator><![CDATA[Vishwajeet]]></dc:creator>
		<pubDate>Tue, 02 Aug 2011 11:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/?p=8#comment-1610</guid>
		<description><![CDATA[Unfortunately, the code is not working when tested in IE8 with java servlet as server side entity. I tried this with jakarta commons file uploader package to access the uploaded files in the servlet. 
I get the following log info at server side-
&gt;Field Name = file_1, File Name = , Content type = &gt;application/octet-stream, File Size = 0

 Even if I try and upload, say, 5 files at server side it just receives the last uploaded file name, in this case fifth, as &#039;Field Name&#039; without any uploaded file.
I hope I make my point clear here. The same code just works fine if I comment out the JavaScript code in the provided example.html and just upload a single file(which is a default behaviour). 
I hope this problem has nothing to do with choice of Java servlet as server side component or the jakarta file uploader package.]]></description>
		<content:encoded><![CDATA[<p>Unfortunately, the code is not working when tested in IE8 with java servlet as server side entity. I tried this with jakarta commons file uploader package to access the uploaded files in the servlet.<br />
I get the following log info at server side-<br />
&gt;Field Name = file_1, File Name = , Content type = &gt;application/octet-stream, File Size = 0</p>
<p> Even if I try and upload, say, 5 files at server side it just receives the last uploaded file name, in this case fifth, as &#8216;Field Name&#8217; without any uploaded file.<br />
I hope I make my point clear here. The same code just works fine if I comment out the JavaScript code in the provided example.html and just upload a single file(which is a default behaviour).<br />
I hope this problem has nothing to do with choice of Java servlet as server side component or the jakarta file uploader package.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Upload multiple files with a single file element by Toko Bunga Alam</title>
		<link>http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/comment-page-11/#comment-1609</link>
		<dc:creator><![CDATA[Toko Bunga Alam]]></dc:creator>
		<pubDate>Sat, 30 Jul 2011 17:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/?p=8#comment-1609</guid>
		<description><![CDATA[wow... great.
but i prefer the real multiple file uploader, not 3 times click. :)]]></description>
		<content:encoded><![CDATA[<p>wow&#8230; great.<br />
but i prefer the real multiple file uploader, not 3 times click. <img src="http://the-stickman.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Finding selection start and end position in a textarea, in Internet Explorer by Jerry B.</title>
		<link>http://the-stickman.com/web-development/javascript/finding-selection-cursor-position-in-a-textarea-in-internet-explorer/comment-page-1/#comment-1607</link>
		<dc:creator><![CDATA[Jerry B.]]></dc:creator>
		<pubDate>Thu, 14 Jul 2011 17:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/uncategorized/finding-selection-cursor-position-in-a-textarea-in-internet-explorer/#comment-1607</guid>
		<description><![CDATA[I revised my solution to handle the issue noted by Simon Sanderson.

It moves a bookmark from the document.selection textrange to an element textrange. It correctly calculates the start and end positions regardless of where the element is in the page. It now handles end of field bookmarks with no selection.

function getSelectionRange(oElm)
{
	var $r	= { text: &quot;&quot;, start: 0, end: 0, length: 0 };
	if (oElm.setSelectionRange)
	{	/* W3C/Gecko/IE9+ */
		$r.start= oElm.selectionStart;
		$r.end	= oElm.selectionEnd;
		$r.text	= ($r.start !== $r.end) ? oElm.value.substring($r.start, $r.end): &quot;&quot;;
	}
	else if (document.selection)
	{	/* IE8- */
		var $oS, $oR, $oT;
		if (oElm.tagName &amp;&amp; oElm.tagName === &quot;TEXTAREA&quot;)
		{
			$oS	= document.selection.createRange().duplicate();
			$oR	= oElm.createTextRange();
			$oR.collapse(false);
			$oR.moveToBookmark($oS.getBookmark());
			if ($oS.text === &quot;&quot;)
			{
				$oT	= $oR.duplicate();
				$oT.moveEnd(&quot;character&quot;, 1);
				if ($oS.boundingWidth === $oT.boundingWidth &amp;&amp; $oS.boundingHeight === $oT.boundingHeight)
				{
					$oR	= $oT;
				}
			}
		}
		else
		{
			$oR	= document.selection.createRange().duplicate();
		}
		$r.text		= $oR.text;
		$r.start	= Math.abs($oR.moveStart(&quot;character&quot;, -1000000));
			$r.end		= $r.text.length + $r.start;
	}
	else if (document.getSelection)
	{	/* Netscape 4 */
		$r.text	= document.getSelection();
		$r.end	= $r.text.length;
	}
	$r.length	= $r.text.length;
	return $r;
}]]></description>
		<content:encoded><![CDATA[<p>I revised my solution to handle the issue noted by Simon Sanderson.</p>
<p>It moves a bookmark from the document.selection textrange to an element textrange. It correctly calculates the start and end positions regardless of where the element is in the page. It now handles end of field bookmarks with no selection.</p>
<p>function getSelectionRange(oElm)<br />
{<br />
	var $r	= { text: &#8220;&#8221;, start: 0, end: 0, length: 0 };<br />
	if (oElm.setSelectionRange)<br />
	{	/* W3C/Gecko/IE9+ */<br />
		$r.start= oElm.selectionStart;<br />
		$r.end	= oElm.selectionEnd;<br />
		$r.text	= ($r.start !== $r.end) ? oElm.value.substring($r.start, $r.end): &#8220;&#8221;;<br />
	}<br />
	else if (document.selection)<br />
	{	/* IE8- */<br />
		var $oS, $oR, $oT;<br />
		if (oElm.tagName &amp;&amp; oElm.tagName === &#8220;TEXTAREA&#8221;)<br />
		{<br />
			$oS	= document.selection.createRange().duplicate();<br />
			$oR	= oElm.createTextRange();<br />
			$oR.collapse(false);<br />
			$oR.moveToBookmark($oS.getBookmark());<br />
			if ($oS.text === &#8220;&#8221;)<br />
			{<br />
				$oT	= $oR.duplicate();<br />
				$oT.moveEnd(&#8220;character&#8221;, 1);<br />
				if ($oS.boundingWidth === $oT.boundingWidth &amp;&amp; $oS.boundingHeight === $oT.boundingHeight)<br />
				{<br />
					$oR	= $oT;<br />
				}<br />
			}<br />
		}<br />
		else<br />
		{<br />
			$oR	= document.selection.createRange().duplicate();<br />
		}<br />
		$r.text		= $oR.text;<br />
		$r.start	= Math.abs($oR.moveStart(&#8220;character&#8221;, -1000000));<br />
			$r.end		= $r.text.length + $r.start;<br />
	}<br />
	else if (document.getSelection)<br />
	{	/* Netscape 4 */<br />
		$r.text	= document.getSelection();<br />
		$r.end	= $r.text.length;<br />
	}<br />
	$r.length	= $r.text.length;<br />
	return $r;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Upload multiple files with a single file element by powerpoint45</title>
		<link>http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/comment-page-11/#comment-1605</link>
		<dc:creator><![CDATA[powerpoint45]]></dc:creator>
		<pubDate>Wed, 13 Jul 2011 20:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/?p=8#comment-1605</guid>
		<description><![CDATA[does anyone know how to make it so the file sends to an Email]]></description>
		<content:encoded><![CDATA[<p>does anyone know how to make it so the file sends to an Email</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dynamic forms and tables in Mozilla by Shashi</title>
		<link>http://the-stickman.com/web-development/dynamic-forms-and-tables-in-mozilla/comment-page-1/#comment-1604</link>
		<dc:creator><![CDATA[Shashi]]></dc:creator>
		<pubDate>Sat, 09 Jul 2011 21:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/dynamic-forms-and-tables-in-mozilla/#comment-1604</guid>
		<description><![CDATA[Bingooooooooo....it solved my problem... Had been struggling with this issue for almost a week now..... thank u so much for posting this...it helped me after been posted for more than 6 years now...thanks a ton]]></description>
		<content:encoded><![CDATA[<p>Bingooooooooo&#8230;.it solved my problem&#8230; Had been struggling with this issue for almost a week now&#8230;.. thank u so much for posting this&#8230;it helped me after been posted for more than 6 years now&#8230;thanks a ton</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Upload multiple files with a single file element by centos</title>
		<link>http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/comment-page-11/#comment-1603</link>
		<dc:creator><![CDATA[centos]]></dc:creator>
		<pubDate>Fri, 08 Jul 2011 03:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/?p=8#comment-1603</guid>
		<description><![CDATA[Great job for the multiple file selector but can you help me with the multiple file fields in the same page with multiple file selector for each.]]></description>
		<content:encoded><![CDATA[<p>Great job for the multiple file selector but can you help me with the multiple file fields in the same page with multiple file selector for each.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.180 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2017-06-14 11:14:11 -->

<!-- Compression = gzip -->