<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pearl Tech &#187; BJ</title>
	<atom:link href="http://blog.pearltechnology.com/author/bjw/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pearltechnology.com</link>
	<description></description>
	<lastBuildDate>Fri, 17 Feb 2012 17:35:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Chrome Extensions</title>
		<link>http://blog.pearltechnology.com/chrome-extensions/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://blog.pearltechnology.com/chrome-extensions/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 13:42:54 +0000</pubDate>
		<dc:creator>BJ</dc:creator>
				<category><![CDATA[Application Development]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[chrome extensions]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[lorem ipsum generator]]></category>

		<guid isPermaLink="false">http://blog.pearltechnology.com/?p=1108</guid>
		<description><![CDATA[Discovering any tool, extension, shortcut etc that helps make your life easier is always a good thing. While testing an application, I had two tabs open in Chrome. Refreshing each tab individually after updating the application is not a big deal, but having to constantly do it gets annoying. So, after searching I found a [...]]]></description>
			<content:encoded><![CDATA[<p>Discovering any tool, extension, shortcut etc that helps make your life easier is always a good thing. While testing an application, I had two tabs open in Chrome. Refreshing each tab individually after updating the application is not a big deal, but having to constantly do it gets annoying. So, after searching I found a Chrome extension that will refresh all open tabs. All extensions can be found in the <a href="https://chrome.google.com/webstore" target="_blank">Chrome Web Store</a>. The web store has many, many extensions that are grouped by different categories, themes, collections and can be searched as well.</p>
<p>A few other handy extensions besides &#8220;Reload All Tabs&#8221; are: JavaScript Beautifer, jQuery API browser, and Lorem Ipsum Generator.</p>
<p>The JavaScript Beautifier extension will &#8220;beautify&#8221; a long, hard to read JavaScript file that looks like this:</p>
<p>if(typeof deconcept==&#8221;undefined&#8221;){var deconcept=new Object();}if(typeof deconcept.util==&#8221;undefined&#8221;){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil==&#8221;undefined&#8221;){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:&#8221;detectflash&#8221;;this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);  &#8230;</p>
<p>and make it look like this:</p>
<p><img class="alignleft size-full wp-image-1128" title="JS-Beautifier" src="http://blog.pearltechnology.com/wp-content/uploads/2011/03/JS-Beautifier1.png" alt="JS-Beautifier" width="600" height="500" /></p>
<p>For anyone that likes jQuery, the jQuery API browser will also come in handy. It provides a quick search through the API documentation. Simply type in what you want to search for and you&#8217;ll receive your results.</p>
<p><img class="alignleft size-full wp-image-1126" title="jQueryAPI" src="http://blog.pearltechnology.com/wp-content/uploads/2011/03/jQueryAPI1.png" alt="jQueryAPI" width="679" height="331" /></p>
<p>A lot of times while testing an application you&#8217;ll need some generic text to populate text fields. The Lorem Ipsum Generator will provide you with random &#8220;Lorem Ipsum&#8221; text. You can specify how many paragraphs and words per paragraph you would like.</p>
<p><img class="alignleft size-full wp-image-1137" title="LoremIpsumGenerator" src="http://blog.pearltechnology.com/wp-content/uploads/2011/03/LoremIpsumGenerator.png" alt="LoremIpsumGenerator" width="600" height="155" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pearltechnology.com/chrome-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE Caching Ajax Requests</title>
		<link>http://blog.pearltechnology.com/ie-caching-ajax-requests/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://blog.pearltechnology.com/ie-caching-ajax-requests/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 19:45:39 +0000</pubDate>
		<dc:creator>BJ</dc:creator>
				<category><![CDATA[Application Development]]></category>

		<guid isPermaLink="false">http://blog.pearltechnology.com/?p=916</guid>
		<description><![CDATA[On a recent ASP.NET MVC project, we used to our advantage AJAX and latest jQuery.  There were a couple of times Internet Explorer required an extra step to deliver desired results because of the way IE caches web pages.  My fellow developers use Chrome as their preferred browser and up until working with them I [...]]]></description>
			<content:encoded><![CDATA[<p>On a recent ASP.NET MVC project, we used to our advantage AJAX and latest <a href="http://www.jquery.com/" target="_blank">jQuery</a>.  There were a couple of times Internet Explorer required an extra step to deliver desired results because of the way IE caches web pages.  My fellow developers use Chrome as their preferred browser and up until working with them I had always used Internet Explorer; however, I now know why Chrome is their preferred browser.  One would think that using the most widely used browser for development would yield expected results on a consistent basis.  IE did provide consistent results; consistent in the fact that they were always inconsistent with what I expected.  Chrome (and Firefox) provided zero headaches.</p>
<p>The first scenario occurred after reloading a page via JavaScript using location.reload().  The page displayed messages for a particular user and for each message there was a field indicating if the message had been read or not.  It was an image of a closed envelope (if not read) and an open envelope (if it was read).  The location.reload() was called after a successful AJAX call to update the “IsRead” flag in the database, but the image was not being updated from the closed envelope to the open envelope.  The problem, IE was caching the User Control.  The solution was to use the <a href="http://msdn.microsoft.com/en-us/library/system.web.mvc.outputcacheattribute(v=VS.90).aspx" target="_blank">OutputCacheAttribute</a> class in the System.Web.Mvc namespace.</p>
<p style="text-align: center"><img class="size-full wp-image-917  aligncenter" src="http://blog.pearltechnology.com/wp-content/uploads/2011/01/Untitled.png" alt="OutPutCache" width="462" height="24" /></p>
<p>The second scenario came about when loading a jQuery modal with a list of items that were <a href="http://www.jqueryui.com/demos/sortable/" target="_blank">sortable</a>.  A Web User Control contained an unordered list of items that was populated from a database table.  When the modal is opened, the items are displayed in an order according to a field in the database table.  After a user sets the desired order the new order is saved and the database field is updated accordingly.  This was working fine, but opening the modal after an update displayed the incorrect order.  The items were still in the same order as before the update.  The solution was to concatenate a random number (via the JavaScript Math object) to what was being loaded so that IE would think it was loading a new page and thus not display the cached version of the list.</p>
<p style="text-align: center"><img class="size-full wp-image-918  aligncenter" src="http://blog.pearltechnology.com/wp-content/uploads/2011/01/Untitled1.png" alt="jQuery.load()" width="481" height="27" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pearltechnology.com/ie-caching-ajax-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

