<?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: Ensuring JavaScript Is Enabled Before Displaying Content On A Web Page</title>
	<atom:link href="http://www.dougv.com/2009/05/25/ensuring-javascript-is-enabled-before-displaying-content-on-a-web-page/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dougv.com/2009/05/25/ensuring-javascript-is-enabled-before-displaying-content-on-a-web-page/</link>
	<description>ASP.NET, PHP, XML, JavaScript, Web geekery, Entrepreneurship</description>
	<lastBuildDate>Fri, 18 May 2012 10:23:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Doug Vanderweide</title>
		<link>https://www.dougv.com/2009/05/25/ensuring-javascript-is-enabled-before-displaying-content-on-a-web-page/#comment-251</link>
		<dc:creator>Doug Vanderweide</dc:creator>
		<pubDate>Wed, 17 Feb 2010 07:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.dougv.com/blog/?p=2094#comment-251</guid>
		<description>You can always have an empty, &quot;container&quot; &lt;code&gt;div&lt;/code&gt; on the page, then use JavaScript to create child elements of that &quot;container&quot; &lt;code&gt;div&lt;/code&gt;, e.g., &lt;a href=&quot;http://www.w3schools.com/dom/met_element_appendchild.asp&quot; rel=&quot;nofollow&quot;&gt;http://www.w3schools.com/dom/met_element_appendchild.asp&lt;/a&gt;

That ensures that JavaScript must be enabled for your content to be seen, but it is very code-intensive.

I have not worked with &lt;a href=&quot;http://java.sun.com/javaee/javaserverfaces/&quot; rel=&quot;nofollow&quot;&gt;JavaServer Faces&lt;/a&gt; (I assume that&#039;s the JSF you note), so I can&#039;t suggest any methods to employ that in solving your problem directly.</description>
		<content:encoded><![CDATA[<p>You can always have an empty, &#8220;container&#8221; <code>div</code> on the page, then use JavaScript to create child elements of that &#8220;container&#8221; <code>div</code>, e.g., <a href="http://www.w3schools.com/dom/met_element_appendchild.asp" rel="nofollow">http://www.w3schools.com/dom/met_element_appendchild.asp</a></p>
<p>That ensures that JavaScript must be enabled for your content to be seen, but it is very code-intensive.</p>
<p>I have not worked with <a href="http://java.sun.com/javaee/javaserverfaces/" rel="nofollow">JavaServer Faces</a> (I assume that&#8217;s the JSF you note), so I can&#8217;t suggest any methods to employ that in solving your problem directly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: js</title>
		<link>https://www.dougv.com/2009/05/25/ensuring-javascript-is-enabled-before-displaying-content-on-a-web-page/#comment-250</link>
		<dc:creator>js</dc:creator>
		<pubDate>Wed, 17 Feb 2010 07:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dougv.com/blog/?p=2094#comment-250</guid>
		<description>It&#039;s ok! I&#039;ve noticed your div main is hidden but it is in the html code. I&#039;m working with jsf. Do you know how can I render the elements that I want only if javascript is enabled?</description>
		<content:encoded><![CDATA[<p>It&#8217;s ok! I&#8217;ve noticed your div main is hidden but it is in the html code. I&#8217;m working with jsf. Do you know how can I render the elements that I want only if javascript is enabled?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

