<?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>shepherdweb.com &#187; Languages</title>
	<atom:link href="http://shepherdweb.com/category/web-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://shepherdweb.com</link>
	<description>Shane Shepherd: web design and development; music</description>
	<lastBuildDate>Wed, 11 Nov 2009 01:46:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>ASP.NET Membership Provider Web Service</title>
		<link>http://shepherdweb.com/2009/10/31/asp-net-membership-provider-web-service/</link>
		<comments>http://shepherdweb.com/2009/10/31/asp-net-membership-provider-web-service/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 15:48:57 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://shepherdweb.com/?p=176</guid>
		<description><![CDATA[A couple of years ago I was in need of a full featured membership provider provided over web services. I found Shaun Wilde&#8217;s project. Shaun&#8217;s project provided a membership and role provider over web services, but lacked a profile provider. I added the profile provider. I ended up changing directions with the project I was [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of years ago I was in need of a full featured membership provider provided over web services.  I found <a href="http://www.codeproject.com/KB/aspnet/WSSecurityProvider.aspx">Shaun Wilde&#8217;s project</a>.  Shaun&#8217;s project provided a membership and role provider over web services, but lacked a profile provider.  I added the profile provider.  </p>
<p>I ended up changing directions with the project I was working on and this code never got used in production.  Testing on it was minimal and I haven&#8217;t touched it two years.  However, I have received a large number of requests for the code&#8230;so here it is:</p>
<p><a href="http://shepherdweb.com/lab/2009/MembershipAgent/MembershipAgent.zip">ASP.NET 2.0 Web Service Membership, Role, and Profile Provider</a></p>
<p>Feel free to post enhancements or suggestions here.</p>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/asp.net" rel="tag">asp.net</a>, <a href="http://technorati.com/tag/membership+provider" rel="tag"> membership provider</a>, <a href="http://technorati.com/tag/role+provider" rel="tag"> role provider</a>, <a href="http://technorati.com/tag/profile+provider" rel="tag"> profile provider</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2009/10/31/asp-net-membership-provider-web-service/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IE7.js Beta 3</title>
		<link>http://shepherdweb.com/2008/10/26/ie7js-beta-3/</link>
		<comments>http://shepherdweb.com/2008/10/26/ie7js-beta-3/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 15:19:19 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[technology & web]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://shepherdweb.com/?p=170</guid>
		<description><![CDATA[I somehow failed to notice that Dean Edwards&#8217; IE7.js was bumped to beta 3 back in February. IE7.js is a javascript library which, when included in your web page, makes MSIE 5-6 behave like MSIE7. I found it to be extremely useful, particularly when dealing with png images. I&#8217;m looking for a change log to [...]]]></description>
			<content:encoded><![CDATA[<p>I somehow failed to notice that <a href="http://dean.edwards.name/">Dean Edwards&#8217;</a> <a href="http://code.google.com/p/ie7-js/">IE7.js</a> was bumped to beta 3 back in February.  IE7.js is a javascript library which, when included in your web page, makes MSIE 5-6 behave like MSIE7.  I found it to be extremely useful, particularly when dealing with png images.</p>
<p>I&#8217;m looking for a change log to find out what has changed from the original beta version to the beta 3 version.  Does this exist?</p>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/IE7" rel="tag">IE7</a>, <a href="http://technorati.com/tag/MSIE" rel="tag"> MSIE</a>, <a href="http://technorati.com/tag/Internet+Explorer" rel="tag"> Internet Explorer</a>, <a href="http://technorati.com/tag/png" rel="tag"> png</a>, <a href="http://technorati.com/tag/web+standards" rel="tag"> web standards</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2008/10/26/ie7js-beta-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC Presentation Notes</title>
		<link>http://shepherdweb.com/2008/02/20/aspnet-mvc-presentation-notes/</link>
		<comments>http://shepherdweb.com/2008/02/20/aspnet-mvc-presentation-notes/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 02:25:41 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[LDNUG]]></category>
		<category><![CDATA[technology & web]]></category>

		<guid isPermaLink="false">http://shepherdweb.com/2008/02/20/aspnet-mvc-presentation-notes/</guid>
		<description><![CDATA[This post contains notes, links and a .zip of the project I built in my presentation to the Lubbock .NET Users Group. Requirements for this project include the following: ASP.NET 3.5 Framework ASP.NET 3.5 Extensions CTP ASP.NET MVC Toolkit Visual Studio 2008 Sites with Tutorial, Tips, Help, etc.. Scott Guthrie Intro and Tutorials: Intro Part [...]]]></description>
			<content:encoded><![CDATA[<p>This post contains notes, links and a .zip of the project I built in my presentation to the Lubbock .NET Users Group.  Requirements for this project include the following:</p>
<ul>
<li>ASP.NET 3.5 Framework</li>
<li>ASP.NET 3.5 Extensions CTP</li>
<li>ASP.NET MVC Toolkit</li>
<li>Visual Studio 2008</li>
</ul>
<h2>Sites with Tutorial, Tips, Help, etc..</h2>
<ul>
<li>Scott Guthrie Intro and Tutorials:
<ul>
<li><a href="http://http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx">Intro</a></li>
<li><a href="http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx">Part 1</a></li>
<li><a href="http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx">Part 2: URL Routing</a></li>
<li><a href="http://weblogs.asp.net/scottgu/archive/2007/12/06/asp-net-mvc-framework-part-3-passing-viewdata-from-controllers-to-views.aspx">Part 3: Passing ViewData from Controllers to Views</a></li>
<li><a href="http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx">Part 4: Handling from Edit and Post Scenarios</a></li>
</ul>
</li>
<li><a href="http://forums.asp.net/1146.aspx">MVC Forum</a></li>
<li><a href="http://quickstarts.asp.net/3-5-extensions/mvc/default.aspx">MVC Quickstarts</a></li>
<li><a href="http://weblogs.asp.net/mikebosch/archive/tags/MVC/default.aspx">Tips from Mike Bosch</a></li>
<li><a href="http://www.codeproject.com/KB/aspnet/MvcValidatorToolkit.aspx">Creating Client and Server-Side Form Validation</a> (sample project)</li>
<li><a href="http://www.nikhilk.net/Ajax-MVC.aspx">Ajax with the ASP.NET MVC Framework</a></li>
<li><a href="http://weblogs.asp.net/scottgu/archive/2008/02/12/asp-net-mvc-framework-road-map-update.aspx">Roadmap for MVC Framework</a></li>
</ul>
<h2>Sample Project</h2>
<p>The sample project is a very basic issue tracking system.  The database is not included, but can easily be built according to the following diagram:<br />
<a href='http://shepherdweb.com/wp-content/uploads/2008/02/mvc_databasediagram.jpg' title='database diagram'><img src='http://shepherdweb.com/wp-content/uploads/2008/02/mvc_databasediagram.thumbnail.jpg' alt='database diagram' /> <span>(click to view)</span></a></p>
<p>Have fun! <a href="/lab/2008/LDNUG-MVC/LDNUG-MVC.zip">[Download project files]</a> </p>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/ASP.NET" rel="tag">ASP.NET</a>, <a href="http://technorati.com/tag/ASP.NET+MVC" rel="tag"> ASP.NET MVC</a>, <a href="http://technorati.com/tag/ASP.NET+3.5" rel="tag"> ASP.NET 3.5</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2008/02/20/aspnet-mvc-presentation-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bug Report</title>
		<link>http://shepherdweb.com/2007/08/20/bug-report/</link>
		<comments>http://shepherdweb.com/2007/08/20/bug-report/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 16:30:03 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.shepherdweb.com/2007/08/20/bug-report/</guid>
		<description><![CDATA[The test case I published back in April, overflow: auto Allows Focus in Firefox, has been published on PPK&#8216;s Bug Report Blog. The Bug Report is a list of CSS and Javascript bugs including test cases and workarounds. Anyone can report a bug they&#8217;ve found, all that&#8217;s required is that you provide a test page [...]]]></description>
			<content:encoded><![CDATA[<p>The test case I published back in April, <a href="http://shepherdweb.com/lab/2007/FirefoxOverflowBug/"><code>overflow: auto</code> Allows Focus in Firefox</a>, has been <a href="http://www.quirksmode.org/bugreports/archives/2007/08/overflow_auto_with_floats_in_Firefox.html">published</a> on <a href="http://www.quirksmode.org/">PPK</a>&#8216;s <a href="http://www.quirksmode.org/bugreports/">Bug Report Blog</a>.  The Bug Report is a list of CSS and Javascript bugs including test cases and workarounds.  Anyone can <a href="http://www.quirksmode.org/bugreports/bugreport.cgi">report a bug</a> they&#8217;ve found, all that&#8217;s required is that you provide a test page which demonstrates the behavior you&#8217;ve discovered.  It is advisable to search the current database before submitting a bug report to make sure someone else has not already documented it. Thank you PPK for hosting and managing this list.</p>
<p>More demos and tutorials can be found in the <a href="http://shepherdweb.com/laboratory/">laboratory</a>.</p>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/PPK" rel="tag">PPK</a>, <a href="http://technorati.com/tag/Bug+Report" rel="tag"> Bug Report</a>, <a href="http://technorati.com/tag/CSS" rel="tag"> CSS</a>, <a href="http://technorati.com/tag/Firefox" rel="tag"> Firefox</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2007/08/20/bug-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Fitness</title>
		<link>http://shepherdweb.com/2007/06/07/javascript-fitness/</link>
		<comments>http://shepherdweb.com/2007/06/07/javascript-fitness/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 01:11:17 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.shepherdweb.com/2007/06/07/javascript-fitness/</guid>
		<description><![CDATA[Since January I&#8217;ve struggled with the drive to eat healthier and exercise. My wife and I took up tennis lessons in April, and it was immediately apparent that the running required to survive a lesson was almost beyond me. A good friend recommended the Couch-to-5K Running Plan. I thought this was a good plan, but [...]]]></description>
			<content:encoded><![CDATA[<p>Since January I&#8217;ve struggled with the drive to eat healthier and exercise.  My wife and I took up tennis lessons in April, and it was immediately apparent that the running required to survive a lesson was almost beyond me.  A good friend recommended the <a href="http://www.coolrunning.com/engine/2/2_3/181.shtml">Couch-to-5K Running Plan</a>.  I thought this was a good plan, but was disappointed with the lack of any easy way to track my progress.  With this need in mind, I recreated the plan and with the addition of some basic progress tracking.</p>
<p>The idea is simple; each step of the plan has a check box.  As you complete a step, you check the box.  A cookie is saved in your browser&#8230;the next time you open the page it remembers what you&#8217;ve already checked&#8230;no database required!  Take a look at the <a href="http://shepherdweb.com/lab/2007/Couch-to-5K/Couch-to-5K.html">demo</a>.</p>
<p>If you like it, help yourself.  Feel free to download it, modify it, borrow it, or whatever.  All the code is visible via <cmd>view source</cmd>.   Here&#8217;s a <a href="http://shepherdweb.com/lab/2007/Couch-to-5K/Couch-to-5K.zip">zipped version</a>, if you&#8217;d rather download it.</p>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/Javascript" rel="tag">Javascript</a>, <a href="http://technorati.com/tag/cookies" rel="tag"> cookies</a>, <a href="http://technorati.com/tag/Couch-to-5K" rel="tag"> Couch-to-5K</a>, <a href="http://technorati.com/tag/fitness" rel="tag"> fitness</a>, <a href="http://technorati.com/tag/running" rel="tag"> running</a>, <a href="http://technorati.com/tag/health" rel="tag"> health</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2007/06/07/javascript-fitness/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Undefined index: action in /cake/dispatcher.php line 144</title>
		<link>http://shepherdweb.com/2007/04/02/undefined-index-action-in-cakedispatcherphp-line-144/</link>
		<comments>http://shepherdweb.com/2007/04/02/undefined-index-action-in-cakedispatcherphp-line-144/#comments</comments>
		<pubDate>Tue, 03 Apr 2007 02:32:07 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.shepherdweb.com/2007/04/02/undefined-index-action-in-cakedispatcherphp-line-144/</guid>
		<description><![CDATA[It took me almost an hour to figure out what was causing this error. Undefined index: action in /cake/dispatcher.php line 144 The problem turned out to be that one of the values in $property["Listing"] was returning a value which included a space. Something like this: &#8220;396 &#8220;. Since the requestAction method uses a URL to [...]]]></description>
			<content:encoded><![CDATA[<p>It took me almost an hour to figure out what was causing this error.</p>
<blockquote><p>Undefined index: action in /cake/dispatcher.php line 144</p>
</blockquote>
<p><code class="block"><?php<br />
$aInfo = $this->requestAction('/tours/GetAgentInfo/' . $property["Listing"]["agent"] . '/' . $property["Listing"]["listingoffice"]);<br />
?></code></p>
<p>The problem turned out to be that one of the values in <code>$property["Listing"]</code> was returning a value which included a <kbd>space</kbd>.  Something like this: &#8220;396 &#8220;.  Since the <code>requestAction</code> method uses a URL to get it&#8217;s parameters, it was bombing when the URL looked like this: &#8216;/tours/GetAgentInfo/396 /94&#8242;.  I used the php <code>trim()</code> function to remove spaces, and presto&hellip; problem solved!</p>
<p><code class="block"><?php<br />
$aInfo = $this->requestAction('/tours/GetAgentInfo/' . trim($property["Listing"]["agent"]) . '/' . trim($property["Listing"]["listingoffice"]));<br />
?></code></p>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/CakePHP" rel="tag">CakePHP</a>, <a href="http://technorati.com/tag/PHP" rel="tag"> PHP</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2007/04/02/undefined-index-action-in-cakedispatcherphp-line-144/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Select Element Z-index Ignored by IE 6 &#8211; Workaround</title>
		<link>http://shepherdweb.com/2007/02/14/z-index-ignored-for-select-element-in-ie-6-workaround/</link>
		<comments>http://shepherdweb.com/2007/02/14/z-index-ignored-for-select-element-in-ie-6-workaround/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 20:31:15 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.shepherdweb.com/2007/02/14/z-index-ignored-for-select-element-in-ie-6-workaround/</guid>
		<description><![CDATA[IE 6 will continue to be a problem for web developers for a while longer. Statistics for this site show that even though IE 7 has been out for several months, 30% of my visitors still use IE6. IE 7 is climbing fast (currently at 22%), but still has a ways to go before IE [...]]]></description>
			<content:encoded><![CDATA[<p>IE 6 will continue to be a problem for web developers for a while longer.  Statistics for this site show that even though IE 7 has been out for several months, 30% of my visitors still use IE6.  IE 7 is climbing fast (currently at 22%), but still has a ways to go before IE 6 moves into irrelevance.  I also suspect that the topics of my site draw more Firefox and Safari users than is typical on the  rest of the web.</p>
<p>I recently discovered this workaround for a scenario that is new to me.  Apparently this is a common problem.  However, being a developer who in the past has used little (if any) javascript in to build sites, I had not encountered it before.  </p>
<p>The bug, present in <abbr title="Internet Explorer">IE</abbr> 6 and below, is manifested when a positioned block should cover a <code>select</code> element in another layer.  This could occur easily with a dropdown menu or a popup layer that need to open over a form containing a <code>select</code> element.  The easiest way around this is to position the conflicting elements so that they do not interfere with each other.  However, if this is not possible, there is a workaround using the <code>iframe</code> element and IE conditional comments.</p>
<p><ins datetime="2/14/07 2:45pm"></p>
<p><a class="imagelink" href="http://www.shepherdweb.com/wp-content/uploads/2007/02/ie6-selectelement.jpg" title="IE 6 Screenshot"><img id="image122" src="http://www.shepherdweb.com/wp-content/uploads/2007/02/ie6-selectelement.thumbnail.jpg" alt="IE 6 Screenshot" /></a> IE 6 Screenshot &#8211; demonstrating the bug.  Shows two <code>select</code> elements poking through the positioned layer.</p>
<p><a class="imagelink" href="http://www.shepherdweb.com/wp-content/uploads/2007/02/ff-selectelement.jpg" title="Firefox Screenshot"><img id="image123" src="http://www.shepherdweb.com/wp-content/uploads/2007/02/ff-selectelement.thumbnail.jpg" alt="Firefox Screenshot" /></a> Firefox 2.0 Screenshot &#8211; the way it should be.  Shows the one <code>select</code> element that is actually in the positioned layer.  The two below it are hidden by the layer&#8217;s light-blue background.</p>
<p></ins></p>
<p>A few seconds of <a href="http://www.google.com/search?q=select+element+z-index+&#038;ie=utf-8&#038;oe=utf-8&#038;rls=org.mozilla:en-US:official&#038;client=firefox-a">Googling</a> turned up the following useful links:</p>
<ul>
<li><a href="http://www.hedgerwow.com/360/bugs/css-select-free.html">&lt;SELECT&gt; Free Layer</a></li>
<li><a href="http://throbs.net/web/articles/IE-SELECT-bugs/">SELECT elements ignore Z-index (&#8220;windowed element&#8221; problem)</a> (see bug #4)</li>
<li><a href="http://support.microsoft.com/kb/177378">How the Z-index Attribute Works for HTML Elements</a></li>
</ul>
<p>The first link offered a useful solution which I am abbreviating here:</p>
<p><code class="block">#popup iframe<br />
		{<br />
			display:none;/*sorry for IE5*/<br />
			display/**/:block;/*sorry for IE5*/<br />
			position:absolute;/*must have*/<br />
			top:0;/*must have*/<br />
			left:0;/*must have*/<br />
			z-index:-1;/*must have*/<br />
			filter:mask();/*must have*/<br />
			width: 100%;/*must have for any big value*/<br />
			height: 100%;/*must have for any big value*/;<br />
		}</code></p>
<p>In the linked example <code>width</code> and <code>height</code> are both set to <code>3000px</code>.  I found that it worked better for me to use <code>100%</code> instead since the former caused unnecessary scrollbars to appear on the page.</p>
<p><code class="block">	&lt;div id=&quot;bd&quot;&gt;<br />
		&lt;h1&gt;select element z-index workaround&lt;/h1&gt;<br />
		&lt;div class=&quot;parameter&quot;&gt;<br />
			&lt;label for=&quot;ddTest&quot;&gt;Test&lt;/label&gt;<br />
			&lt;select id=&quot;ddTest&quot;&gt;<br />
				&lt;option&gt;&amp;hellip;&lt;/option&gt;<br />
				&lt;option&gt;pick me&lt;/option&gt;<br />
			&lt;/select&gt;<br />
		&lt;/div&gt;<br />
	&lt;/div&gt;<br />
	&lt;div id=&quot;popup&quot;&gt;<br />
		Is the select element poking through?  It shouldn't be!<br />
		&lt;!--[if lte IE 6.5]&gt;&lt;iframe&gt;&lt;/iframe&gt;&lt;![endif]--&gt;<br />
	&lt;/div&gt;</code></p>
<p>Download the demo code: <a id="p121" rel="attachment" href="http://www.shepherdweb.com/2007/02/14/z-index-ignored-for-select-element-in-ie-6-workaround/select-element-z-index-workaround/" title="Select Element Z-index Workaround">Select Element Z-index Workaround Code</a></p>
<div class="techtags"><p>Technorati Tags: <a href="http://technorati.com/tag/IE" rel="tag">IE</a>, <a href="http://technorati.com/tag/select" rel="tag"> select</a>, <a href="http://technorati.com/tag/z-index" rel="tag"> z-index</a>, <a href="http://technorati.com/tag/CSS" rel="tag"> CSS</a>, <a href="http://technorati.com/tag/Internet+Explorer" rel="tag"> Internet Explorer</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://shepherdweb.com/2007/02/14/z-index-ignored-for-select-element-in-ie-6-workaround/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

