<?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>dreamsincode</title>
	<atom:link href="http://dreamsincode.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dreamsincode.wordpress.com</link>
	<description>code, dreams, dreams in code</description>
	<lastBuildDate>Fri, 09 Dec 2011 14:34:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dreamsincode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/361708b31c2f072b3ab4197dfe0f8770?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>dreamsincode</title>
		<link>http://dreamsincode.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dreamsincode.wordpress.com/osd.xml" title="dreamsincode" />
	<atom:link rel='hub' href='http://dreamsincode.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SharePoint 2007 Auto Page Refresh on Workflow Completion (SOLVED)</title>
		<link>http://dreamsincode.wordpress.com/2011/12/09/sharepoint-2007-auto-page-refresh-on-workflow-completion-solved/</link>
		<comments>http://dreamsincode.wordpress.com/2011/12/09/sharepoint-2007-auto-page-refresh-on-workflow-completion-solved/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 14:29:16 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint Designer]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=91</guid>
		<description><![CDATA[Well, solved with some JavaScript that is. This won&#8217;t be the ideal situation for everyone, but works for my immediate need and may well work for yours.  Use with caution! The Problem: Often in the SharePoint world we use a Workflow designed and deployed with SharePoint Designer to update a list field value.  Usually this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=91&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, solved with some JavaScript that is.</p>
<p>This won&#8217;t be the ideal situation for everyone, but works for my immediate need and may well work for yours.  Use with caution!</p>
<p><strong>The Problem:</strong></p>
<p>Often in the SharePoint world we use a Workflow designed and deployed with SharePoint Designer to update a list field value.  Usually this is down when we want to include information from another list or something similar.</p>
<p>In my scenario, I was tasked with creating a simple Email Register that displayed a link with embedded subject and CC.  The subject needed an auto number included. The MSDN forums had the <a href="http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/867bcacd-d378-411a-849a-fc040de9e5da/">SharePoint auto number solution</a>.</p>
<p>Once this was implemented I was on my way! Well, almost. Nasty SharePoint didn&#8217;t show the generated email link until AFTER the user refreshed the page (F5).</p>
<p><strong>The Solution:</strong></p>
<p>jQuery! (Really, where you expecting something else?)</p>
<p>Using the code below, I&#8217;ve setup an auto page refresh. Now, we do have some caveats:</p>
<ul>
<li>List must be sorted so Newest item is always at the top.</li>
</ul>
<ul>
<li>Users must NOT be allowed to change that.</li>
<li>If the site is slow, the page may perform 2-3 (or more if really slow) automated page refreshes.</li>
</ul>
<ul>
<li>Test and act in kind.</li>
<li>The WorkFlow column must be visible</li>
</ul>
<p>So that being said, the JavaScript.</p>
<p>Include a Content Editor WebPart on the page, use the Source Editor to paste in the code. <strong>NOTE</strong>: you will have to adjust the column (td:nth-child(3)) to match what you have in your list.</p>
<p>Basically, the script just checks for &#8220;In Progess&#8221; in the WorkFlow column, waits for 1 second and refreshes the page. The 1 second pause helps reduce multiple refreshes.</p>
<p>About the Selector:</p>
<p><em>.ms-listviewtable:</em> I used a class as the ID was crazy long and gave me some issues. If you have more then one of these on your page, beware it will check all of them.</p>
<p><em>tr:nth-child(2): </em>Move to the 2nd row. The 1st row is the Header (column titles).</p>
<p><em>td:nth-child(3): </em>Move to the 3rd Column. (You will probably need to adjust this) This column will have a header value of the WorkFlow name.</p>
<p><em>a span: </em>The text is wrapped in an anchor and span tag.</p>
<p><strong>The Script:</strong></p>
<p><pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js&quot;&gt;&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
 $(document).ready(function(){
      var td = $(&quot;.ms-listviewtable tr:nth-child(2) td:nth-child(3) a span&quot;).html();
      if(td==&quot;In Progress&quot;){
           sleep(1000);
           window.location=window.location;
      }
 });
function sleep(ms)
 {
      var dt = new Date();
      dt.setTime(dt.getTime() + ms);
      while (new Date().getTime() &lt; dt.getTime());
 }
&lt;/script&gt;

</pre></p>
<p>And this does nicely for my needs. Hope it helps someone!</p>
<br /> Tagged: <a href='http://dreamsincode.wordpress.com/tag/javascript/'>javascript</a>, <a href='http://dreamsincode.wordpress.com/tag/jquery/'>jquery</a>, <a href='http://dreamsincode.wordpress.com/tag/sharepoint/'>SharePoint</a>, <a href='http://dreamsincode.wordpress.com/tag/sharepoint-2007/'>SharePoint 2007</a>, <a href='http://dreamsincode.wordpress.com/tag/sharepoint-designer/'>SharePoint Designer</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=91&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2011/12/09/sharepoint-2007-auto-page-refresh-on-workflow-completion-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>.htaccess mime type for .jar .jad .cod files for over-the-air Blackberry installs</title>
		<link>http://dreamsincode.wordpress.com/2011/09/29/htaccess-mime-type-for-jar-jad-cod-files-for-over-the-air-blackberry-installs/</link>
		<comments>http://dreamsincode.wordpress.com/2011/09/29/htaccess-mime-type-for-jar-jad-cod-files-for-over-the-air-blackberry-installs/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 15:15:52 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[cod]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[jad]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[over-the-air]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=87</guid>
		<description><![CDATA[This is mostly self documentation.  If you find this useful then great! To install a Blackberry app over-the-air you will need these mime types in your .htaccess file.  Or if you are using IIS you will need to use the IIS Management snapin to add them. AddType text/vnd.sun.j2me.app-descriptor jad AddType application/java-archive jar AddType application/vnd.rim.cod cod [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=87&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is mostly self documentation.  If you find this useful then great!</p>
<p>To install a Blackberry app over-the-air you will need these mime types in your .htaccess file.  Or if you are using IIS you will need to use the IIS Management snapin to add them.</p>
<blockquote><p>AddType text/vnd.sun.j2me.app-descriptor jad<br />
AddType application/java-archive jar<br />
AddType application/vnd.rim.cod cod</p></blockquote>
<p>And, upload the &#8220;deliverables\Web\X.0.0&#8243; files not the &#8220;deliverables\Standard\X.0.0&#8243; files.  Not sure why/how/what but I kept getting the dreaded 907 invalid cod error message otherwise.</p>
<p>Cheers!</p>
<br /> Tagged: <a href='http://dreamsincode.wordpress.com/tag/blackberry-2/'>blackberry</a>, <a href='http://dreamsincode.wordpress.com/tag/cod/'>cod</a>, <a href='http://dreamsincode.wordpress.com/tag/htaccess/'>htaccess</a>, <a href='http://dreamsincode.wordpress.com/tag/install/'>install</a>, <a href='http://dreamsincode.wordpress.com/tag/jad/'>jad</a>, <a href='http://dreamsincode.wordpress.com/tag/java-2/'>java</a>, <a href='http://dreamsincode.wordpress.com/tag/over-the-air/'>over-the-air</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=87&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2011/09/29/htaccess-mime-type-for-jar-jad-cod-files-for-over-the-air-blackberry-installs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>Empire Avenue: Just another Social Network?</title>
		<link>http://dreamsincode.wordpress.com/2011/06/20/empire-avenue-just-another-social-network/</link>
		<comments>http://dreamsincode.wordpress.com/2011/06/20/empire-avenue-just-another-social-network/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 20:53:46 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[Social Media]]></category>
		<category><![CDATA[EAve]]></category>
		<category><![CDATA[Empire Avenue]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=83</guid>
		<description><![CDATA[First off, I&#8217;d like to make a response to a premise I wrote about a few months ago: Set it and leave it on Empire Avenue. No, You cannot just &#8220;set it and leave it&#8221;. Empire Avenue has made the on-site interaction a large part of the &#8220;scoring&#8221; that my original premise didn&#8217;t quite work. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=83&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First off, I&#8217;d like to make a response to a premise I wrote about a few months ago: <a href="http://dreamsincode.wordpress.com/2010/09/02/a-unique-twist-in-the-social-networking-landscape/">Set it and leave it on Empire Avenue.</a></p>
<p>No, You cannot just &#8220;set it and leave it&#8221;. Empire Avenue has made the on-site interaction a large part of the &#8220;scoring&#8221; that my original premise didn&#8217;t quite work. In a sense you can just leave it. But your score will suffer from the neglect. I doubled my score when I got serious with it.</p>
<p>Ok, now for my next premise!!! &lt;drum roll please&gt;</p>
<p>Is Empire Avenue just another social network?</p>
<p>Hmm? is it? A lot of people quote the hype of how they are connecting and defining new relationships and partnerships and Empire Avenue is <em>different</em> from the rest.</p>
<p>Time will tell.</p>
<p>Every social network was IT when it first arrived. Empire Avenue could be just another one of those. There is just one variable, in my humble opinion, that can set Empire Avenue apart from the rest for a long time to come: Empire Avenue consumes other networks.</p>
<p>I think this is the key that will keep people coming back to Empire Avenue. No matter how many other Social Networks emerge, people will invariably come back to the Avenue to see how their interactions rank against others. Only if the great folks at Empire Avenue can keep up the relevancy of how they score social networks can they keep ahead of the others.</p>
<p>And that is all for now.</p>
<br /> Tagged: <a href='http://dreamsincode.wordpress.com/tag/eave/'>EAve</a>, <a href='http://dreamsincode.wordpress.com/tag/empire-avenue/'>Empire Avenue</a>, <a href='http://dreamsincode.wordpress.com/tag/social-media/'>Social Media</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=83&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2011/06/20/empire-avenue-just-another-social-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET CodeFile versus CodeBehind</title>
		<link>http://dreamsincode.wordpress.com/2011/04/18/asp-net-codefile-versus-codebehind/</link>
		<comments>http://dreamsincode.wordpress.com/2011/04/18/asp-net-codefile-versus-codebehind/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 13:38:30 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[asp]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=76</guid>
		<description><![CDATA[1 up for the guys at Microsoft. They thought of every eventuality it seems. I was stumped for a while on a weird error: 2011-04-18 10:52:34,416 [11] ERROR 4/18/2011 10:52:34 AM Error occurred: System.Web.HttpException (0&#215;80004005): The file Page.aspx.vb does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.UI.TemplateParser.ProcessCodeFile(VirtualPath codeFileVirtualPath) at System.Web.UI.TemplateParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=76&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1 up for the guys at Microsoft. They thought of every eventuality it seems.</p>
<p>I was stumped for a while on a weird error:</p>
<hr />
<p>2011-04-18 10:52:34,416 [11] ERROR 4/18/2011 10:52:34 AM Error occurred: System.Web.HttpException (0&#215;80004005): The file Page.aspx.vb does not exist.<br />
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)<br />
at System.Web.UI.TemplateParser.ProcessCodeFile(VirtualPath codeFileVirtualPath)<br />
at System.Web.UI.TemplateParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary parseData)<br />
2011-04-18 10:52:34,416 [11] ERROR 4/18/2011 10:52:34 AM Stack Trace: at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)<br />
at System.Web.UI.TemplateParser.ProcessCodeFile(VirtualPath codeFileVirtualPath)<br />
at System.Web.UI.TemplateParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary parseData)</p>
<hr />
<p>What was odd was that I was using a compiled, updateable application. Why on earth was it trying to reference the code behind when everything is dumped into a .dll file?</p>
<p>Turns out we have the CodeBehind and CodeFile attributes of the @Page directive&#8230; Nice one Microsoft! So even though the rest of the application runs from the dll I can change one page to still run from an un-compiled .vb file by changing CodeBehind to CodeFile!!</p>
<p>Hope this helps someone else who inherits a project with that directive changed on only one page.</p>
<p>Cheers!</p>
<br /> Tagged: <a href='http://dreamsincode.wordpress.com/tag/net/'>.net</a>, <a href='http://dreamsincode.wordpress.com/tag/asp-net/'>asp.net</a>, <a href='http://dreamsincode.wordpress.com/tag/microsoft/'>microsoft</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=76&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2011/04/18/asp-net-codefile-versus-codebehind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>Force complete user sign-out in SharePoint 2010 using SharePoint Designer</title>
		<link>http://dreamsincode.wordpress.com/2011/01/27/force-complete-user-sign-out-in-sharepoint-2010-using-sharepoint-designer/</link>
		<comments>http://dreamsincode.wordpress.com/2011/01/27/force-complete-user-sign-out-in-sharepoint-2010-using-sharepoint-designer/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 15:17:16 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Hosted SharePoint]]></category>
		<category><![CDATA[SharePoint Designer]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=71</guid>
		<description><![CDATA[I came across a common situation today where users are not completely signed out.  To recreate the issue, Log into a SharePoint site, open at least one more tab, sign out, then click back or re-navigate to the site.  You won&#8217;t have to type your credentials to browse the site. Thanks to this Microsoft forum [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=71&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I came across a common situation today where users are not completely signed out.  To recreate the issue, Log into a SharePoint site, open at least one more tab, sign out, then click back or re-navigate to the site.  You won&#8217;t have to type your credentials to browse the site.</p>
<p>Thanks to this <a href="http://social.msdn.microsoft.com/Forums/en/sharepointcustomization/thread/f9021dbf-59e2-4aca-b4fc-3f464b802df9">Microsoft forum post</a> by <a title="About bbolling_hosting.com" rel="nofollow" href="http://social.msdn.microsoft.com/profile/bbolling_hosting.com/?type=forum&amp;referrer=http://social.msdn.microsoft.com/Forums/en/sharepointcustomization/thread/f9021dbf-59e2-4aca-b4fc-3f464b802df9">bbolling_hosting.com</a>, we can use some JavaScript to ensure the user is completely Logged Out.</p>
<p>My problem, is I have a hosted SharePoint installation so I can&#8217;t modify the &#8220;_layouts/signout.aspx&#8221; page.</p>
<p>So here we are:</p>
<ul>
<li>Fire up SharePoint Designer.</li>
<li>Edit the v4.master Master Page.</li>
<li>Add the following jQuery CDN link to the bottom of the &lt;head&gt; tag.<br />
<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot; src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'&gt;&lt;/script&gt;
</pre></li>
<li>Add the following line of JavaScript<br />
<pre class="brush: jscript;">
$(document).ready(function(){$(&quot;#zz15_ID_Logout&quot;).attr(&quot;onMenuClick&quot;,&quot;STSNavigate2(event,'/SitePages/logout.aspx');&quot;);});
</pre></li>
<li>Under the Site Pages, Create a new aspx page called logout.aspx and style it like the original signout.aspx or create your own style.</li>
<li>Add the following code:<br />
<pre class="brush: jscript;">
function _spBodyOnLoad()
{ULSd63:;
 try
 {
 document.execCommand(&quot;ClearAuthenticationCache&quot;);
 }
 catch (e) { }
 window.close();
}
</pre></li>
<li>And your ready to go!</li>
</ul>
<p>Of course, your installation may or may not be slightly different, etc, etc so adjust IDs accordingly if needed.</p>
<p>Cheers.</p>
<br /> Tagged: <a href='http://dreamsincode.wordpress.com/tag/hosted-sharepoint/'>Hosted SharePoint</a>, <a href='http://dreamsincode.wordpress.com/tag/javascript/'>javascript</a>, <a href='http://dreamsincode.wordpress.com/tag/jquery/'>jquery</a>, <a href='http://dreamsincode.wordpress.com/tag/sharepoint/'>SharePoint</a>, <a href='http://dreamsincode.wordpress.com/tag/sharepoint-designer/'>SharePoint Designer</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=71&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2011/01/27/force-complete-user-sign-out-in-sharepoint-2010-using-sharepoint-designer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET MVC 2.0 Routing &#8211; First Experimentation</title>
		<link>http://dreamsincode.wordpress.com/2010/09/19/asp-net-mvc-2-0-routing-first-experimentation/</link>
		<comments>http://dreamsincode.wordpress.com/2010/09/19/asp-net-mvc-2-0-routing-first-experimentation/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 15:11:25 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=63</guid>
		<description><![CDATA[I&#8217;ve done file -&#62; new on a few ASP.NET MVC 2.0 projects now, but nothing in earnest yet.  Nothing that I would eventually publish to the interweb. Until yesterday. I&#8217;ve finally decided to build my first Web 2.0 application built on ASP.NET MVC 2.0.  Complete with accessible forms, Pretty looks, Awesome AJAX that falls back [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=63&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve done file -&gt; new on a few ASP.NET MVC 2.0 projects now, but nothing in earnest yet.  Nothing that I would eventually publish to the interweb.</p>
<p>Until yesterday.</p>
<p>I&#8217;ve finally decided to build my first Web 2.0 application built on ASP.NET MVC 2.0.  Complete with accessible forms, Pretty looks, Awesome AJAX that falls back gracefully, etc, etc, etc.</p>
<p>This site will probably be the death of me.  I&#8217;m counting the days until I get hate mail and death threats. The site: Online Bible Queries with social commenting on passages.  Yup, I&#8217;m going to let people discuss, live, the most controversial book ever.  The one book that consistently finishes as the #1 best seller ever year.</p>
<p>So, before I got into the project 3 hours I was writing routes.  Of course, the first basic route was there:</p>
<p><pre class="brush: jscript;">
routes.MapRoute(
&quot;Default&quot;, // Route name
&quot;{controller}/{action}/{id}&quot;, // URL with parameters
new {
controller = &quot;Home&quot;,
action = &quot;Index&quot;,
id = UrlParameter.Optional
} // Parameter defaults
);
</pre></p>
<p>Great, but that didn&#8217;t help me with a Version &#8211; Book &#8211; Chapter &#8211; Verse scenario. Did it?</p>
<p>So, I soon ended up with this:</p>
<p><pre class="brush: jscript;">
routes.MapRoute(
&quot;BibleQuerySearch&quot;,
&quot;{controller}/{Version}/{Book}/{Chapter}/{Verse}&quot;,
new {
controller = &quot;Search&quot;,
action = &quot;Index&quot;,
Version = &quot;King James&quot;,
Book = &quot;Genesis&quot;,
Chapter = UrlParameter.Optional,
Verse = UrlParameter.Optional
} //defaults
 );

</pre></p>
<p>Worked ok, but failed when the url was missing the Chapter and verse.<br />
Moving it above the default route worked, but then it matched EVERYTHING including the /Home/Index, etc.</p>
<p>Making it less greedy did the trick.  I&#8217;ve read alot about not using greedy routes but I didn&#8217;t quite get it until I tried it. Go figure.</p>
<p><pre class="brush: jscript;">
routes.MapRoute( //Route for AJAX that returns JSON Result
&quot;BibleAjaxQuery&quot;,
&quot;Search/Query&quot;,
new {
controller = &quot;Search&quot;,
action = &quot;Query&quot;
 });

 routes.MapRoute( // Route for normal web browsing
&quot;BibleQuerySearch&quot;,
&quot;Search/{Version}/{Book}/{Chapter}/{Verse}&quot;,
new {
controller = &quot;Search&quot;,
action = &quot;Index&quot;,
Version = &quot;King James&quot;,
Book = &quot;Genesis&quot;,
Chapter = UrlParameter.Optional,
Verse = UrlParameter.Optional
} //defaults
 );
</pre></p>
<p>Playing with the routes really helps understand the concepts of not just MVC Routing, but MVC in general.</p>
<p>I&#8217;m sure I&#8217;ll be working on these routes more in the future and no doubt they can be re-factored even more.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=63&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2010/09/19/asp-net-mvc-2-0-routing-first-experimentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>A unique twist in the social networking landscape</title>
		<link>http://dreamsincode.wordpress.com/2010/09/02/a-unique-twist-in-the-social-networking-landscape/</link>
		<comments>http://dreamsincode.wordpress.com/2010/09/02/a-unique-twist-in-the-social-networking-landscape/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 23:58:38 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[Empire Avenue]]></category>
		<category><![CDATA[Fad]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Trends]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=61</guid>
		<description><![CDATA[John Gushue recently wrote about the up and coming social networking site EmpireAvenue.com. I must say I agree with pretty much everything John has to say, including his initial reaction and expectations. There is one I&#8217;d like to add: The basic premise of Empire Avenue isn&#8217;t predicated entirely with spending time on EmpireAvenue.com, but rather [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=61&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>John Gushue recently wrote about the up and coming <a href="http://www.thetelegram.com/Opinion/Columns/2010-09-02/article-1719258/Taking-stock-of-Empire-Avenue/1">social networking site EmpireAvenue.com</a>.</p>
<p>I must say I agree with pretty much everything John has to say, including his initial reaction and expectations. There is one I&#8217;d like to add:</p>
<p>The basic premise of Empire Avenue isn&#8217;t predicated entirely with spending time <em>on</em> EmpireAvenue.com, but rather how much time you spend on <em>other</em> sites, like Facebook, Flickr, twitter and others sure to come.  While John stated this fact, I think it bears more thought.</p>
<p>Most, if not all, social networking sites require you to spend time on them.  Facebook is probably one of the biggest time wasters.  Twitter not so much.</p>
<p>EmpireAvenue simply rates your participation on other sites.  I&#8217;m sure there are those who spend precious little time on EA and still have a climbing &#8220;share&#8221; price.</p>
<p>Personally, I think this will be the factor that determines the success of EA.  I can ignore it for a month but still have people investing in me if I keep my active status in other sites.</p>
<p>So, what do <em>you</em> think?</p>
<p>Is Empire Avenue any different from other social networking sites or just the next fad site in a long list?</p>
<br /> Tagged: <a href='http://dreamsincode.wordpress.com/tag/empire-avenue/'>Empire Avenue</a>, <a href='http://dreamsincode.wordpress.com/tag/fad/'>Fad</a>, <a href='http://dreamsincode.wordpress.com/tag/internet/'>Internet</a>, <a href='http://dreamsincode.wordpress.com/tag/social-networking/'>Social Networking</a>, <a href='http://dreamsincode.wordpress.com/tag/trends/'>Trends</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=61&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2010/09/02/a-unique-twist-in-the-social-networking-landscape/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>MS 70-542 Exam Guide</title>
		<link>http://dreamsincode.wordpress.com/2010/09/01/ms/</link>
		<comments>http://dreamsincode.wordpress.com/2010/09/01/ms/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 00:51:15 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=58</guid>
		<description><![CDATA[Wanted to share this link: The Best 70-542 MOSS 2007 Exam Guide I&#8217;m preparing to write the exam for the Microsoft SharePoint Certification and this information is great. Adam lays out the material exactly as the Exam matrix is presented so prepping should be a snap! &#60;edit for empireavenue.com auth&#62; EAVB_YSTPDUNNUM<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=58&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Wanted to share this link: <a href="http://aroder.blogspot.com/2009/07/best-70-542-moss-2007-exam-guide.html">The Best 70-542 MOSS 2007 Exam Guide </a></p>
<p>I&#8217;m preparing to write the exam for the Microsoft SharePoint Certification and this information is great. Adam lays out the material exactly as the Exam matrix is presented so prepping should be a snap!</p>
<p>&lt;edit for empireavenue.com auth&gt;</p>
<p>EAVB_YSTPDUNNUM</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=58&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2010/09/01/ms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript can play nice with Accessibility</title>
		<link>http://dreamsincode.wordpress.com/2009/08/30/javascript-can-play-nice-with-accessibility/</link>
		<comments>http://dreamsincode.wordpress.com/2009/08/30/javascript-can-play-nice-with-accessibility/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 17:56:23 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=52</guid>
		<description><![CDATA[So, web accessibility is a big topic these days.  And right so! Developing websites that meet W3C Standards and proper accessibility make a better web for everyone.  Now, if we could only get MS, Google, Mozilla, Opera, Safari et al to use ONE, (1), UNO rendering engine we&#8217;d all be happier! But don&#8217;t get me [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=52&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, web accessibility is a big topic these days.  And right so!</p>
<p>Developing websites that meet W3C Standards and proper accessibility make a better web for everyone.  Now, if we could only get MS, Google, Mozilla, Opera, Safari et al to use ONE, (1), UNO rendering engine we&#8217;d all be happier! But don&#8217;t get me started&#8230;..</p>
<p>Ok, so say we have a link, simply pointing to so, page2.html.  The link text is MenuX, and page2.html has a menu list of inner pages.  Fine and dandy, but unnecessary in today&#8217;s world of drop downs, mega menus, etc. Right?????</p>
<p>Wrong I say! This setup is PERFECT for SEO, SEM and every other SE* acronym you want to through around.</p>
<p>Now on to jQuery!</p>
<p><pre class="brush: jscript;">
$(&quot;#mylinkid&quot;).attr(&quot;href&quot;,&quot;#&quot;);
</pre></p>
<p>This will remove the HREF attribute from the link for us.  It is important to note this is done after the browser has loaded with jQuery&#8217;s .ready() function.  Search Engines won&#8217;t parse the JavaScript and hence will follow the original link.  Browsers without JavaScript enabled like Screen Readers and such will follow the original link as well.</p>
<p>Now, we just use</p>
<p><pre class="brush: jscript;">
$(&quot;#mylinkid&quot;).bind('' function() {/*do stuff*/});
</pre></p>
<p>to create our JavaScript enhanced functionality!</p>
<p>I mostly use this for AJAX scripts.  For example, I needed a Calendar Widget for a website. I initially built the widget to use simple html anchors with a post back on each click.  Once that worked, I overrode all that clunky functionality with nice speedy AJAX effects.  Now, JavaScript or no, the calendar works. See <a href="http://www.nso-music.com" target="_blank">http://www.nso-music.com</a> for an example of this functionality.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=52&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2009/08/30/javascript-can-play-nice-with-accessibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
		<item>
		<title>Avoiding split words when truncating text</title>
		<link>http://dreamsincode.wordpress.com/2009/08/21/avoiding-split-words-when-truncating-text/</link>
		<comments>http://dreamsincode.wordpress.com/2009/08/21/avoiding-split-words-when-truncating-text/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 19:18:40 +0000</pubDate>
		<dc:creator>dreamsincode</dc:creator>
				<category><![CDATA[asp]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[mid-word]]></category>
		<category><![CDATA[safeguard]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[truncate]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://dreamsincode.wordpress.com/?p=47</guid>
		<description><![CDATA[In today&#8217;s world of widgets, dashboards and snippets, as programmers we often find ourselves truncating text. I was doing some work on a classic asp website today and noticed the truncating was often mid-word. This was my quick fix. Basically; Look for period after the first 10 characters and if so, use that as our [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=47&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In today&#8217;s world of widgets, dashboards and snippets, as programmers we often find ourselves truncating text.</p>
<p>I was doing some work on a classic asp website today and noticed the truncating was often mid-word.</p>
<p>This was my quick fix.</p>
<p><pre class="brush: jscript;">
&amp;lt;%
	dim sp, txt
	sp  = instr(10, rs(&amp;quot;news_Text&amp;quot;), &amp;quot;.&amp;quot;)
        txt = left(stripHTML(rs(&amp;quot;Text&amp;quot;)),sp)
	if sp  60 then
		sp = instr(50, rs(&quot;Text&quot;), &quot; &quot;)
		if sp &amp;gt; 60 then
			sp = InStrRev(rs(&quot;Text&quot;), &quot; &quot;,70)
		end if
		txt = trim(left(stripHTML(rs(&quot;Text&quot;)),sp)) &amp;amp; &quot;...&quot;
	end if
	response.Write(txt)
%&amp;gt;
</pre></p>
<p>Basically;</p>
<ol>
<li>Look for period after the first 10 characters and if so, use that as our snippet.</li>
<li>If the Period wasn&#8217;t found, or after 60 characters, check for a space (end-of-word) after 50 characters.</li>
<li>If the space is greater than 60 characters, find the first space in reverse, starting at 70 characters.</li>
</ol>
<p>Of course, this still leaves out a few possibilities, but suffices for input that has some relatively safe input validation. It could be beefed up easily with a few more safeguards in terms of 1) no spaces, 2) special characters, 3) check for space after period, e.g a.m or p.m., 4) other requirements based on what kind of text you may be truncating.</p>
<p>Cheers!</p>
<br /> Tagged: asp, mid-word, safeguard, snippet, text, truncate, widget <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamsincode.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamsincode.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamsincode.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamsincode.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamsincode.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamsincode.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamsincode.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamsincode.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamsincode.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamsincode.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamsincode.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamsincode.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamsincode.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamsincode.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamsincode.wordpress.com&amp;blog=6934994&amp;post=47&amp;subd=dreamsincode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamsincode.wordpress.com/2009/08/21/avoiding-split-words-when-truncating-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/097a76ba701c3e8bae097ef9843e5fbd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamsincode</media:title>
		</media:content>
	</item>
	</channel>
</rss>
