<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Peter Gerritsen&#039;s blog &#187; CSS</title>
	<atom:link href="http://blog.petergerritsen.nl/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.petergerritsen.nl</link>
	<description>about .Net and SharePoint development</description>
	<lastBuildDate>Wed, 28 Jul 2010 08:28:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>JavaScript errors after implementing a custom site design</title>
		<link>http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 11:44:11 +0000</pubDate>
		<dc:creator>Peter Gerritsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MOSS]]></category>

		<guid isPermaLink="false">http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/</guid>
		<description><![CDATA[Most of the times we create and develop a custom design for the portals and websites we build. This can actually lead to some rather odd JavaScript error messages saying some object is undefined when dragging and dropping web parts or using the list item edit menu. Believe it or not, this is most of [...]<p><a href="http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/">JavaScript errors after implementing a custom site design</a> is a post from: <a href="http://blog.petergerritsen.nl">Peter Gerritsen&#039;s blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Most of the times we create and develop a custom design for the portals and websites we build.</p>
<p>This can actually lead to some rather odd JavaScript error messages saying some object is undefined when dragging and dropping web parts or using the list item edit menu.</p>
<p>Believe it or not, this is most of the times due to the custom style sheet and not to any custom JavaScript.</p>
<p>The reason for this is that the build in JavaScript of MOSS use a property offsetParent of a DOM-element to perform some &#8220;magic&#8221;. <strong>offsetParent</strong> returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element. In some of our custom designs this sometimes returns null and the script throws the &#8220;object undefined&#8221; error.</p>
<p>The easiest solution to prevent this, is to absolute-position the body by include the following statement in your css:</p>
<p><span style="font-family: courier new;">body { position: absolute !important; } </span></p>
<p>This can off course lead to some css issues, so positioning a wrapper is also an option.</p>
<!-- RO Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/" title="Add 'JavaScript errors after implementing a custom site design' to Twitter"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/twitter.png" title="Add 'JavaScript errors after implementing a custom site design' to Twitter" alt="Add 'JavaScript errors after implementing a custom site design' to Twitter" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.myspace.com/Modules/PostTo/Pages/?t=JavaScript+errors+after+implementing+a+custom+site+design&#038;c=http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/" title="Add 'JavaScript errors after implementing a custom site design' to MySpace"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/myspace.png" title="Add 'JavaScript errors after implementing a custom site design' to MySpace" alt="Add 'JavaScript errors after implementing a custom site design' to MySpace" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/&#038;title=JavaScript+errors+after+implementing+a+custom+site+design" title="Add 'JavaScript errors after implementing a custom site design' to Del.icio.us"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/delicious.png" title="Add 'JavaScript errors after implementing a custom site design' to Del.icio.us" alt="Add 'JavaScript errors after implementing a custom site design' to Del.icio.us" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&#038;url=http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/&#038;title=JavaScript+errors+after+implementing+a+custom+site+design" title="Add 'JavaScript errors after implementing a custom site design' to digg"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/digg.png" title="Add 'JavaScript errors after implementing a custom site design' to digg" alt="Add 'JavaScript errors after implementing a custom site design' to digg" /></a><br /><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/&#038;t=JavaScript+errors+after+implementing+a+custom+site+design" title="Add 'JavaScript errors after implementing a custom site design' to FaceBook"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/facebook.png" title="Add 'JavaScript errors after implementing a custom site design' to FaceBook" alt="Add 'JavaScript errors after implementing a custom site design' to FaceBook" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/" title="Add 'JavaScript errors after implementing a custom site design' to Technorati"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/technorati.png" title="Add 'JavaScript errors after implementing a custom site design' to Technorati" alt="Add 'JavaScript errors after implementing a custom site design' to Technorati" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/&#038;title=JavaScript+errors+after+implementing+a+custom+site+design" title="Add 'JavaScript errors after implementing a custom site design' to Stumble Upon"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/stumbleupon.png" title="Add 'JavaScript errors after implementing a custom site design' to Stumble Upon" alt="Add 'JavaScript errors after implementing a custom site design' to Stumble Upon" /></a><a  class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&#038;output=popup&#038;bkmk=http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/&#038;title=JavaScript+errors+after+implementing+a+custom+site+design" title="Add 'JavaScript errors after implementing a custom site design' to Google Bookmarks"><img src="http://blog.petergerritsen.nl/wp-content/plugins/ro-social-bookmarks/google.png" title="Add 'JavaScript errors after implementing a custom site design' to Google Bookmarks" alt="Add 'JavaScript errors after implementing a custom site design' to Google Bookmarks" /></a></div>
<!-- RO Social Bookmarks END --><p><a  href="http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/">JavaScript errors after implementing a custom site design</a> is a post from: <a  href="http://blog.petergerritsen.nl">Peter Gerritsen&#039;s blog</a></p>
<div class="fblike" style="height:25px; height:25px; overflow:hidden;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.petergerritsen.nl%2F2009%2F01%2F31%2Fjavascript-errors-after-implementing-a-custom-site-design%2F&amp;layout=standard&amp;show_faces=false&amp;width=320&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allow Transparency="true" style="border:none; overflow:hidden; width:320px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://blog.petergerritsen.nl/2009/01/31/javascript-errors-after-implementing-a-custom-site-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
