<?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>Sam Beauvois &#187; Web development</title>
	<atom:link href="http://www.sambeauvois.be/blog/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sambeauvois.be/blog</link>
	<description>general dev, .net and other stuff</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:38:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Dynamic is magic : A solution to use the ASP.NET profile in web applications.</title>
		<link>http://www.sambeauvois.be/blog/2012/01/dynamic-is-magic-a-solution-to-use-the-asp-net-profile-in-web-applications/</link>
		<comments>http://www.sambeauvois.be/blog/2012/01/dynamic-is-magic-a-solution-to-use-the-asp-net-profile-in-web-applications/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 13:38:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=926</guid>
		<description><![CDATA[Profiles are not auto generated with Web Applications, so you can’t just add them in the web.config and use them directly. (unless …) The WebSite project do a magic thing : when you add properties to the profile in the web.config file, a class is autogenerated and allow the developer to access these properties. The [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Profiles are not auto generated with Web Applications, so you can’t just add them in the web.config and use them directly. (unless …)</p></blockquote>
<p>The WebSite project do a magic thing : when you add properties to the profile in the web.config file, a class is autogenerated and allow the developer to access these properties. The web application project don&#8217;t do that.</p>
<p>You can find some workarounds over the web, here is some</p>
<ul>
<li><a href="http://weblogs.asp.net/joewrobel/archive/2008/02/03/web-profile-builder-for-web-application-projects.aspx" target="_blank">http://weblogs.asp.net/joewrobel/archive/2008/02/03/web-profile-builder-for-web-application-projects.aspx</a></li>
<li><a href="http://leedumond.com/blog/asp-net-profiles-in-web-application-projects/" target="_blank">http://leedumond.com/blog/asp-net-profiles-in-web-application-projects/</a></li>
<li><a href="http://willmtz.blogspot.com/2011/09/using-aspnet-profile-feature-in-web.html" target="_blank">http://willmtz.blogspot.com/2011/09/using-aspnet-profile-feature-in-web.html</a></li>
<li><a href="http://stackoverflow.com/questions/426609/how-to-assign-profile-values" target="_blank">http://stackoverflow.com/questions/426609/how-to-assign-profile-values</a></li>
</ul>
<p>The &#8220;<a href="http://msdn.microsoft.com/en-us/library/dd264741.aspx" target="_blank">dynamic</a>&#8221; keyword help us here.</p>
<p>So, no more chit chat, here is the code snippets for a profile with 3 parameters : LastName, FirstName and GSM</p>
<p>web.config:</p>
<pre class="brush: xml; title: ;">

&lt;profile enabled=&quot;true&quot;&gt;
 &lt;providers&gt;
 &lt;clear/&gt;
 &lt;add name=&quot;AspNetSqlProfileProvider&quot; type=&quot;System.Web.Profile.SqlProfileProvider&quot; connectionStringName=&quot;ApplicationServices&quot; applicationName=&quot;MyApp&quot;/&gt;
 &lt;/providers&gt;
 &lt;properties&gt;
 &lt;add name=&quot;FirstName&quot; type=&quot;string&quot;/&gt;
 &lt;add name=&quot;LastName&quot; type=&quot;string&quot;/&gt;
 &lt;add name=&quot;GSM&quot; type=&quot;string&quot;/&gt;
 &lt;/properties&gt;
 &lt;/profile&gt;
</pre>
<p>A &#8220;business&#8221; class, I called it &#8220;ProfilePresenter&#8221;, it returns the profile of the logged user and allow modifications:</p>
<pre class="brush: csharp; title: ;">

public class ProfilePresenter
{
 public dynamic GetProfile()
 {
 return HttpContext.Current.Profile;
 }
 public dynamic UpdateProfile(string FirstName, string LastName, string GSM)
 {
 HttpContext.Current.Profile.SetPropertyValue(&quot;FirstName&quot;, FirstName);
 HttpContext.Current.Profile.SetPropertyValue(&quot;LastName&quot;, LastName);
 HttpContext.Current.Profile.SetPropertyValue(&quot;GSM&quot;, GSM);
 HttpContext.Current.Profile.Save();
 return HttpContext.Current.Profile;
 }
}
</pre>
<p>A page that uses the ProfilePresenter class : displaying the profile properties, and edit them</p>
<p>ObjectDataSource:</p>
<pre class="brush: csharp; title: ;">

&lt;asp:ObjectDataSource runat=&quot;server&quot; ID=&quot;ProfileODS&quot; TypeName=&quot;Board.Presenters.ProfilePresenter&quot;
 SelectMethod=&quot;GetProfile&quot; UpdateMethod=&quot;UpdateProfile&quot;/&gt;
&lt;pre&gt;</pre>
<p>FormView: Display part</p>
<pre class="brush: csharp; title: ;">
 &lt;asp:FormView runat=&quot;server&quot; ID=&quot;ProfileFV&quot; DataSourceID=&quot;ProfileODS&quot; RenderOuterTable=&quot;false&quot;&gt;
 &lt;EmptyDataTemplate&gt;
 &lt;p&gt;
 No profil datas
 &lt;/p&gt;
 &lt;/EmptyDataTemplate&gt;
 &lt;ItemTemplate&gt;
 &lt;h2&gt;
 Profil informations&lt;/h2&gt;
 &lt;div&gt;
 &lt;asp:Button runat=&quot;server&quot; ID=&quot;Edit&quot; CommandName=&quot;Edit&quot; Text=&quot;Edit&quot; /&gt;&lt;/div&gt;
 &lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th colspan=&quot;2&quot;&gt;
 Infos
 &lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;th&gt;
 LastName
 &lt;/th&gt;
 &lt;td&gt;
 &lt;%# Eval(&quot;LastName&quot;)%&gt;
 &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;th&gt;
 FirstName
 &lt;/th&gt;
 &lt;td&gt;
 &lt;%# Eval(&quot;FirstName&quot;)%&gt;
 &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;th&gt;
 GSM
 &lt;/th&gt;
 &lt;td&gt;
 &lt;%# Eval(&quot;GSM&quot;)%&gt;
 &lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
 &lt;/table&gt;
 &lt;/ItemTemplate&gt;
</pre>
<p>FormView : the Edit part</p>
<pre class="brush: csharp; title: ;">
 &lt;EditItemTemplate&gt;
 &lt;h2&gt;
 Profil Update&lt;/h2&gt;
 &lt;div&gt;
 &lt;asp:Button runat=&quot;server&quot; ID=&quot;Edit&quot; CommandName=&quot;Cancel&quot; Text=&quot;Annuler&quot; /&gt;
 &lt;asp:Button runat=&quot;server&quot; ID=&quot;Button1&quot; CommandName=&quot;Update&quot; Text=&quot;Sauver&quot; /&gt;&lt;/div&gt;
 &lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th colspan=&quot;2&quot;&gt;
Infos
 &lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;th&gt;
 LastName
 &lt;/th&gt;
 &lt;td&gt;
 &lt;asp:TextBox runat=&quot;server&quot; ID=&quot;LastName&quot; Text='&lt;%# Bind(&quot;LastName&quot;)%&gt;' /&gt;
 &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;th&gt;
 FirstName
 &lt;/th&gt;
 &lt;td&gt;
 &lt;asp:TextBox runat=&quot;server&quot; ID=&quot;FirstName&quot; Text='&lt;%# Bind(&quot;FirstName&quot;)%&gt;' /&gt;
 &lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;th&gt;
 GSM
 &lt;/th&gt;
 &lt;td&gt;
 &lt;asp:TextBox runat=&quot;server&quot; ID=&quot;GSM&quot; Text='&lt;%# Bind(&quot;GSM&quot;)%&gt;' /&gt;
 &lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
 &lt;/table&gt;
 &lt;/EditItemTemplate&gt;
 &lt;/asp:FormView&gt;
</pre>
<p>A simple use :</p>
<pre class="brush: csharp; title: ;">

dynamic profil = HttpContext.Current.Profile;
if (profil != null)
{
 Console.Writeline(profil.GSM);
}
</pre>
<p>Another example : retrieve the gsm numbers from  members of a security role. It shows how to retrieve the profile of an other user</p>
<pre class="brush: csharp; title: ;">

string[] users = Roles.GetUsersInRole(role);

List&lt;string&gt; gsm = new List&lt;string&gt;();
foreach (string user in users)
{
 dynamic profil = HttpContext.Current.Profile;
 dynamic profi = profil.GetProfile(user);
 if (profi != null)
 {
 if (!string.IsNullOrEmpty(profi.GSM))
 {
 gsm.Add(profi.GSM);
 }
 }
}
</pre>
<p>Let me know what you think !</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2012/01/dynamic-is-magic-a-solution-to-use-the-asp-net-profile-in-web-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Cheatsheet</title>
		<link>http://www.sambeauvois.be/blog/2011/03/html5-cheatsheet/</link>
		<comments>http://www.sambeauvois.be/blog/2011/03/html5-cheatsheet/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 11:13:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[WebSites]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=881</guid>
		<description><![CDATA[Ultimate HTML5 Cheatsheat by Tech King Ultimate HTML5 Cheatsheat by Tech King]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;">
<a href="http://www.testking.com/techking/infographics/ultimate-html5-cheatsheat/"  target="_blank">Ultimate HTML5 Cheatsheat</a> by <a href="http://www.testking.com/techking/">Tech King</a><br/><br/><br />
<a target="_blank" title="infographics" href="http://www.testking.com/techking/infographics/ultimate-html5-cheatsheat/"> <img src="http://www.testking.com/techking/wp-content/uploads/2011/02/IG-HTML5-Cheatsheet-600px.png" width="560px" alt="ultimate html5 cheatsheet"></a><br/></p>
<p><a href="http://www.testking.com/techking/infographics/ultimate-html5-cheatsheat/"  target="_blank">Ultimate HTML5 Cheatsheat</a> by <a href="http://www.testking.com/techking/">Tech King</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2011/03/html5-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JS Mixer is released</title>
		<link>http://www.sambeauvois.be/blog/2011/02/js-mixer-is-released/</link>
		<comments>http://www.sambeauvois.be/blog/2011/02/js-mixer-is-released/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 18:29:22 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[MyProjects]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=852</guid>
		<description><![CDATA[CSS mixer is really cool.  Good job.  Is there a JavaScript mixer? It&#8217;s the main content of a mail I received last week. It decided me to write a JS Mixer application, based on CSS Mixer. The big part of the work was already done, I just needed to adapt my code. Just like CSS [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>CSS mixer is really cool.  Good job.  Is there a JavaScript mixer?</p></blockquote>
<p>It&#8217;s the main content of a mail I received last week.</p>
<p>It decided me to write a JS Mixer application, based on CSS Mixer.<br />
The big part of the work was already done, I just needed to adapt my code.</p>
<p>Just like CSS Mixer, you can download it from codeplex :<a href="http://jsmixer.codeplex.com/" target="_blank"> http://jsmixer.codeplex.com/</a></p>
<p>You can also download it from some software websites.</p>
<p><a href="http://www.softpedia.com/get/Programming/Other-Programming-Files/JSMixer.shtml" target="_blank"><img class="alignnone size-full wp-image-858" title="softpedia_free_award_f" src="http://www.sambeauvois.be/blog/wp-content/uploads/2011/02/softpedia_free_award_f.gif" alt="" width="170" height="116" /></a><a href="http://www.softoxi.com/jsmixer.html" target="_blank"><img src="http://www.softoxi.com/images/public/awards/award.png" border="0" alt="JSMixer antivirus scan report at softoxi.com" width="144" height="107" /></a></p>
<p>Remark :</p>
<p>With ASP.NET WebForms, you can achieve the same result by setting a few propertie to the ScriptManager control.</p>
<p>But the advantage to use a tool like JSMixer, is that your server doesn&#8217;t have to do the work : it&#8217;s already done !</p>
<p>And when you spare some work to your server, your server is happy !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2011/02/js-mixer-is-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10+ links for Html5</title>
		<link>http://www.sambeauvois.be/blog/2011/01/10-links-for-html5/</link>
		<comments>http://www.sambeauvois.be/blog/2011/01/10-links-for-html5/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 13:35:37 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=843</guid>
		<description><![CDATA[If you  are interested in HTML5: here is a few links to visit : And here is a presentation of HTML5 made in 2009 by Brad Neuberg (Google) : Introduction to HTML 5 from Brad Neuberg on Vimeo.]]></description>
			<content:encoded><![CDATA[<p>If you  are interested in HTML5: here is a few links to visit :</p>

<!-- Beginning of Link Library Output -->

<div id='linklist6' class='linklist'>
<div class="">
	<table class='linklisttable'>
<p style='display:table;width:100%;'><a href="http://diveintohtml5.org/" id="174" class="track_this_link"  title="HTML Version of the O&#039;reilly book : HTML5 Up and Running" target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://diveintohtml5.org/" alt="Dive Into HTML5" title="HTML Version of the O&#039;reilly book : HTML5 Up and Running" class="alignleft" /></a> <a href="http://diveintohtml5.org/" id="174" class="track_this_link"  title="HTML Version of the O&#039;reilly book : HTML5 Up and Running" target="_blank">Dive Into HTML5</a>
<br/>HTML Version of the O&#039;reilly book : HTML5 Up and Running</p><br/>
<p style='display:table;width:100%;'><a href="http://www.fmbip.com/litmus" id="177" class="track_this_link"  title="Browser support for CSS3 properties,  CSS3 Selectors,  HTML5 Web applications,  HTML5 Graphics &amp; Embedded Content,  HTML5 Audio Codecs,  HTML5 Video Codecs,  HTML5 Forms Inputs,  HTML5 Forms Attributes" target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://www.fmbip.com/litmus" alt="HTML5 &amp; CSS3 Support" title="Browser support for CSS3 properties,  CSS3 Selectors,  HTML5 Web applications,  HTML5 Graphics &amp; Embedded Content,  HTML5 Audio Codecs,  HTML5 Video Codecs,  HTML5 Forms Inputs,  HTML5 Forms Attributes" class="alignleft" /></a> <a href="http://www.fmbip.com/litmus" id="177" class="track_this_link"  title="Browser support for CSS3 properties,  CSS3 Selectors,  HTML5 Web applications,  HTML5 Graphics &amp; Embedded Content,  HTML5 Audio Codecs,  HTML5 Video Codecs,  HTML5 Forms Inputs,  HTML5 Forms Attributes" target="_blank">HTML5 &amp; CSS3 Support</a>
<br/>Browser support for CSS3 properties,  CSS3 Selectors,  HTML5 Web applications,  HTML5 Graphics &amp; Embedded Content,  HTML5 Audio Codecs,  HTML5 Video Codecs,  HTML5 Forms Inputs,  HTML5 Forms Attributes</p><br/>
<p style='display:table;width:100%;'><a href="http://html5boilerplate.com/" id="184" class="track_this_link"  title="HTML5 Boilerplate is the professional badass&#039;s base HTML/CSS/JS template for a fast, robust and future-proof site." target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://html5boilerplate.com/" alt="HTML5 Boilerplate" title="HTML5 Boilerplate is the professional badass&#039;s base HTML/CSS/JS template for a fast, robust and future-proof site." class="alignleft" /></a> <a href="http://html5boilerplate.com/" id="184" class="track_this_link"  title="HTML5 Boilerplate is the professional badass&#039;s base HTML/CSS/JS template for a fast, robust and future-proof site." target="_blank">HTML5 Boilerplate</a>
<br/>HTML5 Boilerplate is the professional badass&#039;s base HTML/CSS/JS template for a fast, robust and future-proof site.</p><br/>
<p style='display:table;width:100%;'><a href="http://html5demos.com/" id="187" class="track_this_link"  title="HTML 5 experimentation and demos hacked together. Click on the browser support icon or the technology tag to filter the demos (the filter is an OR filter)." target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://html5demos.com/" alt="HTML5 Demos and examples" title="HTML 5 experimentation and demos hacked together. Click on the browser support icon or the technology tag to filter the demos (the filter is an OR filter)." class="alignleft" /></a> <a href="http://html5demos.com/" id="187" class="track_this_link"  title="HTML 5 experimentation and demos hacked together. Click on the browser support icon or the technology tag to filter the demos (the filter is an OR filter)." target="_blank">HTML5 Demos and examples</a>
<br/>HTML 5 experimentation and demos hacked together. Click on the browser support icon or the technology tag to filter the demos (the filter is an OR filter).</p><br/>
<p style='display:table;width:100%;'><a href="http://html5doctor.com/" id="175" class="track_this_link"  title="Helping you implement HTML5 today" target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://html5doctor.com/" alt="HTML5 doctor" title="Helping you implement HTML5 today" class="alignleft" /></a> <a href="http://html5doctor.com/" id="175" class="track_this_link"  title="Helping you implement HTML5 today" target="_blank">HTML5 doctor</a>
<br/>Helping you implement HTML5 today</p><br/>
<p style='display:table;width:100%;'><a href="http://html5gallery.com/" id="176" class="track_this_link"  title="A showcase of sites using HTML5 markup" target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://html5gallery.com/" alt="HTML5 gallery" title="A showcase of sites using HTML5 markup" class="alignleft" /></a> <a href="http://html5gallery.com/" id="176" class="track_this_link"  title="A showcase of sites using HTML5 markup" target="_blank">HTML5 gallery</a>
<br/>A showcase of sites using HTML5 markup</p><br/>
<p style='display:table;width:100%;'><a href="http://www.htmlgoodies.com/primers/html/article.php/3917596" id="180" class="track_this_link"  title="HTML5 Geolocation" target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://www.htmlgoodies.com/primers/html/article.php/3917596" alt="HTML5 Geolocation" title="HTML5 Geolocation" class="alignleft" /></a> <a href="http://www.htmlgoodies.com/primers/html/article.php/3917596" id="180" class="track_this_link"  title="HTML5 Geolocation" target="_blank">HTML5 Geolocation</a>
<br/>HTML5 Geolocation</p><br/>
<p style='display:table;width:100%;'><a href="http://ie.microsoft.com/testdrive/" id="185" class="track_this_link"  title="Follow the Progress of the Internet Explorer Developer Platform" target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://ie.microsoft.com/testdrive/" alt="Internet Explorer 9 Test Drive" title="Follow the Progress of the Internet Explorer Developer Platform" class="alignleft" /></a> <a href="http://ie.microsoft.com/testdrive/" id="185" class="track_this_link"  title="Follow the Progress of the Internet Explorer Developer Platform" target="_blank">Internet Explorer 9 Test Drive</a>
<br/>Follow the Progress of the Internet Explorer Developer Platform</p><br/>
<p style='display:table;width:100%;'><a href="http://introducinghtml5.com/" id="179" class="track_this_link"  title="Introducing HTML5 by Bruce Lawson and Remy Sharp" target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://introducinghtml5.com/" alt="Introducing HTML5" title="Introducing HTML5 by Bruce Lawson and Remy Sharp" class="alignleft" /></a> <a href="http://introducinghtml5.com/" id="179" class="track_this_link"  title="Introducing HTML5 by Bruce Lawson and Remy Sharp" target="_blank">Introducing HTML5</a>
<br/>Introducing HTML5 by Bruce Lawson and Remy Sharp</p><br/>
<p style='display:table;width:100%;'><a href="http://www.w3.org/TR/html5-diff/" id="183" class="track_this_link"  title="&quot;HTML5 differences from HTML4&quot; describes the differences between HTML4 and HTML5 and provides some of the rationale for the changes." target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://www.w3.org/TR/html5-diff/" alt="W3C : HTML5 differences from HTML4" title="&quot;HTML5 differences from HTML4&quot; describes the differences between HTML4 and HTML5 and provides some of the rationale for the changes." class="alignleft" /></a> <a href="http://www.w3.org/TR/html5-diff/" id="183" class="track_this_link"  title="&quot;HTML5 differences from HTML4&quot; describes the differences between HTML4 and HTML5 and provides some of the rationale for the changes." target="_blank">W3C : HTML5 differences from HTML4</a>
<br/>&quot;HTML5 differences from HTML4&quot; describes the differences between HTML4 and HTML5 and provides some of the rationale for the changes.</p><br/>
<p style='display:table;width:100%;'><a href="http://www.w3.org/TR/html5/" id="178" class="track_this_link"  title="Latest W3C Working Draft for the html5 specifications " target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://www.w3.org/TR/html5/" alt="W3C html5 specs" title="Latest W3C Working Draft for the html5 specifications " class="alignleft" /></a> <a href="http://www.w3.org/TR/html5/" id="178" class="track_this_link"  title="Latest W3C Working Draft for the html5 specifications " target="_blank">W3C html5 specs</a>
<br/>Latest W3C Working Draft for the html5 specifications </p><br/>
<p style='display:table;width:100%;'><a href="http://caniuse.com/" id="181" class="track_this_link"  title=" Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers. " target="_blank"><img src="http://open.thumbshots.org/image.aspx?url=http://caniuse.com/" alt="When can I use..." title=" Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers. " class="alignleft" /></a> <a href="http://caniuse.com/" id="181" class="track_this_link"  title=" Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers. " target="_blank">When can I use...</a>
<br/> Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers. </p><br/>
	</table>
</div><script type='text/javascript'>
jQuery(document).ready(function()
{
jQuery('a.track_this_link').click(function() {
jQuery.post('http://www.sambeauvois.be/blog/wp-content/plugins/link-library/tracker.php', {id:this.id});
return true;
});
});
</script></div>

<!-- End of Link Library Output -->


<p>And here is a presentation of HTML5 made in 2009 by Brad Neuberg (Google) :</p>
<p><iframe src="http://player.vimeo.com/video/6691519" width="400" height="300" frameborder="0"></iframe>
<p><a href="http://vimeo.com/6691519">Introduction to HTML 5</a> from <a href="http://vimeo.com/user1005914">Brad Neuberg</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2011/01/10-links-for-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A bunch of new releases at Microsoft</title>
		<link>http://www.sambeauvois.be/blog/2011/01/a-bunch-of-new-releases-at-microsoft/</link>
		<comments>http://www.sambeauvois.be/blog/2011/01/a-bunch-of-new-releases-at-microsoft/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 14:37:12 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=838</guid>
		<description><![CDATA[Yesterday was a web tool&#8217;s day : Microsoft released 7 free products for the web developpers. Here is the Scott Guthrie&#8217;s post about it : http://weblogs.asp.net/scottgu/archive/2011/01/13/announcing-release-of-asp-net-mvc-3-iis-express-sql-ce-4-web-farm-framework-orchard-webmatrix.aspx ASP.NET MVC 3 NuGet (codeplex project) IIS Express 7.5 SQL Server Compact Edition 4 Web Deploy and Web Farm Framework 2.0 Orchard 1.0 WebMatrix 1.0 You can install most [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday was a web tool&#8217;s day : Microsoft released 7 free products for the web developpers.</p>
<p>Here is the Scott Guthrie&#8217;s post about it : <a href="http://weblogs.asp.net/scottgu/archive/2011/01/13/announcing-release-of-asp-net-mvc-3-iis-express-sql-ce-4-web-farm-framework-orchard-webmatrix.aspx" target="_blank">http://weblogs.asp.net/scottgu/archive/2011/01/13/announcing-release-of-asp-net-mvc-3-iis-express-sql-ce-4-web-farm-framework-orchard-webmatrix.aspx</a></p>
<p><span style="font-family: arial; font-size: x-small;"></p>
<ul>
<li><a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d2928bc1-f48c-4e95-a064-2a455a22c8f6&amp;displaylang=en" target="_blank">ASP.NET MVC 3 </a></li>
<li><a href="http://nuget.org/" target="_blank">NuGet</a> (<a href="http://nuget.codeplex.com/" target="_blank">codeplex project</a>)</li>
<li>IIS Express 7.5</li>
<li>SQL Server Compact Edition 4</li>
<li>Web Deploy and <a href="http://www.iis.net/download/webfarmframework" target="_blank">Web Farm Framework 2.0 </a></li>
<li><a href="http://orchardproject.net/" target="_blank">Orchard </a>1.0</li>
<li><a href="http://www.asp.net/webmatrix" target="_blank">WebMatrix</a> 1.0</li>
</ul>
<p>You can install most of these products from the </span><a href="http://www.microsoft.com/web/downloads/platform.aspx" target="_blank">Microsoft Web Platform Installer<span style="font-family: arial; font-size: x-small;"> </span></a></p>
<p><span style="font-family: arial; font-size: x-small;"><img class="alignnone size-medium wp-image-840" title="webinstaller" src="http://www.sambeauvois.be/blog/wp-content/uploads/2011/01/webinstaller-480x276.png" alt="" width="480" height="276" /><br />
</span></p>
<p>I already installed webmatrix :</p>
<p><img class="alignnone size-medium wp-image-839" title="webmatrix_installed" src="http://www.sambeauvois.be/blog/wp-content/uploads/2011/01/webmatrix_installed-480x317.png" alt="" width="480" height="317" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2011/01/a-bunch-of-new-releases-at-microsoft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free beta ebook and samples : ASP.NET Web Pages with Razor Syntax</title>
		<link>http://www.sambeauvois.be/blog/2010/12/free-beta-ebook-and-samples-asp-net-web-pages-with-razor-syntax/</link>
		<comments>http://www.sambeauvois.be/blog/2010/12/free-beta-ebook-and-samples-asp-net-web-pages-with-razor-syntax/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 13:06:12 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=771</guid>
		<description><![CDATA[ASP.NET Web Pages with Razor Syntax is a web framework and part of WebMatrix which gives you everything you need to build Web sites using Windows. A free  ebook (it&#8217;s a draft) and the samples are availables on the Microsoft Download Center. Here is the table of contents : Chapter 1 – Getting Started with [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>ASP.NET Web Pages with Razor Syntax is a web framework and part of WebMatrix which gives you everything you need to build Web sites using Windows.</p></blockquote>
<p>A free  ebook (it&#8217;s a draft) and the samples are availables on the<a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e750fc0b-8b8f-46f9-b30f-0ead6f6e538c" target="_blank"> Microsoft Download Center</a>.</p>
<p>Here is the table of contents :</p>
<h4>Chapter 1 – Getting Started with WebMatrix Beta and ASPNET Web Pages 1</h4>
<p>What is WebMatrix Beta?  1<br />
Installing WebMatrix Beta  1<br />
Getting Started with WebMatrix Beta  2<br />
Creating a Web Page  4<br />
Installing Helpers with Package Manager  7<br />
Using ASPNET Web Pages Code  9<br />
Programming ASPNET Razor Pages in Visual Studio  12<br />
Creating and Testing ASPNET Pages Using Your Own Text Editor  13</p>
<h4>Chapter 2 – Introduction to ASPNET Web Programming Using the Razor Syntax  15</h4>
<p>The Top 8 Programming Tips  15<br />
HTML Encoding  16<br />
HTTP GET and POST Methods and the IsPost Property  21<br />
A Simple Code Example  22<br />
Basic Programming Concepts  24<br />
Classes and Instances 25<br />
Language and Syntax  26<br />
Additional Resources  47</p>
<h4>Chapter 3 – Creating a Consistent Look  48</h4>
<p>Creating Reusable Blocks of Content  48<br />
Creating a Consistent Look Using Layout Pages  51<br />
Designing Layout Pages That Have Multiple Content Sections  55<br />
Making Content Sections Optional  58<br />
Passing Data to Layout Pages  59<br />
Creating and Using a Basic Helper  65</p>
<h4>Chapter 4 – Working with Forms  67</h4>
<p>Creating a Simple HTML Form  67<br />
Reading User Input From the Form  68<br />
HTML Encoding for Appearance and Security  70<br />
Validating User Input  71<br />
Restoring Form Values After Postbacks  73<br />
Additional Resources  74</p>
<h4>Chapter 5 – Working with Data  75</h4>
<p>Introduction to Databases  75<br />
Relational Databases  76<br />
Creating a Database  76<br />
Adding Data to the Database  78<br />
Displaying Data from a Database  79<br />
Structured Query Language (SQL) 81<br />
Inserting Data in a Database  82<br />
Updating Data in a Database  86<br />
Deleting Data in a Database  91<br />
Connecting to a Database  95<br />
Additional Resources  96</p>
<h4>Chapter 6: Displaying Data in a Grid  97</h4>
<p>The WebGrid Helper  97<br />
Displaying Data Using the WebGrid Helper 97<br />
Specifying and Formatting Columns to Display  99<br />
Styling the Grid as a Whole  102<br />
Paging Through Data  103</p>
<h4>Chapter 7 – Displaying Data in a Chart  106</h4>
<p>The Chart Helper  106<br />
Chart Elements  107<br />
Creating a Chart from Data  108<br />
&#8220;Using&#8221; Statements and Fully Qualified Names  114<br />
Displaying Charts Inside a Web Page  115<br />
Styling a Chart  116<br />
Saving a Chart  117<br />
Additional Resources  123</p>
<h4>Chapter 8 – Working with Files  124</h4>
<p>Creating a Text File and Writing Data to It  124<br />
Appending Data to an Existing File  127<br />
Reading and Displaying Data from a File  128<br />
Displaying Data from a Microsoft Excel Comma-Delimited File  131<br />
Deleting Files  131<br />
Letting Users Upload a File  133<br />
Letting Users Upload Multiple Files 136<br />
Additional Resources  138</p>
<h4>Chapter 9 – Working with Images  139</h4>
<p>Adding an Image to a Web Page Dynamically  139<br />
Uploading an Image  142<br />
About GUIDs  144<br />
Resizing an Image  144<br />
Rotating and Flipping an Image  147<br />
Adding a Watermark to an Image  148<br />
Using an Image As a Watermark  149</p>
<h4>Chapter 10 – Working with Video  152</h4>
<p>Choosing a Video Player  152<br />
MIME Types  153<br />
Playing Flash (swf) Videos  153<br />
Playing MediaPlayer (wmv) Videos  156<br />
Playing Silverlight Videos  158<br />
Additional Resources  159</p>
<h4>Chapter 11 – Adding Email to Your Website  160</h4>
<p>Sending Email Messages from Your Website  160<br />
Sending a File Using Email  164<br />
Additional Resources  166</p>
<h4>Chapter 12 – Adding Search to Your Website  167</h4>
<p>Searching from Your Website  167<br />
Additional Resources  170</p>
<h4>Chapter 13 – Adding Social Networking to Your Web Site  171</h4>
<p>Linking Your Website on Social Networking Sites  171<br />
Adding a Twitter Feed  172<br />
Rendering a Gravatar Image 174<br />
Displaying an Xbox Gamer Card  175<br />
Displaying a Facebook &#8220;Like&#8221; Button  176</p>
<h4>Chapter 14 – Analyzing Traffic  179</h4>
<p>Tracking Visitor Information (Analytics)  179</p>
<h4>Chapter 15 – Caching to Improve the Performance of Your Website  183</h4>
<p>Caching to Improve Website Responsiveness  183</p>
<h4>Chapter 16 – Adding Security and Membership  186</h4>
<p>Introduction to Website Membership  186<br />
Creating a Website That Has Registration and Login Pages  187<br />
Creating a Members-Only Page  191<br />
Creating Security for Groups of Users (Roles)  192<br />
Creating a Password-Change Page  194<br />
Letting Users Generate a New Password  196<br />
Preventing Automated Programs from Joining Your Website  200</p>
<h4>Chapter 17 – Introduction to Debugging  203</h4>
<p>Using the ServerInfo Helper to Display Server Information  203<br />
Embedding Output Expressions to Display Page Values  205<br />
Using the ObjectInfo Helper to Display Object Values  209<br />
Using Debugging Tools  210<br />
Additional Resources  213</p>
<h4>Chapter 18 – Customizing Site-Wide Behavior  214</h4>
<p>Adding Website Startup Code  214<br />
Running Code Before and After Files in a Folder 218<br />
Creating More Readable and Searchable URLs  224</p>
<h4>Appendix – ASPNET Quick API Reference  227</h4>
<p>Classes  227<br />
Data  233<br />
Helpers  234</p>
<h4>Appendix – ASPNET Web Pages Visual Basic  241</h4>
<p>The Top 8 Programming Tips  241<br />
HTML Encoding  242<br />
A Simple Code Example  248<br />
Visual Basic Language and Syntax  250<br />
Additional Resources  271</p>
<h4>Appendix – Programming ASPNET Web Pages in Visual Studio  272</h4>
<p>Why Use Visual Studio?  272<br />
Installing the ASPNET Razor Tools  272<br />
Using the ASPNET Razor Tools for Visual Studio  273</p>
<h4>Disclaimer  278</h4>
<p>Previous versions of the draft are also <a href="http://www.microsoft.com/downloads/en/results.aspx?freetext=ASP.NET+Web+Pages+with+Razor+Syntax&amp;displaylang=en&amp;stype=s_basic" target="_blank">available</a>.</p>
<p>For the latest informations and more about webmatrix and the Razor syntax, visit <a href="http://www.asp.net/webmatrix/" target="_blank">http://www.asp.net/webmatrix/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/12/free-beta-ebook-and-samples-asp-net-web-pages-with-razor-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Mixer</title>
		<link>http://www.sambeauvois.be/blog/2010/02/css-mixer/</link>
		<comments>http://www.sambeauvois.be/blog/2010/02/css-mixer/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 22:41:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[MyProjects]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=207</guid>
		<description><![CDATA[ Css mixer is a tool I&#8217;ve developped in C# winforms, .NET framework 3.5 You can use it to improve you ASP.NET Themes or your CSS files for all your web projects. If you have many css files linked to a page, you can group them in a single file with CSS Mixer. You can also [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cssmixer.codeplex.com/" target="_blank"><img class="alignleft size-full wp-image-206" title="CSSmixer128" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/CSSmixer128.png" alt="CSSmixer128" width="128" height="128" /></a> Css mixer is a tool I&#8217;ve developped in C# winforms, .NET framework 3.5</p>
<p>You can use it to improve you ASP.NET Themes or your CSS files for all your web projects.</p>
<p>If you have many css files linked to a page, you can group them in a single file with CSS Mixer.</p>
<p>You can also minify CSS files to save the bandwith.</p>
<p> </p>
<p>To use it, open a folder containing CSS files,</p>
<p style="text-align: center;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/cssmixer_screenshot.png" target="_blank"><img class="aligncenter size-full wp-image-208" title="cssmixer_screenshot" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/cssmixer_screenshot.png" alt="cssmixer_screenshot" width="480" /></a></p>
<p>choose an action (simple combine, or combine and minify) then click Save as &#8230;</p>
<p style="text-align: center;"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/cssmixer_screenshot2.png" target="_blank"><img class="aligncenter size-full wp-image-209" title="cssmixer_screenshot2" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/cssmixer_screenshot2.png" alt="cssmixer_screenshot2" width="480" /></a></p>
<p>Download the last version of <a href="http://cssmixer.codeplex.com/" target="_blank">CSS Mixer on codeplex</a>.</p>
<p>I hope you&#8217;ll find it usefull. please give me feedback on it</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/02/css-mixer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build a “visible on hover” action menu with CSS?</title>
		<link>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-css/</link>
		<comments>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-css/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 19:44:41 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=193</guid>
		<description><![CDATA[In my previous post I explain a way to build a &#8220;visible on hover&#8221; menu using jQuery. Now, I&#8217;ll explain you how to do that without javascript, using only CSS. First, built the web page and a CSS file &#60;html&#62; &#60;head&#62; &#60;title&#62;Sam Beauvois &#124; CSS on hover menu&#60;/title&#62; &#60;link href=&#34;demo.css&#34; type=&#34;text/css&#34; rel=&#34;stylesheet&#34; /&#62; &#60;/head&#62; &#60;body&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post I explain a way to <a href="http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-jquery/" target="_blank">build a &#8220;visible on hover&#8221; menu using jQuery</a>.</p>
<p>Now, I&#8217;ll explain you how to do that without javascript, using only CSS.</p>
<p>First, built the web page and a CSS file</p>
<pre class="brush: xml; title: ;">

&lt;html&gt;
 &lt;head&gt;
 &lt;title&gt;Sam Beauvois | CSS on hover menu&lt;/title&gt;
 &lt;link href=&quot;demo.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;
 &lt;/head&gt;

 &lt;body&gt;
 &lt;h2&gt;Visible on hover with CSS demo.&lt;h2&gt;
 &lt;h3&gt;Please put you mouse hover the following texts&lt;/h3&gt;

 &lt;div&gt;
 Demo 1
 &lt;div&gt;
 &lt;a href=&quot;#&quot;&gt;action 1&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 2&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 3&lt;/a&gt;
 &lt;/div&gt;
 &lt;/div&gt;

&lt;/body&gt;
</pre>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_1.png"><img class="aligncenter size-full wp-image-195" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_1.png" alt="20100207_visibleOnHover_CSS_1" width="403" height="278" /></a>Then add a class to the container and content divs</p>
<pre class="brush: xml; title: ;">&lt;/pre&gt;
&lt;div class=&quot;hidden_action_container&quot;&gt;
Demo 1
&lt;div class=&quot;hidden_action&quot;&gt;
&lt;a href=&quot;#&quot;&gt;action 1&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 2&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 3&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;pre&gt;</pre>
<p>And define the classes in the CSS file :</p>
<pre class="brush: css; title: ;">

.hidden_action_container .hidden_action
{
 display: none;
}
.hidden_action_container:hover .hidden_action
{
 display:inline;
}
</pre>
<p>note the class declaration :</p>
<pre>.hidden_action_container<strong><span style="text-decoration: underline;">:hover</span></strong> .hidden_action</pre>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_2.png"><img class="aligncenter size-full wp-image-197" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_2.png" alt="20100207_visibleOnHover_CSS_2" width="378" height="239" /></a><br />
<strong>Now it&#8217;s functionnal</strong>,</p>
<p>Add a style to make it nicer :</p>
<pre class="brush: css; title: ;">
.hidden_action_container
{
 padding : 15px 15px 15px 15px;
 background-color: #DDDDDD;
 border-style:solid;
 border-color:#EEEEEE;
 height:50px;
}

.hidden_action_container .hidden_action a
{
 color:#999999;
 font-size: 20px;
 font-weight:bolder;
}

.hidden_action_container .hidden_action
{
 display: none;
}
.hidden_action_container:hover .hidden_action
{
 display:inline;
}
</pre>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_3.png"><img class="aligncenter size-full wp-image-198" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/20100207_visibleOnHover_CSS_3.png" alt="20100207_visibleOnHover_CSS_3" width="387" height="447" /></a>You can see the online demo here : <a href="http://www.sambeauvois.be/Demos/CSS/VisibleOnHover/demo.html" target="_blank">http://www.sambeauvois.be/Demos/CSS/VisibleOnHover/demo.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to build a &#8220;visible on hover&#8221; action menu with jQuery ?</title>
		<link>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-jquery/</link>
		<comments>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-jquery/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 16:43:35 +0000</pubDate>
		<dc:creator>Sam Beauvois</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.sambeauvois.be/blog/?p=178</guid>
		<description><![CDATA[update 29/11/2010 : please notice that the same functionality could be achieved using css only Here is a quick way to use jQuery library to create a &#8220;visible on hover&#8221; action menu. I&#8217;ll explain step by step how to do that. 1.) Create an html page with actions in a container &#60;html&#62; &#60;head&#62; &#60;title&#62;Sam Beauvois [...]]]></description>
			<content:encoded><![CDATA[<p>update 29/11/2010 : please notice that the same functionality could be achieved <a href="http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-css/" target="_blank">using css only</a></p>
<p>Here is a quick way to use jQuery library to create a &#8220;visible on hover&#8221; action menu.</p>
<p>I&#8217;ll explain step by step how to do that.</p>
<p>1.) Create an html page with actions in a container</p>
<pre class="brush: xml; title: ;">
&lt;html&gt;
 &lt;head&gt;
 &lt;title&gt;Sam Beauvois | jQuery usage demo 1&lt;/title&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;h2&gt;Visible on hover with jQuery demo.&lt;h2&gt;
 &lt;h3&gt;Please put you mouse hover the following texts&lt;/h3&gt;
 &lt;div&gt;
 Demo 1
 &lt;div&gt;
 &lt;a href=&quot;#&quot;&gt;action 1&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 2&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 3&lt;/a&gt;
 &lt;/div&gt;
 &lt;/div&gt;
 &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Result is</p>
<div id="attachment_182" class="wp-caption aligncenter" style="width: 396px"><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/jquery.visible.on_.hover_.demo1_.png"><img class="size-full wp-image-182" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/jquery.visible.on_.hover_.demo1_.png" alt="simple page" width="386" height="276" /></a><p class="wp-caption-text">simple page</p></div>
<p>2.) Link the jquery library (here from google code, but you can download the library at <a href="http://www.jquery.com" target="_blank">jquery.com</a>) and add a css class to the container div and one other to the action div</p>
<pre class="brush: xml; title: ;">

&lt;head&gt;
 &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot; &gt;&lt;/script&gt;
&lt;/head&gt;
</pre>
<pre class="brush: xml; title: ;">
&lt;body&gt;
&lt;div&gt;
 Demo 1
 &lt;div&gt;
 &lt;a href=&quot;#&quot;&gt;action 1&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 2&lt;/a&gt; | &lt;a href=&quot;#&quot;&gt;action 3&lt;/a&gt;
 &lt;/div&gt;
 &lt;/div&gt;
&lt;/body&gt;
</pre>
<p>3.) Add a function :</p>
<pre class="brush: jscript; title: ;">
&lt;script type=&quot;text/javascript&quot;&gt;
 $(document).ready(function()
 {
    ShowActionOnOver();
    $(&quot;.hidden_action&quot;,this).hide(); // hide all
 });

 function ShowActionOnOver()
 {
   $(&quot;.hidden_action_container&quot;).hover(
       function()
       {
          $(&quot;.hidden_action&quot;,this).show();
       },
       function()
       {
           $(&quot;.hidden_action&quot;,this).hide();
        }
    );
 }

 &lt;/script&gt;
</pre>
<p>Now it&#8217;s functionnal, hover the zone to check :</p>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/jquery.visible.on_.hover_.demo2_.png"><img class="aligncenter size-full wp-image-183" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/jquery.visible.on_.hover_.demo2_.png" alt="jquery.visible.on.hover.demo2" width="385" height="242" /></a></p>
<p>4.) Now, add some css to make it nicer :</p>
<pre class="brush: css; title: ;">
.hidden_action_container
{
 padding : 15px 15px 15px 15px;
 background-color: #DDDDDD;
 border-style:solid;
 border-color:#EEEEEE;
 height:50px;
}

.hidden_action a
{
 color:#999999;
 font-size: 20px;
 font-weight:bolder;
}
</pre>
<pre class="brush: xml; title: ;">
&lt;head&gt;
 &lt;link href=&quot;demo.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;
&lt;/head&gt;
</pre>
<p>And the final result looks like</p>
<p><a href="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/jquery.visible.on_.hover_.demo3_.png"><img class="aligncenter size-full wp-image-184" src="http://www.sambeauvois.be/blog/wp-content/uploads/2010/02/jquery.visible.on_.hover_.demo3_.png" alt="jquery.visible.on.hover.demo3" width="386" height="463" /></a></p>
<h3>You can<a href="http://www.sambeauvois.be/Demos/jQuery/VisibleOnHover/demo.html" target="_blank"> see the online demo here.</a></h3>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-css/</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sambeauvois.be/blog/2010/02/how-to-build-a-visible-on-hover-action-menu-with-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

