<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Stuart Jones Weblog</title><subtitle type="html" /><id>http://cs.berwickheights.com/blogs/sjblog/atom.aspx</id><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/default.aspx" /><link rel="self" type="application/atom+xml" href="http://cs.berwickheights.com/blogs/sjblog/atom.aspx" /><generator uri="http://communityserver.org" version="2.0.60217.2664">Community Server</generator><updated>2006-10-23T09:17:00Z</updated><entry><title>New England Code Camp 7</title><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/archive/2007/02/06/47.aspx" /><id>http://cs.berwickheights.com/blogs/sjblog/archive/2007/02/06/47.aspx</id><published>2007-02-07T01:23:00Z</published><updated>2007-02-07T01:23:00Z</updated><content type="html">&lt;FONT face=Arial size=2&gt;&lt;A href="http://blogs.msdn.com/cbowen/archive/2007/01/17/save-the-dates-code-camp-7-deer-in-headlights.aspx" target=_blank&gt;Chris Bowen has announced New England Code Camp 7&lt;/A&gt;. Microsoft will be hosting the event at their Waltham office &lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;on the weekend of March 31-April 1. If you haven't been to Code Camps before, they are an opportunity to learn about current software topics and present two full weekend days of talks. See &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/cbowen/archive/2007/01/17/save-the-dates-code-camp-7-deer-in-headlights.aspx" target=_blank&gt;&lt;FONT face=Arial color=#000099 size=2&gt;Chris's blog post&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Arial size=2&gt; for more information.&lt;/FONT&gt;&lt;img src="http://cs.berwickheights.com/aggbug.aspx?PostID=47" width="1" height="1"&gt;</content><author><name>stuart</name><uri>http://cs.berwickheights.com/members/stuart.aspx</uri></author></entry><entry><title>Ajax Talk at Rhode Island User Group</title><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/archive/2007/01/29/46.aspx" /><id>http://cs.berwickheights.com/blogs/sjblog/archive/2007/01/29/46.aspx</id><published>2007-01-29T20:08:00Z</published><updated>2007-01-29T20:08:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I'll be speaking on Ajax at the &lt;/FONT&gt;&lt;A href="http://ridotnet.com/index_070207.htm" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;Rhode Island .Net User Group&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; next Wednesday, February 7, 6:00pm.&amp;nbsp;The group meets at&amp;nbsp;&lt;/FONT&gt;&lt;A href="http://ridotnet.com/directions.htm" target=_blank&gt;&lt;FONT face=Verdana size=2&gt;Roger Williams University&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;in Bristol, Rhode Island.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://cs.berwickheights.com/aggbug.aspx?PostID=46" width="1" height="1"&gt;</content><author><name>stuart</name><uri>http://cs.berwickheights.com/members/stuart.aspx</uri></author></entry><entry><title>Ajax Talk At Maine Bytes</title><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/archive/2006/12/07/45.aspx" /><id>http://cs.berwickheights.com/blogs/sjblog/archive/2006/12/07/45.aspx</id><published>2006-12-07T16:37:00Z</published><updated>2006-12-07T16:37:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I'll be speaking once again on Ajax at the &lt;/FONT&gt;&lt;A href="http://www.mainebytes.org/" target="_blank"&gt;&lt;FONT face=Verdana size=2&gt;Maine Bytes User Group&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt; next Thursday, December 14, 6:00pm.&amp;nbsp; The group meets at&amp;nbsp; &lt;/FONT&gt;&lt;A href="http://www.mainebytes.org/Directions.asp" target="_blank"&gt;&lt;FONT face=Verdana size=2&gt;UnumProvident's Home Office 3 building at 2211 Congress Street&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;in Portland, Maine.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://cs.berwickheights.com/aggbug.aspx?PostID=45" width="1" height="1"&gt;</content><author><name>stuart</name><uri>http://cs.berwickheights.com/members/stuart.aspx</uri></author></entry><entry><title>Using the right version of MSXML in Internet Explorer</title><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/archive/2006/11/01/MSXMLInIE.aspx" /><id>http://cs.berwickheights.com/blogs/sjblog/archive/2006/11/01/MSXMLInIE.aspx</id><published>2006-11-01T13:43:00Z</published><updated>2006-11-01T13:43:00Z</updated><content type="html">&lt;FONT face=Verdana size=2&gt;&lt;A href="http://blogs.msdn.com/xmlteam/archive/2006/10/23/using-the-right-version-of-msxml-in-internet-explorer.aspx" target="_blank"&gt;Adam Wiener has a blog post&lt;/A&gt; that explains the often confusing issue of which version of the MSXML parser to use in Internet Explorer. The gist of the article is that you should try to use the latest version of MSXML (version 6) if it is installed on the client machine and fall back to MSXML version 3 if not. Trying to use other versions of MSXML leads to many problems as discussed in Adam's blog post. MSXML 6 is the preferred version since it has the best security, performance and reliability. MSXML 3 is the preferred fallback since it is installed on every Windows OS since Windows 2000 SP4 (i.e., zero deployment).&lt;/FONT&gt;&lt;img src="http://cs.berwickheights.com/aggbug.aspx?PostID=44" width="1" height="1"&gt;</content><author><name>stuart</name><uri>http://cs.berwickheights.com/members/stuart.aspx</uri></author></entry><entry><title>Welcome Chris Bowen</title><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/archive/2006/10/26/42.aspx" /><id>http://cs.berwickheights.com/blogs/sjblog/archive/2006/10/26/42.aspx</id><published>2006-10-27T01:13:00Z</published><updated>2006-10-27T01:13:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I found out at Code Camp 6 last weekend, and &lt;A href="http://dotnetjunkies.com/WebLog/christopherbowen/archive/2006/10/22/151379.aspx" target="_blank"&gt;now it is official&lt;/A&gt;, that Chris Bowen is the new Microsoft Developer Evangelist for New England. I want to heartily welcome Chris to his new role and wish him continued success. I'm looking forward to working with him. &lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;Chris is replacing &lt;A href="http://blogs.msdn.com/trobbins/archive/2006/10/25/welcome-chris.aspx" target="_blank"&gt;Thom Robbins&lt;/A&gt;, who is now Director for .NET Platform Marketing in Redmond.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://cs.berwickheights.com/aggbug.aspx?PostID=42" width="1" height="1"&gt;</content><author><name>stuart</name><uri>http://cs.berwickheights.com/members/stuart.aspx</uri></author></entry><entry><title>Rico Drag-N-Drop</title><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/archive/2006/10/26/41.aspx" /><id>http://cs.berwickheights.com/blogs/sjblog/archive/2006/10/26/41.aspx</id><published>2006-10-27T00:49:00Z</published><updated>2006-10-27T00:49:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I was using the drag-n-drop feature of the Rico Ajax library the other day and noticed that the feature was not working in Internet Explorer, where I was getting this error:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;Microsoft JScript runtime error: 'document.defaultView' is null or not an object&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;In Firefox, I was seeing this error in the Javascript console:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;Error: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMViewCSS.getComputedStyle]"&amp;nbsp; nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"&amp;nbsp; location: "JS frame :: &lt;/FONT&gt;&lt;A href="http://localhost/Ajax/AjaxJSLibs/rico.js"&gt;&lt;FONT face="Courier New" size=2&gt;http://localhost/Ajax/AjaxJSLibs/rico.js&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face="Courier New" size=2&gt; :: anonymous :: line 2644"&amp;nbsp; data: no]&lt;BR&gt;Source File: &lt;/FONT&gt;&lt;A href="http://localhost/Ajax/AjaxJSLibs/rico.js"&gt;&lt;FONT face="Courier New" size=2&gt;http://localhost/Ajax/AjaxJSLibs/rico.js&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;Line: 2644&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Upon closer inspection, I noticed that the problem was buried deep inside of a Rico utility function that was using introspection to set HTML element properties. &lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;I realized that it was trying to work with the &lt;FONT face="Courier New"&gt;background-color&lt;/FONT&gt; style for the element, but this was not set in my CSS for the element, so it was referencing a null value. The fix was to make sure that the elements that are set up as the Rico draggables and dropzones have the CSS &lt;FONT face="Courier New"&gt;background-color&lt;/FONT&gt; property set.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;This makes sense, once I realized what was going on. The background color changes for both the dragged item and the drop zones while the item is dragged. The Rico library needs to save the original background color so that it can be reset once the dragging is done.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;So, when using the Rico drag-n-drop feature, make sure you set the &lt;FONT face="Courier New"&gt;background-color&lt;/FONT&gt; style for the draggable and dropzone HTML elements.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://cs.berwickheights.com/aggbug.aspx?PostID=41" width="1" height="1"&gt;</content><author><name>stuart</name><uri>http://cs.berwickheights.com/members/stuart.aspx</uri></author></entry><entry><title>Custom LogFormatter with Enterprise Library 2.0</title><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/archive/2006/10/24/40.aspx" /><id>http://cs.berwickheights.com/blogs/sjblog/archive/2006/10/24/40.aspx</id><published>2006-10-24T20:10:00Z</published><updated>2006-10-24T20:10:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I updated some of my custom types for Enterprise Library today from version 1.1 to 2.0. I have a custom logging formatter that takes log entries and formats them as XML. I ran into a rather nasty error message when the formatter was auto-constructed with the new 2.0 Enterprise Library. Although I had followed it rather closely, the Enterprise Library 2.0 documentation does not state that the constructor for the custom formatter must include a paramter of type &lt;FONT face="Courier New"&gt;NameValueCollection &lt;/FONT&gt;&lt;FONT face=Verdana&gt;since that will hold the configuration data for the formatter. This is true, of course, regardless of whether or not you are using the&amp;nbsp;configuration data.&amp;nbsp;So, the custom formatter should look like:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;[&lt;FONT color=#008080&gt;ConfigurationElementType&lt;/FONT&gt;(&lt;FONT color=#0000ff&gt;typeof&lt;/FONT&gt;(&lt;FONT color=#008080&gt;CustomFormatterData&lt;/FONT&gt;))]&lt;BR&gt;&lt;FONT color=#0000ff&gt;public&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;class&lt;/FONT&gt; &lt;FONT color=#008080&gt;XMLFormatter&lt;/FONT&gt; : &lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#008080&gt;LogFormatter&lt;BR&gt;&lt;/FONT&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT color=#0000ff&gt;public&lt;/FONT&gt; XMLFormatter(&lt;FONT color=#008080&gt;NameValueCollection&lt;/FONT&gt; nvc)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Nothing to do in my case&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color=#000000&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; &lt;FONT color=#0000ff&gt;override&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;string&lt;/FONT&gt; Format(&lt;FONT color=#008080&gt;LogEntry&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; log)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Implementation of Format()...&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Make sure you add the &lt;FONT face="Courier New"&gt;ConfigurationElementType&lt;/FONT&gt; attribute to your custom formatter&amp;nbsp;class since it is also required by the Enterprise Library object builder.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://cs.berwickheights.com/aggbug.aspx?PostID=40" width="1" height="1"&gt;</content><author><name>stuart</name><uri>http://cs.berwickheights.com/members/stuart.aspx</uri></author></entry><entry><title>Advanced Ajax Materials</title><link rel="alternate" type="text/html" href="http://cs.berwickheights.com/blogs/sjblog/archive/2006/10/23/39.aspx" /><id>http://cs.berwickheights.com/blogs/sjblog/archive/2006/10/23/39.aspx</id><published>2006-10-23T13:17:00Z</published><updated>2006-10-23T13:17:00Z</updated><content type="html">&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I have &lt;A href="http://www.berwickheights.com/talks"&gt;posted the materials&lt;/A&gt; from my Advanced Ajax presentation at code camp on the &lt;A href="http://www.berwickheights.com/talks"&gt;Berwick Heights Software website&lt;/A&gt;. The zip archive includes the source code for all of the Ajax examples that I presented on Saturday.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Thanks to all those who attended for making this an interesting day. I hope that you found the topics throughout the day useful. As I mentioned in my first talk, the various user groups that meet throughout New England present these kinds of talks on a monthly basis. The &lt;A href="http://www.ineta.org/DesktopDefault.aspx?tabindex=1&amp;amp;tabid=20" target=_blank&gt;International .Net Association (INETA) website has a page&lt;/A&gt; that will give you all the details. Choose &lt;EM&gt;USA&lt;/EM&gt; in the first select box and then choose the state in which you're interested to find out which user groups meet near you, when they meet and whom to contact.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I look forward to seeing you all at a future presentation.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://cs.berwickheights.com/aggbug.aspx?PostID=39" width="1" height="1"&gt;</content><author><name>stuart</name><uri>http://cs.berwickheights.com/members/stuart.aspx</uri></author></entry></feed>