<?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 on: PHP+JS Detection of JavaScript browser settings</title>
	<atom:link href="http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/</link>
	<description>Knowledge comes from inspiration - one bit at a time</description>
	<lastBuildDate>Mon, 06 Jul 2009 00:43:12 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vivien</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-14477</link>
		<dc:creator>Vivien</dc:creator>
		<pubDate>Wed, 02 Jul 2008 19:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-14477</guid>
		<description>You&#039;re welcome, Craig. Nowadays I don&#039;t think that any user would benefit from turning JavaScript off, but I guess there would still be such users.</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome, Craig. Nowadays I don&#8217;t think that any user would benefit from turning JavaScript off, but I guess there would still be such users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-14467</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Wed, 02 Jul 2008 00:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-14467</guid>
		<description>Thanks for this great bit of code. Very similar to how I was trying to achieve the same function, but much simpler.

Haven&#039;t actually tested your version yet, but this could also use a session variable so that the script doesn&#039;t have to be run every time a page loads.

Edit: the only downfall of using a session variable would be if a user turned javascript off after loading the page the first time. But of course there&#039;s always a way around.</description>
		<content:encoded><![CDATA[<p>Thanks for this great bit of code. Very similar to how I was trying to achieve the same function, but much simpler.</p>
<p>Haven&#8217;t actually tested your version yet, but this could also use a session variable so that the script doesn&#8217;t have to be run every time a page loads.</p>
<p>Edit: the only downfall of using a session variable would be if a user turned javascript off after loading the page the first time. But of course there&#8217;s always a way around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gsosamv</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-11036</link>
		<dc:creator>gsosamv</dc:creator>
		<pubDate>Fri, 09 Nov 2007 00:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-11036</guid>
		<description>I know this is an old post but i will leave you guys the option that I used and worked on FF and IE, the only that i found was (i dont know if its good or bad) that the page blinks a lil bit, check it out:



&quot; name=&quot;jscheckform&quot; method=&quot;post&quot;&gt;



	document.forms.jscheckform.jsenabled.value=&quot;Y&quot;;
	document.forms.jscheckform.submit();


No JS&quot;);
	}
?&gt;

i just included this file on every page and works fine to me, any comments will be apprecieated!

ciao!</description>
		<content:encoded><![CDATA[<p>I know this is an old post but i will leave you guys the option that I used and worked on FF and IE, the only that i found was (i dont know if its good or bad) that the page blinks a lil bit, check it out:</p>
<p>&#8221; name=&#8221;jscheckform&#8221; method=&#8221;post&#8221;&gt;</p>
<p>	document.forms.jscheckform.jsenabled.value=&#8221;Y&#8221;;<br />
	document.forms.jscheckform.submit();</p>
<p>No JS&#8221;);<br />
	}<br />
?&gt;</p>
<p>i just included this file on every page and works fine to me, any comments will be apprecieated!</p>
<p>ciao!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-9993</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Sun, 23 Sep 2007 01:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-9993</guid>
		<description>fyi... I initially posted a comment critical of your statement that your PHP code wasn&#039;t recognized in the noscript tag... but then I realized that you might not mean what I thought you meant. I thought you meant that the  tag would influence the parsing of your PHP, which of course is not true. However, it seems that what you mean is that whatever you output within noscript will not be recognized by browsers with Javascript turned on... which of course is true.

It&#039;s a good idea to use noscript when you can, though, because it&#039;s designed for this very purpose. And in general, you can usually figure out ways to make a page downgrade gracefully without relying on more extreme solutions like automating a hidden form submission. To each their own, though, I guess :).</description>
		<content:encoded><![CDATA[<p>fyi&#8230; I initially posted a comment critical of your statement that your PHP code wasn&#8217;t recognized in the noscript tag&#8230; but then I realized that you might not mean what I thought you meant. I thought you meant that the  tag would influence the parsing of your PHP, which of course is not true. However, it seems that what you mean is that whatever you output within noscript will not be recognized by browsers with Javascript turned on&#8230; which of course is true.</p>
<p>It&#8217;s a good idea to use noscript when you can, though, because it&#8217;s designed for this very purpose. And in general, you can usually figure out ways to make a page downgrade gracefully without relying on more extreme solutions like automating a hidden form submission. To each their own, though, I guess :).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivien</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-6027</link>
		<dc:creator>Vivien</dc:creator>
		<pubDate>Fri, 03 Aug 2007 17:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-6027</guid>
		<description>Hi Sid. Are you getting any errors in IE when you run the script?</description>
		<content:encoded><![CDATA[<p>Hi Sid. Are you getting any errors in IE when you run the script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sid</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-6026</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Fri, 03 Aug 2007 17:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-6026</guid>
		<description>This script does not work with internet explorer.</description>
		<content:encoded><![CDATA[<p>This script does not work with internet explorer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: staima</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-3527</link>
		<dc:creator>staima</dc:creator>
		<pubDate>Thu, 07 Jun 2007 16:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-3527</guid>
		<description>@ derobonson:

you script will always give $js=1:

js: document.write([?php $js=1; ?]);

php will always process that line and set js to on -- even when js is off... :(&#039;</description>
		<content:encoded><![CDATA[<p>@ derobonson:</p>
<p>you script will always give $js=1:</p>
<p>js: document.write([?php $js=1; ?]);</p>
<p>php will always process that line and set js to on &#8212; even when js is off&#8230; :(&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: derobonson</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-1335</link>
		<dc:creator>derobonson</dc:creator>
		<pubDate>Tue, 17 Apr 2007 02:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-1335</guid>
		<description>oops, code: http://adamrobinson.freehostia.com/jsdetect.txt</description>
		<content:encoded><![CDATA[<p>oops, code: <a href="http://adamrobinson.freehostia.com/jsdetect.txt" rel="nofollow">http://adamrobinson.freehostia.com/jsdetect.txt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: derobonson</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-1334</link>
		<dc:creator>derobonson</dc:creator>
		<pubDate>Tue, 17 Apr 2007 02:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-1334</guid>
		<description>Thanks for the info above, i was playing around with some ideas and came up with the below, it seems to work fine and doesnt require hidden form fields or re-directions like other methods i have found.





 &lt;!--Set a variable to assume js is off--&gt;


&#039;);&lt;!--If js is on it will set the php var to true if not it will stay false--&gt;
//--&gt;

&lt;!--Perform what you need to do depending on js being on / off--&gt;






</description>
		<content:encoded><![CDATA[<p>Thanks for the info above, i was playing around with some ideas and came up with the below, it seems to work fine and doesnt require hidden form fields or re-directions like other methods i have found.</p>
<p> <!--Set a variable to assume js is off--></p>
<p>&#8216;);<!--If js is on it will set the php var to true if not it will stay false--><br />
//&#8211;&gt;</p>
<p><!--Perform what you need to do depending on js being on / off--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.inspirationbit.com/php-js-detection-of-javascript-browser-settings/comment-page-1/#comment-6</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 09 Jan 2007 06:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://inspirationbit.com/php-js-detection-of-whether-javascript-is-disabled-in-a-browser-or-not/#comment-6</guid>
		<description>&lt;strong&gt;How to detect JavaScript support with JS and PHP...&lt;/strong&gt;

A useful post on detecting whether JavaScript is set to OFF in a client&#039;s browser or ON. This detection is done with JavaScript and PHP and very helpful for including in a PHP code....</description>
		<content:encoded><![CDATA[<p><strong>How to detect JavaScript support with JS and PHP&#8230;</strong></p>
<p>A useful post on detecting whether JavaScript is set to OFF in a client&#8217;s browser or ON. This detection is done with JavaScript and PHP and very helpful for including in a PHP code&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
