<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Caritatis</title>
	<atom:link href="http://caritatis.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://caritatis.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 15 Aug 2011 19:01:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='caritatis.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Caritatis</title>
		<link>http://caritatis.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://caritatis.wordpress.com/osd.xml" title="Caritatis" />
	<atom:link rel='hub' href='http://caritatis.wordpress.com/?pushpress=hub'/>
		<item>
		<title>jQgrid change element in form based on another</title>
		<link>http://caritatis.wordpress.com/2011/08/12/jqgrid-change-element-in-form-based-on-another/</link>
		<comments>http://caritatis.wordpress.com/2011/08/12/jqgrid-change-element-in-form-based-on-another/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 16:56:10 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[jQgrid]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=212</guid>
		<description><![CDATA[David Hansen, 2009/09/19 15:59 Here&#8217;s an example of using editoptions dataEvents to change another form element based on an onChange event in a &#60;select&#62;. In this case, the form contains Job_Name and Job_Number fields. The value of the Job_Number field is set using the value of the selected Job_Name option. { name: 'Job_Number', index: '`Job [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=212&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>David Hansen, <abbr title="2009-09-19T15:59:07Z">2009/09/19 15:59</abbr></p>
<div>
<p>Here&#8217;s an example of using <strong>editoptions</strong> <strong>dataEvents</strong> to change another form element based on an <strong>onChange</strong> event in a <strong>&lt;select&gt;</strong>. In this case, the form contains Job_Name and Job_Number fields. The value of the Job_Number field is set using the value of the selected Job_Name option.</p>
<pre> {  name:   'Job_Number',
    index: '`Job #`',
    editable: true,
    edittype: 'text',
    editoptions: { size: 10, readonly: 'readonly'},
    editrules: {required: true },
    formoptions: { label: 'Job #' },
    width: 10,
    formatter: 'integer',
    formatoptions: { thousandsSeparator: '' },
    searchoptions: { sopt: ['eq','ne','lt','le','gt','ge', 'in', 'ni'] },
    align: 'right',
    sortable: true
 },
 {  name:   'Job_Name',
    index: '`Job Name`',
    editable: true,
    edittype: 'select',
    editoptions: { size: 1,
                   dataUrl: 'Includes/tblJobSelect.php',
                   dataEvents: [
                      {  type: 'change',
                         fn: function(e) {
                            $('input#Job_Number').val(this.value);
                         }
                      }
                   ]
    },
    formoptions: { label: 'Job Name' },
    searchoptions: { sopt: ['eq','ne','lt','le','gt','ge', 'cn', 'nc', 'bw', 'bn'] },
    align: 'right',
    width: 150,
    align: 'left',
    sortable: true
 },</pre>
<p><strong>this</strong> &#8211; in $(&#8216;input#Job_Number&#8217;).val(<strong>this</strong>.value); &#8211; refers to the <acronym title="Document Object Model">DOM</acronym> element associated with the onChange event, the Job_Name &lt;select&gt;, in this case.</p>
<p>The dataUrl returns plain text <acronym title="HyperText Markup Language">HTML</acronym> ”&lt;select&gt;&lt;option value=999&gt;Some Job Name&lt;/option&gt;…&lt;/select&gt;” that jqGrid uses to create the select.</p>
<p>Notice the use of the readonly attribute on the Job_Number field.</p>
<p>http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=212&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/08/12/jqgrid-change-element-in-form-based-on-another/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery Note</title>
		<link>http://caritatis.wordpress.com/2011/08/12/jquery-note/</link>
		<comments>http://caritatis.wordpress.com/2011/08/12/jquery-note/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 16:54:38 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=210</guid>
		<description><![CDATA[When using the jQuery library, make sure the code you write is always enclosed in the $.ready function: $(function () {     //Type in your code here }); This makes sure that the code you write will be executed once the page has finished loading from:  http://stackoverflow.com/questions/345540/how-to-disable-a-select-box-not-inside-a-form<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=210&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p>When using the jQuery library, make sure the code you write is always enclosed in the <code>$.ready</code> function:</p>
<pre><code>$(function () {
    //Type in your code here
});
</code></pre>
<p>This makes sure that the <strong>code you write will be executed once the page has finished loading</strong></p>
<p>from:  http://stackoverflow.com/questions/345540/how-to-disable-a-select-box-not-inside-a-form</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=210&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/08/12/jquery-note/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript Object &#8220;Inspector&#8221;</title>
		<link>http://caritatis.wordpress.com/2011/07/19/javascript-object-inspector/</link>
		<comments>http://caritatis.wordpress.com/2011/07/19/javascript-object-inspector/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 19:42:04 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=203</guid>
		<description><![CDATA[I found this today on a site, and it&#8217;s easy to use when using someone else&#8217;s object that you just don&#8217;t have the info for: &#60;SCRIPT&#62; ret = prompt (&#8220;Enter object&#8221;, &#8220;document&#8221;); obj = eval(ret); var temp = &#8220;&#8221;; for (x in obj) temp += x + &#8220;: &#8221; + obj[x] + &#8220;\n&#8221;; alert (temp); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=203&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found this today on a site, and it&#8217;s easy to use when using someone else&#8217;s object that you just don&#8217;t have the info for:</p>
<p style="padding-left:30px;"><span style="font-family:verdana,arial;">&lt;SCRIPT&gt;<br />
ret = prompt (&#8220;Enter object&#8221;, &#8220;document&#8221;);<br />
obj = eval(ret);<br />
var temp = &#8220;&#8221;;<br />
for (x in obj)<br />
temp += x + &#8220;: &#8221; + obj[x] + &#8220;\n&#8221;;<br />
alert (temp);<br />
&lt;/SCRIPT&gt;</span></p>
<p style="padding-left:30px;"><span style="font-family:verdana,arial;">OR:</span></p>
<p style="padding-left:30px;">obj = match;<br />
var temp = &#8221;;<br />
for (x in obj)<br />
temp += x + &#8216;: &#8216; + obj[x] + &#8216;\n&#8217;;<br />
alert (temp);<span style="font-family:verdana,arial;"><br />
</span></p>
<p style="padding-left:30px;">
<p><span style="font-family:verdana,arial;">Found on : http://javascript.internet.com/debug-guide.html. The page is OLD (Netscape 2?, Win 3.1?), but it still has some handy tips, like this <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=203&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/07/19/javascript-object-inspector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>Great IE/Windows info</title>
		<link>http://caritatis.wordpress.com/2011/07/15/great-iewindows-info/</link>
		<comments>http://caritatis.wordpress.com/2011/07/15/great-iewindows-info/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 19:06:38 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[IE]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=174</guid>
		<description><![CDATA[I stumbled upon the Elegant Code blog today &#38; found some excellent information, I&#8217;m going to keep an eye on this site, totally awesome! He has a good writeup of Firebug vs IE 8 Developer Toolbar http://elegantcode.com/2009/05/18/firefoxfirebug-vs-ie8-developer-toolbar/ He also pointed out some virtual PCs provided by MS: http://www.microsoft.com/download/en/details.aspx?displaylang=en&#38;id=11575 I&#8217;ll have to play with it on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=174&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon the Elegant Code blog today &amp; found some excellent information, I&#8217;m going to keep an eye on this site, totally awesome!</p>
<p>He has a good writeup of Firebug vs IE 8 Developer Toolbar<br />
<a href="http://elegantcode.com/2009/05/18/firefoxfirebug-vs-ie8-developer-toolbar/">http://elegantcode.com/2009/05/18/firefoxfirebug-vs-ie8-developer-toolbar/</a></p>
<p>He also pointed out some virtual PCs provided by MS:<br />
<a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=11575">http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=11575</a></p>
<p>I&#8217;ll have to play with it on my new windows 7 vm, hmm a vm on a vm, we&#8217;ll see how that goes:<br />
<a href="http://www.microsoft.com/windows/virtual-pc/default.aspx">http://www.microsoft.com/windows/virtual-pc/default.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=174&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/07/15/great-iewindows-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>More things to consider with sending emails</title>
		<link>http://caritatis.wordpress.com/2011/07/14/more-things-to-consider-with-sending-emails/</link>
		<comments>http://caritatis.wordpress.com/2011/07/14/more-things-to-consider-with-sending-emails/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 12:43:32 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=169</guid>
		<description><![CDATA[Suggestions from google http://mail.google.com/support/bin/answer.py?hl=en&#038;ctx=mail&#038;answer=1311182 # SPF record: An SPF record is a list of IP addresses that are authorized to send mail for a particular domain. For more information on how to publish an SPF record, please visit http://www.openspf.org. DKIM: DKIM (DomainKeys Identified Mail) is a way to digitally sign messages and verify that the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=169&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suggestions from google</p>
<p>http://mail.google.com/support/bin/answer.py?hl=en&#038;ctx=mail&#038;answer=1311182</p>
<p># SPF record: An SPF record is a list of IP addresses that are authorized to send mail for a particular domain. For more information on how to publish an SPF record, please visit http://www.openspf.org.</p>
<p>DKIM: DKIM (DomainKeys Identified Mail) is a way to digitally sign messages and verify that the messages were sent by a particular domain. It works like a wax seal on an envelope, preventing messages from being tampered with.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=169&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/07/14/more-things-to-consider-with-sending-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>Awesome SQL Profiler Post</title>
		<link>http://caritatis.wordpress.com/2011/07/08/awesome-sql-profiler-post/</link>
		<comments>http://caritatis.wordpress.com/2011/07/08/awesome-sql-profiler-post/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 14:34:33 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=165</guid>
		<description><![CDATA[I stumbled upon this post while researching computed columns: Top 10 Hidden Gems in SQL Server 2005 http://technet.microsoft.com/en-us/library/cc917696.aspx It led me to this post when I was trying to figure out how to use sys.dm_exec_query_stats. Awesome information about &#8220;How To Get High Quality Information About Query Performance&#8221; http://sqlblog.com/blogs/elisabeth_redei/archive/2009/03/01/how-to-get-high-quality-information-about-query-performance.aspx Here&#8217;s a quick &#38; dirty sql query: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=165&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon this post while researching computed columns:<br />
Top 10 Hidden Gems in SQL Server 2005</p>
<p>http://technet.microsoft.com/en-us/library/cc917696.aspx</p>
<p>It led me to this post when I was trying to figure out how to use sys.dm_exec_query_stats. Awesome information about &#8220;How To Get High Quality Information About Query Performance&#8221;</p>
<p>http://sqlblog.com/blogs/elisabeth_redei/archive/2009/03/01/how-to-get-high-quality-information-about-query-performance.aspx</p>
<p>Here&#8217;s a quick &amp; dirty sql query:</p>
<p>select    sql_handle, (total_elapsed_time &#8211; total_worker_time) as blockedtime,<br />
total_worker_time as cputime,<br />
(total_physical_reads+total_logical_reads+total_logical_writes) as iocycles,<br />
qs.execution_count , text<br />
from  sys.dm_exec_query_stats qs<br />
CROSS APPLY sys.dm_exec_sql_text(sql_handle)<br />
order by blockedtime</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=165&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/07/08/awesome-sql-profiler-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>Some Email checking sites</title>
		<link>http://caritatis.wordpress.com/2011/06/27/some-email-checking-sites/</link>
		<comments>http://caritatis.wordpress.com/2011/06/27/some-email-checking-sites/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 15:03:29 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[messages]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=163</guid>
		<description><![CDATA[Mailgun may be a good service&#8211;very much what I was looking for as a way to send emails through someone who will keep up with making the emails work! http://documentation.mailgun.net/Documentation/FAQs#GMail_says_.22Signed_by_mailgun.us.22_about_messages_I_send Sender Score: https://www.senderscore.org Sender Base: http://www.senderbase.com/senderbase_queries/main AOL: http://postmaster.aol.com/Postmaster.Reputation.php &#8211;also look at this for a way to get on the whitelist<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=163&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mailgun may be a good service&#8211;very much what I was looking for as a way to send emails through someone who will keep up with making the emails work!</p>
<p>http://documentation.mailgun.net/Documentation/FAQs#GMail_says_.22Signed_by_mailgun.us.22_about_messages_I_send</p>
<p>Sender Score: https://www.senderscore.org<br />
Sender Base: http://www.senderbase.com/senderbase_queries/main<br />
AOL: http://postmaster.aol.com/Postmaster.Reputation.php<br />
&#8211;also look at this for a way to get on the whitelist</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=163&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/06/27/some-email-checking-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>Searching for all or one</title>
		<link>http://caritatis.wordpress.com/2011/05/27/searching-for-all-or-one/</link>
		<comments>http://caritatis.wordpress.com/2011/05/27/searching-for-all-or-one/#comments</comments>
		<pubDate>Fri, 27 May 2011 20:30:17 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=160</guid>
		<description><![CDATA[Since I only do this once or twice a year, I always forget the trick.  If you need to search on an id (or full text) and you want everything or just that id, use isnull, ex: and s.SportID = isnull(@SportID,s.SportID) It doesn&#8217;t seem to work as I&#8217;d like for a left outer join.  You [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=160&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since I only do this once or twice a year, I always forget the trick.  If you need to search on an id (or full text) and you want everything or just that id, use isnull, ex:</p>
<pre style="padding-left:60px;">and s.SportID = isnull(@SportID,s.SportID)</pre>
<p>It doesn&#8217;t seem to work as I&#8217;d like for a left outer join.  You can put it in the left outer join &#8220;on&#8221; clause, but if you have an id and nothing matches it, you get everything&#8211;not the empty set I&#8217;d like to get.  If you put it in the where clause and there is no id, you get nothing&#8211;even though I&#8217;d like to get everything.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=160&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/05/27/searching-for-all-or-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>Using an ajax-called cfc with Application.cfc</title>
		<link>http://caritatis.wordpress.com/2011/04/15/using-an-ajax-called-cfc-with-application-cfc/</link>
		<comments>http://caritatis.wordpress.com/2011/04/15/using-an-ajax-called-cfc-with-application-cfc/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 19:05:03 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=157</guid>
		<description><![CDATA[If you want to use onRequest and you have cfc functions called by ajax (or other services), you&#8217;ll have a problem.  To get around this remove the onRequest function when you&#8217;re calling a cfc.  Do this in onRequestStart.         &#60;!&#8212; onRequest function breaks calls to cfc for json &#8212;&#62;   &#60;cfif right(arguments.targetPage,4)  is &#8220;.cfc&#8221;&#62;             &#60;cfset [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=157&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to use onRequest and you have cfc functions called by ajax (or other services), you&#8217;ll have a problem.  To get around this remove the onRequest function when you&#8217;re calling a cfc.  Do this in onRequestStart.</p>
<p>        &lt;!&#8212; onRequest function breaks calls to cfc for json &#8212;&gt;<br />
  &lt;cfif right(arguments.targetPage,4)  is &#8220;.cfc&#8221;&gt;<br />
            &lt;cfset StructDelete(variables,&#8221;onRequest&#8221;)/&gt;<br />
            &lt;cfset StructDelete( THIS, &#8220;OnRequest&#8221; ) /&gt;<br />
  &lt;/cfif&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=157&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/04/15/using-an-ajax-called-cfc-with-application-cfc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting rid of Word junk</title>
		<link>http://caritatis.wordpress.com/2011/02/04/getting-rid-of-word-junk/</link>
		<comments>http://caritatis.wordpress.com/2011/02/04/getting-rid-of-word-junk/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 21:01:51 +0000</pubDate>
		<dc:creator>caritatis</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[FCK Editor]]></category>

		<guid isPermaLink="false">http://caritatis.wordpress.com/?p=153</guid>
		<description><![CDATA[FROM:  http://tim.mackey.ie/CleanWordHTMLUsingRegularExpressions.aspx Haven&#8217;t tried this, but looks good. Clean Word HTML using Regular Expressions Wednesday, November 23, 2005 3:40:36 PM (GMT Standard Time, UTC+00:00) ( .Net General ) Introduction I&#8217;ve spent a long time trying many different approaches at getting rid of MS Word HTML, when importing or pasting text into my content management system, with very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=153&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>FROM:  http://tim.mackey.ie/CleanWordHTMLUsingRegularExpressions.aspx</p>
<p>Haven&#8217;t tried this, but looks good.</p>
<div><a href="http://tim.mackey.ie/CleanWordHTMLUsingRegularExpressions.aspx" rel="bookmark">Clean Word HTML using Regular Expressions</a></div>
<div>Wednesday, November 23, 2005 3:40:36 PM (GMT Standard Time, UTC+00:00) ( <a href="http://tim.mackey.ie/CategoryView,category,NetGeneral.aspx">.Net General</a> )</div>
<h3>Introduction</h3>
<p>I&#8217;ve spent a long time trying many different approaches at getting rid of MS Word HTML, when importing or pasting text into my content management system, with very mixed success.  Previous efforts involved using the MSHTML Element Dom but this was slow and difficult to implement.  i think i&#8217;ve finally found a satisfactory and fast solution using only regular expressions.  Please feel free to use it in your applications, and post any improvements you may find.</p>
<h3>The Code</h3>
<pre>/// &lt;summary&gt;
/// Removes all FONT and SPAN tags, and all Class and Style attributes.
/// Designed to get rid of non-standard Microsoft Word HTML tags.
/// &lt;/summary&gt;
private string CleanHtml(string html)
{
    // start by completely removing all unwanted tags
    html = Regex.Replace(html, @"<span style="font-size:x-small;">&lt;[/]?(font|span|xml|del|ins|[ovwxp]:\w+)[^&gt;]*?&gt;</span>", "", RegexOptions.IgnoreCase);
    // then run another pass over the html (twice), removing unwanted attributes
    html = Regex.Replace(html, @"&lt;([^&gt;]*)(?:class|lang|style|size|face|[ovwxp]:\w+)=(?:'[^']*'|""[^""]*""|[^\s&gt;]+)([^&gt;]*)&gt;","&lt;$1$2&gt;", RegexOptions.IgnoreCase);
    html = Regex.Replace(html, @"&lt;([^&gt;]*)(?:class|lang|style|size|face|[ovwxp]:\w+)=(?:'[^']*'|""[^""]*""|[^\s&gt;]+)([^&gt;]*)&gt;","&lt;$1$2&gt;", RegexOptions.IgnoreCase);
    return html;
}</pre>
<h3>Samples of non-standard Microsoft Word HTML</h3>
<pre>&lt;SPAN lang=EN-IE style="mso-ansi-language: EN-IE"&gt;
&lt;p&gt;
&lt;UL style="MARGIN-TOP: 0cm" type=circle&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;
&lt;li style='mso-list:l3 level1 lfo3;tab-stops:list 36.0pt'&gt;</pre>
<h3>Explanation of Regular Expressions</h3>
<p>I&#8217;ve spent a good deal of time examining the problematic tags that MS Word inserts in its HTML, some examples are shown above.  The above code is based on a few requirements for my CMS:</p>
<ul>
<li>remove all FONT and SPAN tags, because all the content in my CMS is done through style-sheets.</li>
<li>remove all CLASS and STYLE tags because they mean nothing outside of the original word document</li>
<li>remove all namespace tags and attributes like &lt;o:p&gt; and &lt; &#8230; v:shape &#8230; &gt;</li>
</ul>
<p>The first regular expression removes unwanted tags, and is broken down as follows:</p>
<pre>&lt;[/]?(font|span|xml|del|ins|[ovwxp]:\w+)[^&gt;]*?&gt;</pre>
<ul>
<li>match an open tag character &lt;</li>
<li>and optionally match a close tag sequence &lt;/  (because we also want to remove the closing tags)</li>
<li>match any of the list of unwanted tags: font,span,xml,del,ins</li>
<li>a pattern is given to match any of the namespace tags, anything beginning with o,v,w,x,p, followed by a : followed by another word</li>
<li>match any attributes as far as the closing tag character &gt;</li>
<li>the replace string for this regex is &#8220;&#8221;, which will completely remove the instances of any matching tags.</li>
<li>note that we are not removing anything between the tags, just the tags themselves</li>
</ul>
<p>The second regular expression removes unwanted attributes, and is broken down as follows:</p>
<pre>&lt;([^&gt;]*)(?:class|lang|style|size|face|[ovwxp]:\w+)=(?:'[^']*'|""[^""]*""|[^\s&gt;]+)([^&gt;]*)&gt;</pre>
<ul>
<li>match an open tag character &lt;</li>
<li>capture any text before the unwanted attribute (This is $1 in the replace expression)</li>
<li>match (but don&#8217;t capture) any of the unwanted attributes: class, lang, style, size, face, o:p, v:shape etc.</li>
<li>there should always be an = character after the attribute name</li>
<li>match the value of the attribute by identifying the delimiters. these can be single quotes, or double quotes, or no quotes at all.</li>
<li>for single quotes, the pattern is: &#8216; followed by anything but a &#8216; followed by a &#8216;</li>
<li>similarly for double quotes.</li>
<li>for a non-delimited attribute value, i specify the pattern as anything except the closing tag character &gt;</li>
<li>lastly, capture whatever comes after the unwanted attribute in ([^&gt;]*)</li>
<li>the replacement string &lt;$1$2&gt; reconstructs the tag without the unwanted attribute found in the middle.</li>
<li>note: this only removes one occurence of an unwanted attribute, this is why i run the same regex twice.  For example, take the html fragment: &lt;p style=&#8221;Margin-TOP:3em&#8221;&gt;<br />
the regex will only remove one of these attributes.  Running the regex twice will remove the second one.  I can&#8217;t think of any reasonable cases where it would need to be run more than that.</li>
</ul>
<h3>Suggestions!</h3>
<p>If you have any suggestions or improvments, please post them here as comments.<br />
Thanks <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Lots of great comments!  Here&#8217;s one in CF:</p>
<p>&lt;cffunction name=&#8221;cleanUpWord&#8221; access=&#8221;public&#8221; output=&#8221;false&#8221; returntype=&#8221;string&#8221; returnformat=&#8221;JSON&#8221; hint=&#8221;I clean up MS Word code&#8221;&gt;<br />
&lt;cfargument name=&#8221;inputString&#8221; type=&#8221;string&#8221; required=&#8221;yes&#8221;&gt;</p>
<p>&lt;cfset var local = StructNew()&gt;</p>
<p>&lt;!&#8212; The two regex expressions in this function were taken from http://tim.mackey.ie/CleanWordHTMLUsingRegularExpressions.aspx &#8212;&gt;</p>
<p>&lt;cfset local.cleanText = ReplaceNoCase(arguments.inputString,&#8221;&lt;p &#8220;,&#8221;&lt;p&gt;&lt;p &#8220;,&#8221;all&#8221;)&gt; &lt;!&#8212; Keep our P tag when it has bullshit MS Word attributes &#8212;&gt;<br />
&lt;cfset local.cleanText = ReReplaceNoCase(local.cleanText,&#8221;&lt;[/]?(font|span|xml|del|ins|o|st1|[ovwxp]:\w+)[^&gt;]*?&gt;&#8221;,&#8221;",&#8221;all&#8221;)&gt; &lt;!&#8212; Borrowed Regex &#8212;&gt;<br />
&lt;cfset local.cleanText = ReReplaceNoCase(local.cleanText,&#8221;&lt;([^&gt;]*)(?:class|lang|style|size|face|[ovwxp]:\w+)=(?:&#8217;[^']*&#8217;|&#8221;"[^""]*&#8221;"|[^\s&gt;]+)([^&gt;]*)&gt;&#8221;,&#8221;",&#8221;all&#8221;)&gt; &lt;!&#8212; Borrowed Regex &#8212;&gt;<br />
&lt;cfset local.cleanText = ReplaceNoCase(local.cleanText,&#8221;&amp;ndash;&#8221;,&#8221;-&#8221;,&#8221;all&#8221;)&gt; &lt;!&#8212; Get rid of unnecessary escape sequences &#8212;&gt;<br />
&lt;cfset local.cleanText = ReReplaceNoCase(local.cleanText,&#8221;&amp;rsquo;|&amp;lsquo;&#8221;,&#8221;&#8216;&#8221;,&#8221;all&#8221;)&gt; &lt;!&#8212; Get rid of unnecessary escape sequences &#8212;&gt;<br />
&lt;cfset local.cleanText = ReReplaceNoCase(local.cleanText,&#8221;&amp;rdquo;|&amp;ldquo;&#8221;,&#8221;"&#8221;",&#8221;all&#8221;)&gt; &lt;!&#8212; Get rid of unnecessary escape sequences &#8212;&gt;</p>
<p>&lt;cfset local.cleanText = ReReplaceNoCase(local.cleanText,&#8221;“|”&#8221;,&#8221;&amp;quot;&#8221;,&#8221;all&#8221;)&gt; &lt;!&#8212; Get rid of MS Word SmartQuotes &#8212;&gt;</p>
<p>&lt;cfreturn local.cleanText&gt;<br />
&lt;/cffunction&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/caritatis.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/caritatis.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/caritatis.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/caritatis.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/caritatis.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/caritatis.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/caritatis.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/caritatis.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/caritatis.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/caritatis.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/caritatis.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/caritatis.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/caritatis.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/caritatis.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=caritatis.wordpress.com&amp;blog=6175398&amp;post=153&amp;subd=caritatis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://caritatis.wordpress.com/2011/02/04/getting-rid-of-word-junk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0a2c2b9ff4f1dabdc18b9a073a46d850?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">caritatis</media:title>
		</media:content>
	</item>
	</channel>
</rss>
