<?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>www.pinkpetrol.com &#187; JavaScript</title>
	<atom:link href="http://www.pinkpetrol.com/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pinkpetrol.com</link>
	<description>sams blog</description>
	<lastBuildDate>Tue, 10 Aug 2010 23:30:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JavaScript Error when Moving WebParts in a CSS and DIV&#8217;d up MasterPage</title>
		<link>http://www.pinkpetrol.com/blog/2009/04/javascript-error-when-moving-webparts-in-a-css-and-divd-up-masterpage/</link>
		<comments>http://www.pinkpetrol.com/blog/2009/04/javascript-error-when-moving-webparts-in-a-css-and-divd-up-masterpage/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 10:49:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.pinkpetrol.com/?p=67</guid>
		<description><![CDATA[
I spent a lot of time trying to put SharePoint in a nice place where it could flourish without being bullied by other sites that conform to accessibility standards. So you can probably understand my anger when I discovered that my new masterpage and css broke the drag and drop functionality.
When in Edit Mode, you try [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-310" title="Helpful errors" src="http://www.pinkpetrol.com/wp-content/uploads/2009/04/error.jpg" alt="Helpful errors" width="577" height="200" /></p>
<p>I spent a lot of time trying to put SharePoint in a nice place where it could flourish without being bullied by other sites that conform to accessibility standards. So you can probably understand my anger when I discovered that my new masterpage and css broke the drag and drop functionality.</p>
<p>When in Edit Mode, you try and drag and drop a WebPart from one WebZone to another it ill throw up a Javascript Error and the functionality wont work. Even though this functionality only works in IE it does present a customer use problem.</p>
<p>At first I used <a title="Link to Niel Mosafi's blog" href="http://neilmosafi.blogspot.com/2007/11/sharepoint-dragging-webparts-causes.html" target="_blank">Neil Mosafi&#8217;s</a> solution of using his JavaScript fix, at first it worked but I saw it only worked periodically, so the problem still existed.  I searched and I searched and found nothing. I then looked at using the CSS to control the problem which I believe is that the webparts don&#8217;t exist now because they are divs and not tables (?)</p>
<p>I&#8217;m not a techy so I tend not to delve into the problems as much as they do, I just look at why it doesn&#8217;t work and what is the easiest fix.</p>
<p>body {<br />
margin: 5px;<br />
padding: 0;<br />
text-align: center;<br />
font-family:Arial;<br />
font-size:62.5%;<br />
background:#ffffff;<br />
<strong>position:relative;</strong><br />
}</p>
<p>I found adding Position:Relative to the body fixes this, I tried doing this on all the WebPart TD tags but it didn&#8217;t work and it got tiresome and annoying, I have found that this has worked but SharePoint being SharePoint it doesn&#8217;t wondering unexplained things, so time will tell if this has really fixed the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pinkpetrol.com/blog/2009/04/javascript-error-when-moving-webparts-in-a-css-and-divd-up-masterpage/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
