<?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: Fixing the &#8216;onClick&#8217; in Dreamweaver</title>
	<atom:link href="http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Sun, 22 Nov 2009 11:54:05 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: azw</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-898718</link>
		<dc:creator>azw</dc:creator>
		<pubDate>Fri, 20 Mar 2009 20:01:22 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-898718</guid>
		<description>Jeremie, although the second solution you wrote about would appear to be an easy answer, unfortunately it doesn&#039;t work, at least not in CS3. DW will continue to change onLoad and similar code.

That&#039;s why your first answer is the only solution I&#039;ve found. I&#039;ve described it in more detail just a few comments above yours.</description>
		<content:encoded><![CDATA[<p>Jeremie, although the second solution you wrote about would appear to be an easy answer, unfortunately it doesn&#8217;t work, at least not in CS3. DW will continue to change onLoad and similar code.</p>
<p>That&#8217;s why your first answer is the only solution I&#8217;ve found. I&#8217;ve described it in more detail just a few comments above yours.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jérémie</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-898710</link>
		<dc:creator>Jérémie</dc:creator>
		<pubDate>Fri, 20 Mar 2009 19:49:40 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-898710</guid>
		<description>Or easier, don&#039;t allow dreamweaver to modify your code.
Edit &gt; Preferences. In Code Format uncheck the following :
Replace case of : tags, attributes

P.S.: sorry for the poor translation, i&#039;m french</description>
		<content:encoded><![CDATA[<p>Or easier, don&#8217;t allow dreamweaver to modify your code.<br />
Edit &gt; Preferences. In Code Format uncheck the following :<br />
Replace case of : tags, attributes</p>
<p>P.S.: sorry for the poor translation, i&#8217;m french</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jérémie</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-898694</link>
		<dc:creator>Jérémie</dc:creator>
		<pubDate>Fri, 20 Mar 2009 19:29:39 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-898694</guid>
		<description>Yeah, i had this pb.
Each time i opened a document with onload, dw replaced it with onLoad. So my Xhtml document didn&#039;t passed the w3c validation. It was frustrating to have it open and modify with PSPAD or Notepad++.

But in Dreamweaver CS4 (or may be since cs3) you can edit the tag library.
Edit &gt; Preferences. In code format, you can find a tag editor where you can replace each attribute of an html tag.
For example : in body, replace onClick by onclick (also for each events, like onload, onfocus, onresize, onblur, onunload).
So this is not a problem anymore...</description>
		<content:encoded><![CDATA[<p>Yeah, i had this pb.<br />
Each time i opened a document with onload, dw replaced it with onLoad. So my Xhtml document didn&#8217;t passed the w3c validation. It was frustrating to have it open and modify with PSPAD or Notepad++.</p>
<p>But in Dreamweaver CS4 (or may be since cs3) you can edit the tag library.<br />
Edit &gt; Preferences. In code format, you can find a tag editor where you can replace each attribute of an html tag.<br />
For example : in body, replace onClick by onclick (also for each events, like onload, onfocus, onresize, onblur, onunload).<br />
So this is not a problem anymore&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AJenbo</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-847067</link>
		<dc:creator>AJenbo</dc:creator>
		<pubDate>Thu, 11 Dec 2008 13:59:32 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-847067</guid>
		<description>Ps. yes you can use the DW seach and replace for this :)</description>
		<content:encoded><![CDATA[<p>Ps. yes you can use the DW seach and replace for this :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AJenbo</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-847066</link>
		<dc:creator>AJenbo</dc:creator>
		<pubDate>Thu, 11 Dec 2008 13:58:58 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-847066</guid>
		<description>I already set the default case to lowercase in DW settings, but i still got this mangled case. And it&#039;s realy a lot of work to to go threw each individual tag and it&#039;s atributes to correct Macromedias (Adobes) mistakes, atleast they could have given us a common set of atributes. or even set all to default.
Than you very much for finding the solution and the folder to apply it to (i needed to fix more then just onClick).</description>
		<content:encoded><![CDATA[<p>I already set the default case to lowercase in DW settings, but i still got this mangled case. And it&#8217;s realy a lot of work to to go threw each individual tag and it&#8217;s atributes to correct Macromedias (Adobes) mistakes, atleast they could have given us a common set of atributes. or even set all to default.<br />
Than you very much for finding the solution and the folder to apply it to (i needed to fix more then just onClick).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: azw</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-65605</link>
		<dc:creator>azw</dc:creator>
		<pubDate>Sun, 08 Oct 2006 07:21:17 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-65605</guid>
		<description>Asp_funda might be right. But I wasn&#039;t able to get that to work.

One problem with Alex&#039;s method is that it doesn&#039;t fix the other event handlers, although he could do the same thing for each of them.

I choose to selectively edit tags for all of the event handlers for the tags I typically use with them.

The files that need to be edited are in this folder:
C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\TagLibraries\HTML

You&#039;ll open the files in Notepad.

You should to save a copy, of course, before changing any of the files.

The files I changed were:
a.vtm
body.vtm
button.vtm
form.vtm
input.vtm

You might also need to change:
frameset.vtm
area.vtm
img.vtm
label.vtm 
select.vtm
textarea.vtm

Actually a lot of tags can accept some of the event handlers, like onClick, onMouseOver, onKeyPress, etc. so you should change the tags you actually use.</description>
		<content:encoded><![CDATA[<p>Asp_funda might be right. But I wasn&#8217;t able to get that to work.</p>
<p>One problem with Alex&#8217;s method is that it doesn&#8217;t fix the other event handlers, although he could do the same thing for each of them.</p>
<p>I choose to selectively edit tags for all of the event handlers for the tags I typically use with them.</p>
<p>The files that need to be edited are in this folder:<br />
C:\Program Files\Macromedia\Dreamweaver MX 2004\Configuration\TagLibraries\HTML</p>
<p>You&#8217;ll open the files in Notepad.</p>
<p>You should to save a copy, of course, before changing any of the files.</p>
<p>The files I changed were:<br />
a.vtm<br />
body.vtm<br />
button.vtm<br />
form.vtm<br />
input.vtm</p>
<p>You might also need to change:<br />
frameset.vtm<br />
area.vtm<br />
img.vtm<br />
label.vtm<br />
select.vtm<br />
textarea.vtm</p>
<p>Actually a lot of tags can accept some of the event handlers, like onClick, onMouseOver, onKeyPress, etc. so you should change the tags you actually use.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Yank</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-3317</link>
		<dc:creator>Kevin Yank</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-3317</guid>
		<description>&lt;p&gt;I wonder, could you have used the Find and Replace tool built into Dreamweaver to do this? Software, heal thyself! :)&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>I wonder, could you have used the Find and Replace tool built into Dreamweaver to do this? Software, heal thyself! :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AlexW</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-3318</link>
		<dc:creator>AlexW</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-3318</guid>
		<description>&lt;p&gt;[quote=Kevin Yank]I wonder, could you have used the Find and Replace tool built into Dreamweaver to do this? Software, heal thyself! :)[/quote]&lt;/p&gt;

&lt;p&gt;Hehehe,.. I thought about that, but I considered that I was already pushing my luck.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>[quote=Kevin Yank]I wonder, could you have used the Find and Replace tool built into Dreamweaver to do this? Software, heal thyself! :)[/quote]</p>
<p>Hehehe,.. I thought about that, but I considered that I was already pushing my luck.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dean C</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-3319</link>
		<dc:creator>Dean C</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-3319</guid>
		<description>&lt;p&gt;Find + Replace in multiple files is a godsend. You can do the same thing in UltraEdit :)&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Find + Replace in multiple files is a godsend. You can do the same thing in UltraEdit :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: colinmcc</title>
		<link>http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/comment-page-1/#comment-3320</link>
		<dc:creator>colinmcc</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">1664045422#comment-3320</guid>
		<description>&lt;p&gt;Wow, neat program! &lt;/p&gt;

&lt;p&gt;I built my first site some five years ago and started puting all the files in the one folder, which has now grown to a mess of several thousand .htm .jpg and .gif files. &lt;/p&gt;

&lt;p&gt;The thought of going through each .html file and running find and replace has horrified me, but now I&#039;m going to make a backup of the site locally, and try running &#039;Replace in Files&#039; on the whole site, changing all the mentions of src=&quot; with src=&quot;pics/ &lt;/p&gt;

&lt;p&gt;So after I&#039;ve  copied  *.jpg to a new pic folder and done the same with *.gif I should have all my links looking to find the picture files in the /pic folder. &lt;/p&gt;

&lt;p&gt;If it works I&#039;ll be really happy!&lt;/p&gt;

&lt;p&gt;Thanks, Sitepoint!&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Wow, neat program! </p>
<p>I built my first site some five years ago and started puting all the files in the one folder, which has now grown to a mess of several thousand .htm .jpg and .gif files. </p>
<p>The thought of going through each .html file and running find and replace has horrified me, but now I&#8217;m going to make a backup of the site locally, and try running &#8216;Replace in Files&#8217; on the whole site, changing all the mentions of src=&#8221; with src=&#8221;pics/ </p>
<p>So after I&#8217;ve  copied  *.jpg to a new pic folder and done the same with *.gif I should have all my links looking to find the picture files in the /pic folder. </p>
<p>If it works I&#8217;ll be really happy!</p>
<p>Thanks, Sitepoint!</p>]]></content:encoded>
	</item>
</channel>
</rss>
