<?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>Mitch Labrador&#039;s Tech Blog &#187; Technology</title>
	<atom:link href="http://mitchlabrador.com/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://mitchlabrador.com</link>
	<description>Less is more when you are focused.</description>
	<lastBuildDate>Mon, 19 Jul 2010 13:49:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mitchlabrador.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/644e995c4592c58fe7b403bbfb2d9f56?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mitch Labrador&#039;s Tech Blog &#187; Technology</title>
		<link>http://mitchlabrador.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mitchlabrador.com/osd.xml" title="Mitch Labrador&#039;s Tech Blog" />
	<atom:link rel='hub' href='http://mitchlabrador.com/?pushpress=hub'/>
		<item>
		<title>BigfootMVC: A module development alternative for DotNetNuke &#8211; Part 1: Overview</title>
		<link>http://mitchlabrador.com/2010/07/19/bigfootmvc-a-module-development-alternative-for-dotnetnuke-part-1-overview/</link>
		<comments>http://mitchlabrador.com/2010/07/19/bigfootmvc-a-module-development-alternative-for-dotnetnuke-part-1-overview/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 13:43:42 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">https://mitchlabrador1.wordpress.com/2010/07/19/bigfootmvc-a-module-development-alternative-for-dotnetnuke-part-1-overview/</guid>
		<description><![CDATA[What is BigfootMVC? BigfootMVC is an MVC style development framework developed for DotNetNuke. It’s main goal is to increase your productivity while keeping a high degree of maintainability. This is the first in a series of posts regarding BigfootMVC. In this post I will concentrate in giving you the history as well as the goals [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=58&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>What is BigfootMVC? </strong>BigfootMVC is an MVC style development framework developed for DotNetNuke. It’s main goal is to increase your productivity while keeping a high degree of maintainability.</p>
<p>This is the first in a series of posts regarding BigfootMVC. In this post I will concentrate in giving you the history as well as the goals and reasons behind BigfootMVC. In my later posts, I will focus on the technical details. Starting with how you would actually implement BigfootMVC when developing your module, and ending with a detail look at the architecture of the framework.</p>
<p>Last year I developed a commercial module for DotNetNuke named <a href="http://tribalhut.com" target="_blank">Tribalhut CRM</a>. Although this was my first commercial module for DotNetNuke, I had been developing modules for DNN for a while since version 2x in fact. DotNetNuke IMHO is the best level 2 development platform for .NET. Not just because of its robust architecture, but also the huge amount of modules you can leverage when building your site… but back to the topic at hand, although I had been using the development model prescribed for DNN, it never felt natural to me for many reasons, it felt … clunky … heavy, so I endeavored to create a <strong>better way for me</strong> to build my modules. I had been using ASP.NET MVC since Preview 3 and found it to be just perfect for my development style, so i figured why not build an MVC framework for DNN.</p>
<p>I had four major goals as I headed into the development of this framework:</p>
<p>1. <strong>Everything You Need Nothing You Don’t</strong>. The framework would grow overtime as functionality was needed, <strong>no pie in the sky design.</strong></p>
<p>2. <strong>Improve my productivity</strong>. This was key as I only had a limited amount of time to finish Tribalhut so I needed a framework that made it fast to develop my module.</p>
<p>3. <strong>Develop an end to end experience</strong>. Not just the backend code, but also a strong CSS and Javascript collection to aid in the development experience. This was key for productivity.</p>
<p>4. <strong>Must work with ASP.NET 2.0 and above</strong>. I wanted to support DNN version 4.6.2 and above so this was paramount. Unfortunately no LINQ goodness was available.</p>
<p>I spent 75% of my allotted time for Tribalhut writing the framework … as you can imagine I was starting to really get nervous at that point, but I managed to write the app using only the remaining 25% of the budgeted time. That’s when I knew I was really on to something, so I decided the right thing to do – considering I had been using DotNetNuke for a long time without paying a dime – was to open source my work so that other developers could also benefit from it.</p>
<p>Several months ago I told Will Strohl (<a href="http://twitter.com/willstrohl">twitter@willstrohl</a>), at the time the president of the Orlando DotNetNuke User group, about my framework and my plans to open source it, so naturally he urged me to do so, I had never open sourced any of my code, so I was/am very nervous about the whole experience, so it took a little while for me to warm up to the idea <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  but he finally together with <a href="http://twitter.com/darrellhardy">Darrell Hardy</a> cornered me and got me do a talk on it for our June user group meeting.</p>
<p>Like all developers that look at their code three weeks after writing it, I decided that it needed to be re-factored… cleaned up… and improved. So I ended up re-writing 2/3s of it for my presentation. The group members seemed to really like it which inspired me to really kick it up a notch and make it a first class development alternative for DNN. Previously my framework was a code based dependency, which means that you would drop the code into your project and it would compile within your namespace. It was written in VB as that was the language we had decided to write Tribalhut in.</p>
<p><strong>There were several problems with my approach at this point that needed to be remedied:</strong></p>
<p>1. It was a code based dependency, which means that it only allowed for modules to be developed in the language the framework was written in, as it needed to be dropped-in and compiled with your module.</p>
<p>2. It worked great for advanced module developers, but made it a little harder as a getting started alternative for DNN</p>
<p>3. The codebase was not well documented, worked great for me as I knew how everything worked <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  but not so much for a new user trying to figure it out</p>
<p>4. There were issues with multiple modules co-existing in the same tab. It was best suited for writing modules that owned the whole tab, which was fine for Tribalhut but not so much for general purpose module development.</p>
<p>So after my presentation in June I decided that another re-write was needed &#8211; yes I know, again &#8211; in order to solve these issues before the framework would be ready for alpha release. So that’s what I did.</p>
<p><strong>Step 1: Organize the data provider / model tier</strong></p>
<p>I pulled my previously created data access framework named Bigfoot<strong>SQL</strong> – which I also open sourced as a result of this – into its own library project written in C#. I had two main external dependencies, one was <a href="http://json.codeplex.com">JSON.NET</a>, and the other was <a href="http://tnvalidate.codeplex.com">TNValidate</a>, two open source projects. As these were open source and were also written in C#, i decided to included them in my BigfootSQL library project and namespace them under BigfootSQL in order to eliminate any conflicts with other modules that might be using a different version of JSON.NET out there, there are actually a few. They fit very well together as they both have to do with data persistence and validation, so it felt natural to package them together in the model tier. Another reason to split them into their own project, was that I use the BigfootSQL library in many other .net projects, that are not … dare I say it… DotNetNuke related <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  so I wanted to reuse it.</p>
<p><strong>Step 2: Organize my Html helpers and other web development helpers into their own library</strong></p>
<p>I have a collection of helper functions that I use in all my ASP.NET projects, not just DNN development, that I wanted to reuse, so I create another library project named BigfootWeb. This library would be reusable across all asp.net development, and could also be used by BigfootMVC for DNN.</p>
<p>The BigfootWeb assembly also includes the Html and JavaScript helpers. These helpers I consider to be the number one productivity boost. You will see in my next detailed technical post just how productive these helpers can make you, not just for DotNetNuke development but for any asp.net develop in general.</p>
<p><strong>Step 3: Organize all DotNetNuke specific code into the BigfootDNN library </strong></p>
<p>This is the heart of the BigfootMVC  framework for DNN. It performs all of the route handling and activation, as well as all the mapping and execution of actions. It understands DNN and makes it extremely simple to write modules that have very advanced feature sets.</p>
<p>As I mentioned before, the biggest productivity enhancement, comes from the Html and JavaScript helpers, so I figured why not also make them available to users that want to write DotNetNuke modules using the traditional ASP.NET control model, rather than an MVC model. Furthermore why not have a project that mixes and matches the two as needed. This would provide for a great gradual migration story. So I did that as well.</p>
<p>This is why I named my library BigfootDNN rather than BigfootMVC, that is because you can do any type of DNN development not just MVC following a simple set of patterns in your module. This option gives you access to the huge productivity enhancements that can come from writing a web 2.0 application using the Html and JavaScript helpers.</p>
<p><strong>Step 4: Create a solid Javascript framework</strong></p>
<p>Let me just say this… I don’t love JavaScript, but I can’t seem to get away from it, so might as well make it easy to work with. I use the following plugins to simplify my JavaScript existence: jQuery, jQuery.Form, jQuery.Validate, and REQ.</p>
<p>REQ is the main loader and it handles the proper checking and loading of all javascript dependencies by using the dependency map. It won’t load jQuery if it is already loaded, same for all the other plugins. This ensures that if there are multiple BigfootMVC modules on the page, the references will be loaded only once.</p>
<p>If you are using the MVC model, then you don’t have to do anything, all these dependencies are automatically properly referenced for you. If you are using the classic DNN model then you just need to add this single line to the top of your control.</p>
<p>&lt;%=DnnApp.AddBigfootScriptAndCssDependencies()%&gt;</p>
<p><strong>Step 5: Create a resistant CSS framework</strong></p>
<p>I highlight resistant as this seems to be one of the more frustrating aspects of creating a commercial module since you can’t predict what the skin will look like, or if the skin will work properly. Bottom line is that you need your module to look consistently good even on crappy skins.</p>
<p>The second aspect of being a good DNN module citizen is making sure that your CSS does not bleed out into the skin. This is extremely important as you don’t want your module CSS to screw up anything that gets loaded after your module.</p>
<p>The CSS stylesheet in BigfootMVC has a module level reset, as well as class selectors than when utilized will ensure that these styles take precedence. Styles are module specific which means that it won’t bleed out into other modules in the site.</p>
<p>It includes common alignment, proper floating for IE6+ , common sizing for the basics of  a grid system, the reset is based on Eric Meyer’s reset, proper typing, margin, and font size presets as well as many other all purpose utility classes you can use, like text alignment, etc.</p>
<p><strong>Step 6: Create a project template that makes it dead simple to get started</strong></p>
<p>I’m working on this and should be ready soon.</p>
<p><strong> </strong></p>
<p><strong>Summary</strong></p>
<p>This redesign enables a more reusable codebase that can be used to support not just DNN development but any other type of ASP.NET development. BigfootMVC will make it extremely simple to create new applications by simply referencing three DLLs in your DNN project. I’ll show you how to this in my next blog post.</p>
<p>You can browse the source code here <a href="http://bigfoot.codeplex.com">http://bigfoot.codeplex.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=58&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2010/07/19/bigfootmvc-a-module-development-alternative-for-dotnetnuke-part-1-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>
	</item>
		<item>
		<title>Is apple hurting themselves with their attitide towards adobe?</title>
		<link>http://mitchlabrador.com/2010/05/01/is-apple-hurting-themselves-with-their-attitide-towards-adobe/</link>
		<comments>http://mitchlabrador.com/2010/05/01/is-apple-hurting-themselves-with-their-attitide-towards-adobe/#comments</comments>
		<pubDate>Sat, 01 May 2010 17:24:44 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[flash html5 apple]]></category>

		<guid isPermaLink="false">https://mitchlabrador1.wordpress.com/?p=56</guid>
		<description><![CDATA[The bottom line is that regardless of wether you like flash or not it is on 98% of the computers out there and it cannot be ignored by a device that pesumes to be the ultimate web browser. Let&#8217;s analize html 5 which seems to be the altermative apple is putting forward. It is an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=56&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>The bottom line is that regardless of wether you like flash or not it is on 98% of the computers out there and it cannot be ignored by a device that pesumes to be the ultimate web browser.</p>
<p>Let&#8217;s analize html 5 which seems to be the altermative apple is putting forward. It is an unfinished standard!!!! Not only that but it is not being implemented across browsers the same way. Firefox supports only the ogg video format on the video element. Everybody else does h.264, and older browsers dont have support for html 5 period. On top of that, the world&#8217;s largest browser (ie) does not currently support html5. So if you wanted to provide a video experience for the users of your site you would have to encode your video as ogg and h.264. You would then also need to fallback to flash for the majority of your users.</p>
<p>So going back to the original question, will apple be hurt by their decision&#8230;.. in my opinion, NO.</p>
<p>We the web developers are the ones really hurt by this. Apple and Adobe can afford to live in the clouds but us web devs that are here in the trenches still need to create sites that can operate in the real world.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=56&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2010/05/01/is-apple-hurting-themselves-with-their-attitide-towards-adobe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery.Validate plugin $.format function null error</title>
		<link>http://mitchlabrador.com/2010/04/15/jquery-validate-plugin-format-function-null-error/</link>
		<comments>http://mitchlabrador.com/2010/04/15/jquery-validate-plugin-format-function-null-error/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 22:03:18 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[jquery; jquery.validate; javascript]]></category>

		<guid isPermaLink="false">http://mitchlabrador.com/2010/04/15/jquery-validate-plugin-format-function-null-error/</guid>
		<description><![CDATA[jQuery.Validate is an awesome plugin.. Albeit with a few minor issues. This one happens when using the $.format function which is part of jquery.validate 1.7 and previous versions too. When you use the $.format like this: $.format(&#8220;Hello {0} &#8221;, userName) if the userName variable is null then this will be the outcome: &#8220;Hello null&#8221; To fix [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=53&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>jQuery.Validate is an awesome plugin.. Albeit with a few minor issues.</p>
<p>This one happens when using the $.format function which is part of jquery.validate 1.7 and previous versions too.</p>
<p>When you use the $.format like this:</p>
<p>$.format(&#8220;Hello {0} &#8221;, userName)</p>
<p>if the userName variable is null then this will be the outcome: &#8220;Hello null&#8221;</p>
<p>To fix this issue you can add this simple line to the $.format function to make sure the value is not null before merging it with your string.</p>
<p>This:<br />
$.each(params, function(i, n) {<br />
source = source.replace(new RegExp(&#8220;\\{&#8221; + i + &#8220;\\}&#8221;, &#8220;g&#8221;), n);<br />
});</p>
<p>Becomes this:<br />
$.each(params, function(i, n) {<br />
if (n == null) n = &#8221;;<br />
source = source.replace(new RegExp(&#8220;\\{&#8221; + i + &#8220;\\}&#8221;, &#8220;g&#8221;), n);<br />
});</p>
<p>See the video bellow for the bug and fix in action.</p>
<p><a href="http://www.screencast.com/t/MGZlNjAxMDkt">http://www.screencast.com/t/MGZlNjAxMDkt</a></p>
<p>Hope this helps!<br />
Mitch</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=53&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2010/04/15/jquery-validate-plugin-format-function-null-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery.Validate 1.7 error does not show in internet explorer</title>
		<link>http://mitchlabrador.com/2010/03/23/jquery-validate-1-7-error-does-not-show-in-internet-explorer/</link>
		<comments>http://mitchlabrador.com/2010/03/23/jquery-validate-1-7-error-does-not-show-in-internet-explorer/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 15:06:29 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://mitchlabrador.com/?p=48</guid>
		<description><![CDATA[There is a bug in the jQuery validate plugin when running in internet explorer. When the validate function is called and errors are found, the invalid label error does not show, or rather it shows, it is just empty. After considerable digging around  I found the culprit. jquery.Validate uses the function defaultMessage to determine which [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=48&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>There is a bug in the jQuery validate plugin when running in internet explorer. When the validate function is called and errors are found, the invalid label error does not show, or rather it shows, it is just empty.</p>
<p>After considerable digging around  I found the culprit. jquery.Validate uses the function defaultMessage to determine which error message to display, it in turn calls the findDefined function to determine which of the parameters is defined and it uses that one as the message.</p>
<p>The bug is in findDefined function, it uses this line to determine weather to use that message or move to next one:</p>
<blockquote><p>if (arguments[i] !== undefined) {</p>
</blockquote>
<p>in internet explorer this comparison is incorrect. The correct comparison to get the desired behavior would be</p>
<blockquote><p>if (arguments[i] != undefined) {</p>
</blockquote>
<p>I&#8217;ve tested this last line in all the major browsers and it works great. Hopefully this will save you some time when debugging this particular problem.</p>
<p>Here is the fixed function:</p>
<blockquote>
<div id="_mcePaste">findDefined: function() {</div>
<div id="_mcePaste">for (var i = 0; i &lt; arguments.length; i++) {</div>
<div id="_mcePaste">if (arguments[i] != undefined) {</div>
<div id="_mcePaste">return arguments[i];</div>
<div id="_mcePaste">}</div>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=48&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2010/03/23/jquery-validate-1-7-error-does-not-show-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>
	</item>
		<item>
		<title>How to minimize and combine your JavaScript on Compile using Visual Studio</title>
		<link>http://mitchlabrador.com/2009/12/09/how-to-minimize-and-combine-your-javascript-on-compile-using-visual-studio/</link>
		<comments>http://mitchlabrador.com/2009/12/09/how-to-minimize-and-combine-your-javascript-on-compile-using-visual-studio/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 17:21:59 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jsmin]]></category>
		<category><![CDATA[visualstudio]]></category>

		<guid isPermaLink="false">http://mitchlabrador1.wordpress.com/2009/12/09/how-to-minimize-and-combine-your-javascript-on-compile-using-visual-studio/</guid>
		<description><![CDATA[Last night I had the pleasure of presenting at the Orlando Dotnetnuke user group on this subject. This post is a follow up to that presentation. I haven’t presented in a while and I have to admit I was a bit nervous, and to make matters worse the projector was not wanting to cooperate with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=38&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Last night I had the pleasure of presenting at the Orlando Dotnetnuke user group on this subject. This post is a follow up to that presentation.</p>
<p>I haven’t presented in a while and I have to admit I was a bit nervous, and to make matters worse the projector was not wanting to cooperate with me. Suddenly the room got really hot and I started sweating… I’m sure my sweating had nothing to do with the silence in the room while people waited for the technical problem to be resolved <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It turned out that when I closed my machine at the office, it was connected to multiple monitors, so when I hibernated it remembered those settings and I could only get to projector to work as an extension of my desktop, like a second monitor.</p>
<p>Anyways… great learning opportunity, and I can’t wait to try it again. On to the technical stuff…</p>
<p><strong><span style="font-size:medium;">Goal:</span></strong></p>
<p>I want the JavaScript file references in my pages to load the debug version of the JavaScript files when my visual studio solution is in debug mode. When Visual Studio is in release mode, I want a single compressed JavaScript file to be loaded.</p>
<p><span style="font-size:medium;"><strong>Solution: (<a href="http://cdn.mitmar.com.s3.amazonaws.com/jsminsample.zip">download</a>)</strong></span></p>
<p><strong>Step 1: Download jsmin.exe from </strong><a title="http://www.crockford.com/javascript/jsmin.html" href="http://www.crockford.com/javascript/jsmin.html"><strong>http://www.crockford.com/javascript/jsmin.html</strong></a></p>
<p>Add it to your scripts directly in your project. You should not deploy this with your project, it is only needed during compile time to minimize and combine your JS files.</p>
<p>I use the following structure to store my javascript files:</p>
<p><a href="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image4_.png"><img style="display:inline;border-width:0;" title="captured_Image.png[4]" src="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image4_thumb.png?w=329&#038;h=494" border="0" alt="captured_Image.png[4]" width="329" height="494" /></a> </p>
<p><strong>Step 2: Add a post build command</strong></p>
<p>Right click on your project, click properties. Select the compile tab and click on the build events on the bottom right of the screen.</p>
<p><a href="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image6_.png"><img style="display:inline;border-width:0;" title="captured_Image.png[6]" src="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image6_thumb.png?w=500&#038;h=428" border="0" alt="captured_Image.png[6]" width="500" height="428" /></a></p>
<p>Enter the following command in the post-build event command line field:</p>
<p><strong> </strong><span style="font-family:consolas;">type &#8220;$(ProjectDir)content\js\libraries\*.debug.js&#8221; | &#8220;$(ProjectDir)content\js\libraries\jsmin&#8221; &gt; &#8220;$(ProjectDir)content\js\libraries.min.js&#8221;</span> </p>
<p><a href="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image.png"><img style="display:inline;border-width:0;" title="captured_Image.png" src="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image_thumb.png?w=354&#038;h=328" border="0" alt="captured_Image.png" width="354" height="328" /></a></p>
<p>This command does two things. First it looks for all the javascript files in your <strong>“content/js/libararies”</strong> directory ending with <strong>.debug.js</strong> and pipes it into the jsmin executable as one long string. Second it tells jsmin to output the compressed and combined JavaScript code to a single file <strong>content/js/libraries.min.js</strong></p>
<p><strong>Step 3: Add a debug flag</strong></p>
<p>We need a way to figure out if we are in debug mode or release mode so to do this we are going to add a shared function to a helper library that will return true if in debug mode, and false if in release mode. In this function we use a compiler statement to compile “return true” when in debug mode and “return false” otherwise.</p>
<p><span style="font-family:Consolas;">Public Shared Function IsInDebugMode() As Boolean<br />
#If DEBUG Then<br />
        Return True<br />
#Else<br />
        Return False<br />
#End If<br />
End Function</span></p>
<p><strong>Step 4: Add a conditional statement to your pages</strong></p>
<p>To your page you simply add this:</p>
<p><span style="font-family:consolas;">&lt;% If jsmin.Helpers.IsInDebugMode Then%&gt;<br />
    &lt;script src=&#8221;content/js/libraries/01-jquery-1.3.2.debug-vsdoc2.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/01-jquery-1.3.2.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/02-jquery-ui-1.7.2.custom.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/03-jquery.autocomplete.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/04-jquery.blockUI.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/05-jquery.cluetip.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/06-jquery.form.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/07-jquery.validate.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/08-jquery.values.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/09-json2.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
    &lt;script src=&#8221;content/js/libraries/10-app.debug.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;% Else%&gt;<br />
    &lt;script src=&#8221;content/js/libraries.min.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;% End If%&gt;</span></p>
<p>This tells your page that when <strong>IsInDebugMode</strong> is true, reference all the debug scripts, otherwise reference only the <strong>libraries.min.js</strong> script</p>
<p><strong><span style="font-size:medium;">Making it better</span></strong></p>
<p>This is great, but I dislike having to add these conditional statements to every page, so created another simple helper function that goes through my libraries directory, grabs all my debug files and creates the html string to be included in the page. following the same rules, if in debug mode all the scripts, if in release mode only libraries.min.js</p>
<p><span style="font-family:consolas;">Public Shared Function JSReferences() As String<br />
    Dim key = &#8220;JSReferences&#8221;<br />
    Dim context = HttpContext.Current </span></p>
<p><span style="font-family:consolas;">    If context.Application(key) = &#8220;&#8221; Then<br />
        If IsInDebugMode() Then<br />
            Dim data = New StringBuilder<br />
            For Each f In Directory.GetFiles(context.Request.MapPath(&#8220;~/content/js/libraries/&#8221;))<br />
                f = f.ToLowerInvariant<br />
                If Path.GetExtension(f).ToLowerInvariant = &#8220;.js&#8221; AndAlso _<br />
                        f.EndsWith(&#8220;vsdoc2.js&#8221;) = False AndAlso _<br />
                        f.EndsWith(&#8220;vsdoc.js&#8221;) = False Then<br />
                    data.AppendLine(String.Format(&#8220;&lt;script src=&#8217;{0}&#8217; type=&#8217;text/javascript&#8217;&gt;&lt;/script&gt;&#8221;, &#8220;content/js/libraries/&#8221; &amp; Path.GetFileName(f)))<br />
                End If<br />
            Next<br />
            context.Application.Add(key, data.ToString)<br />
        Else </span></p>
<p><span style="font-family:consolas;">            context.Application.Add(key, &#8220;&lt;script src=&#8217;content/js/libraries.min.js&#8217; type=&#8217;text/javascript&#8217;&gt;&lt;/script&gt;&#8221;)<br />
        End If<br />
    End If </span></p>
<p><span style="font-family:consolas;">    Return context.Application(key)<br />
End Function</span></p>
<p>now I can replace the code in my html pages with this single line statement.</p>
<p><span style="font-family:Consolas;">&lt;%=jsmin.Helpers.JSReferences%&gt;</span></p>
<p>That’s it. Enjoy!</p>
<p>Thanks to Dave Ward for the original idea <a title="http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/" href="http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/">http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=38&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2009/12/09/how-to-minimize-and-combine-your-javascript-on-compile-using-visual-studio/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>

		<media:content url="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image4_thumb.png" medium="image">
			<media:title type="html">captured_Image.png[4]</media:title>
		</media:content>

		<media:content url="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image6_thumb.png" medium="image">
			<media:title type="html">captured_Image.png[6]</media:title>
		</media:content>

		<media:content url="http://mitchlabrador1.files.wordpress.com/2009/12/captured_image_thumb.png" medium="image">
			<media:title type="html">captured_Image.png</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery intellisense does not work in Visual Studio</title>
		<link>http://mitchlabrador.com/2009/07/21/jquery-intellisense-does-not-work-in-visual-studio/</link>
		<comments>http://mitchlabrador.com/2009/07/21/jquery-intellisense-does-not-work-in-visual-studio/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 18:21:36 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[intellisense]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://mitchlabrador.com/?p=20</guid>
		<description><![CDATA[If you use jQuery with its vsdoc file in Visual Studio 2008, you might have noticed that sometimes when adding certain JavaScript files, like jQuery.UI, it knocks out your Visual Studio intellisense. Here is a dead simple way to fix it. 1. First find the offending library that is messing with your jQuery IntelliSense. Do this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=20&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>If you use jQuery with its vsdoc file in Visual Studio 2008, you might have noticed that sometimes when adding certain JavaScript files, like jQuery.UI, it knocks out your Visual Studio intellisense.</p>
<p>Here is a dead simple way to fix it.</p>
<p>1. First find the offending library that is messing with your jQuery IntelliSense. Do this by commenting one at a time and pressing <strong>Ctrl + Shift + J</strong> to force the JS IntelliSense engine to regen. Repeat until you don&#8217;t get a JS IntelliSense error (it should come up in the status bar, and as a warning in the errors window)</p>
<p>2. Replace the offending javascript file with something like this.</p>
<blockquote><p>&lt;script src=&#8217;&lt;%= &#8220;../../Scripts/your_javascript_file.js&#8221; %&gt;&#8217; type=&#8221;text/javascript&#8221;&gt;</p></blockquote>
<p>When you do this, the Visual Studio JS intellisense engine, does not try to process  the javascript file, and you get your jQuery IntelliSense back.</p>
<p>Hope this helps. Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=20&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2009/07/21/jquery-intellisense-does-not-work-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>
	</item>
		<item>
		<title>jQuery validation error inside the jQuery.UI.Dialog</title>
		<link>http://mitchlabrador.com/2009/07/08/jquery-validation-error-inside-the-jquery-ui-dialog/</link>
		<comments>http://mitchlabrador.com/2009/07/08/jquery-validation-error-inside-the-jquery-ui-dialog/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 22:54:41 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://mitchlabrador1.wordpress.com/2009/07/08/jquery-validation-error-inside-the-jquery-ui-dialog/</guid>
		<description><![CDATA[This week I found a peculiar problem while trying to do validation inside a jQuery UI dialog box. Validation, although properly configured, would not happen, it would always show as valid. This is the form, it is using the jquery.validation and the  jquery.ui.dialog components. 1: &#60;form id="form1" runat="server"&#62; 2: &#60;div id="dialog"&#62;&#60;/div&#62; 3: &#60;input type="button" id="load" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=18&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>This week I found a peculiar problem while trying to do validation inside a jQuery UI dialog box. Validation, although properly configured, would not happen, it would always show as valid.</p>
<p>This is the form, it is using the jquery.validation and the  jquery.ui.dialog components.</p>
<div class="csharpcode">
<pre><span class="lnum">   1:  </span>&lt;form id=<span class="str">"form1"</span> runat=<span class="str">"server"</span>&gt;</pre>
<pre><span class="lnum">   2:  </span>    &lt;div id=<span class="str">"dialog"</span>&gt;&lt;/div&gt;</pre>
<pre><span class="lnum">   3:  </span>    &lt;input type=<span class="str">"button"</span> id=<span class="str">"load"</span> <span class="kwrd">value</span>=<span class="str">"Load Form"</span> /&gt;</pre>
<pre><span class="lnum">   4:  </span>&lt;/form&gt;</pre>
<pre><span class="lnum">   5:  </span></pre>
<pre><span class="lnum">   6:  </span>&lt;script type=<span class="str">"text/javascript"</span>&gt;</pre>
<pre><span class="lnum">   7:  </span></pre>
<pre><span class="lnum">   8:  </span>    $(function() {</pre>
<pre><span class="lnum">   9:  </span></pre>
<pre><span class="lnum">  10:  </span>        $(<span class="str">'#form1'</span>).validate();</pre>
<pre><span class="lnum">  11:  </span></pre>
<pre><span class="lnum">  12:  </span>        $(<span class="str">'#load'</span>).click(function() {</pre>
<pre><span class="lnum">  13:  </span>            $.get(<span class="str">'_form.aspx'</span>, function(data) {</pre>
<pre><span class="lnum">  14:  </span>                $(<span class="str">'#dialog'</span>).html(data);</pre>
<pre><span class="lnum">  15:  </span>                $(<span class="str">'#dialog'</span>).dialog();</pre>
<pre></pre>
<pre><span class="lnum">  17:  </span>            });</pre>
<pre><span class="lnum">  18:  </span>        });</pre>
<pre><span class="lnum">  19:  </span></pre>
<pre><span class="lnum">  20:  </span>    });</pre>
<pre><span class="lnum">  21:  </span></pre>
<pre><span class="lnum">  22:  </span></pre>
<pre><span class="lnum">  23:  </span>&lt;/script&gt;</pre>
</div>
<p>as you can see it is doing an ajax request to load the form. It then brings up the dialog box. Notice that the dialog div is inside the form therefore I’m expecting the loaded page to render within the form tag of the current page. This is the form that is loaded:</p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">input</span> <span class="attr">type</span><span class="kwrd">="text"</span> <span class="attr">id</span><span class="kwrd">="subject"</span> <span class="attr">class</span><span class="kwrd">="required"</span> <span class="kwrd">/&gt;</span></pre>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">input</span> <span class="attr">type</span><span class="kwrd">="submit"</span> <span class="attr">value</span><span class="kwrd">="Submit Form"</span> <span class="kwrd">/&gt;</span></pre>
<p><span class="kwrd">The problem is that the UI dialog will add a wrapper div and place it outside the form tag. It then moves the dialog div to be within it, effectively moving it outside the form. Therefore validation does not work as it is outside the form tag.</span></p>
<p><span class="kwrd">To fix this we write this simple line of code to reverse the process and move the dialog wrapper to be within the form tag.</span></p>
<pre class="csharpcode">$(<span class="str">'#dialog'</span>).parent().appendTo($(<span class="str">'#form1'</span>));</pre>
<p><span class="kwrd">It took me a little while to figure this out, and hopefully this will save you some time.</span></p>
<p><span class="kwrd">Cheers!</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=18&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2009/07/08/jquery-validation-error-inside-the-jquery-ui-dialog/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>
	</item>
		<item>
		<title>Happy Father&#8217;s Day!</title>
		<link>http://mitchlabrador.com/2009/06/20/happy-fathers-day/</link>
		<comments>http://mitchlabrador.com/2009/06/20/happy-fathers-day/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 15:52:38 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://mitchlabrador1.wordpress.com/2009/06/20/happy-fathers-day/</guid>
		<description><![CDATA[I would like to wish all the fathers out there a very happy father’s day. Mother’s day is the biggest rose selling day of the year, I wonder what is the biggest selling item for father’s day? Maybe tools, a new grill, etc. You see the pattern, we only get things to work harder! What’s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=15&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I would like to wish all the fathers out there a very happy father’s day. </p>
<p>Mother’s day is the biggest rose selling day of the year, I wonder what is the biggest selling item for father’s day? Maybe tools, a new grill, etc. You see the pattern, we only get things to work harder! What’s up with that?</p>
<p>I imagine the geek Dad’s biggest selling category is tech, perhaps the new iPhone 3Gs, hint… hint…</p>
<p>Happy Father’s Day to all of us!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=15&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2009/06/20/happy-fathers-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>
	</item>
		<item>
		<title>New project, new language, new MVC template, hi there again C#!</title>
		<link>http://mitchlabrador.com/2009/06/18/new-project-new-language-new-mvc-template-hi-there-again-c/</link>
		<comments>http://mitchlabrador.com/2009/06/18/new-project-new-language-new-mvc-template-hi-there-again-c/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 16:18:04 +0000</pubDate>
		<dc:creator>Mitch Labrador</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://mitchlabrador.com/?p=10</guid>
		<description><![CDATA[It has been a few months since my last C# project, and it is time to come back into the fold. For the last two projects, the client wanted VB.NET so we obliged them&#8230; you know, them being the clients and all, we kind of listen to them sometimes I&#8217;m back to C# though and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=10&subd=mitchlabrador1&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>It has been a few months since my last C# project, and it is time to come back into the fold. For the last two projects, the client wanted VB.NET so we obliged them&#8230; you know, them being the clients and all, we kind of listen to them sometimes <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>I&#8217;m back to C# though and this time is going to be an MVC project. So whenever I&#8217;ve been away from a technology for a few months, I pickup my favorite book on it and go over the basics. I have to say that I&#8217;ve missed the style of C#, even though I&#8217;ve enjoyed the xml literals in VB&#8230;sigh&#8230;</p>
<p>So <a href="http://www.amazon.com/3-0-Nutshell-Desktop-Reference-OReilly/dp/0596527578/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1245340077&amp;sr=8-1" target="_blank">C# 3.0 In A Nutshell</a> it is, what a great book. It covers C# from the basics to the common usage scenrios accross the different technologies (asp.net, LINQ, etc&#8230;) .</p>
<p>I&#8217;ve also started to create a new MVC template so I&#8217;m putting together all the usual suspects that will make my development life easier.</p>
<p>1. jQuery plugins and other useful JS libraries</p>
<ul>
<li><a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="_blank">Validation Plugin</a></li>
<li><a href="http://plugins.jquery.com/project/Values" target="_blank">jquery.values</a></li>
<li><a href="http://malsup.com/jquery/block/" target="_blank">BlockUI</a></li>
<li><a href="http://jqueryui.com/" target="_blank">jQuery.UI</a></li>
<li><a href="http://www.json.org/js.html" target="_blank">json2.js</a></li>
<li><a href="http://malsup.com/jquery/form/" target="_blank">jquery.form</a></li>
</ul>
<p>2. JavaScript minify and combine. I then use <a href="http://www.crockford.com/javascript/jsmin.html" target="_blank">jsmin</a> to setup my automatic JS minify and combine through a VS post built event. Here is a <a href="http://encosia.com/2009/05/20/automatically-minify-and-combine-javascript-in-visual-studio/" target="_blank">great blog post</a> from David Ward, who gets credit for the original idea.</p>
<p>3. Replace the existing template for <a href="http://www.opendesigns.org/preview/?template=781" target="_blank">this nice free CSS template</a> from <a href="http://www.opendesigns.org/" target="_blank">opendesign.org</a> and we are half way there to creating a kick butt template.</p>
<p>I still have to setup <a href="http://xval.codeplex.com" target="_blank">xVal</a> and a few other things, but that will be for the next post. For now, I&#8217;m ready to get started.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchlabrador1.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchlabrador1.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchlabrador1.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchlabrador1.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchlabrador1.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchlabrador1.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchlabrador1.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchlabrador1.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchlabrador1.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchlabrador1.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchlabrador.com&blog=8149074&post=10&subd=mitchlabrador1&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://mitchlabrador.com/2009/06/18/new-project-new-language-new-mvc-template-hi-there-again-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb2641556206d241be4a511c963d7c4a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">mitchlabrador</media:title>
		</media:content>
	</item>
	</channel>
</rss>