<?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: Dynamically change class attribute of body tag using typoscript</title>
	<atom:link href="http://blog.chandanweb.com/typo3/dynamically-change-class-attribute-of-body-tag-using-typoscript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.chandanweb.com/typo3/dynamically-change-class-attribute-of-body-tag-using-typoscript</link>
	<description>A useful blog with code assitance on Typo3, Drupal, PHP, Apache, OpenSSL and PHP Frameworks</description>
	<lastBuildDate>Sun, 29 May 2011 11:19:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: spabhat</title>
		<link>http://blog.chandanweb.com/typo3/dynamically-change-class-attribute-of-body-tag-using-typoscript/comment-page-1#comment-20</link>
		<dc:creator>spabhat</dc:creator>
		<pubDate>Fri, 15 May 2009 05:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.chandanweb.com/typo3/dynamically-change-class-attribute-of-body-tag-using-typoscript#comment-20</guid>
		<description>Are you referring to onclick or onload?
I usually prefer Prototype / jQuery to bind all events.

Anyway you should be able to use this method:

&lt;blockquote&gt;
# bodyTag
page.bodyTag &gt;

page.bodyTagCObject = TEXT
page.bodyTagCObject.data = field:id
page.bodyTagCObject.wrap = &lt;body onload=&#039;javascript:myFunction();&#039; class=&#039;myclass_&#124;&#039;&gt;
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Are you referring to onclick or onload?<br />
I usually prefer Prototype / jQuery to bind all events.</p>
<p>Anyway you should be able to use this method:</p>
<blockquote><p>
# bodyTag<br />
page.bodyTag ></p>
<p>page.bodyTagCObject = TEXT<br />
page.bodyTagCObject.data = field:id<br />
page.bodyTagCObject.wrap = &lt;body onload=&#8217;javascript:myFunction();&#8217; class=&#8217;myclass_|&#8217;&gt;
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.chandanweb.com/typo3/dynamically-change-class-attribute-of-body-tag-using-typoscript/comment-page-1#comment-16</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 15 May 2009 01:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.chandanweb.com/typo3/dynamically-change-class-attribute-of-body-tag-using-typoscript#comment-16</guid>
		<description>How would I add an onclick event using this method?

page.bodyTag &gt;

page.bodyTagCObject = TEXT
page.bodyTagCObject.wrap = </description>
		<content:encoded><![CDATA[<p>How would I add an onclick event using this method?</p>
<p>page.bodyTag &gt;</p>
<p>page.bodyTagCObject = TEXT<br />
page.bodyTagCObject.wrap =</p>
]]></content:encoded>
	</item>
</channel>
</rss>

