<?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>Alonso Robles &#187; jQuery</title>
	<atom:link href="http://alonsorobles.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://alonsorobles.com</link>
	<description>technology, academia, and other tidbits from the trenches of a boggled mind</description>
	<lastBuildDate>Wed, 18 Apr 2012 02:48:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>TODO: When Creating a New ASP.NET MVC Project</title>
		<link>http://alonsorobles.com/2012/03/20/todo-when-creating-a-new-asp-net-mvc-project/</link>
		<comments>http://alonsorobles.com/2012/03/20/todo-when-creating-a-new-asp-net-mvc-project/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 14:30:00 +0000</pubDate>
		<dc:creator>Alonso Robles</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MVC 3]]></category>
		<category><![CDATA[TODO]]></category>

		<guid isPermaLink="false">http://alonsorobles.com/?p=346</guid>
		<description><![CDATA[Michael Kennedy put this great little blog post together outlining 9 things we can do when starting a new ASP.NET MVC 3 project. It’s a good starting point since the MVC 3 web application template is already out of date &#8230; <a href="http://alonsorobles.com/2012/03/20/todo-when-creating-a-new-asp-net-mvc-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Michael Kennedy put this great little blog post together outlining <a href="http://blog.michaelckennedy.net/2012/03/07/9-ways-your-brand-new-mvc-project-can-be-better/">9 things we can do when starting a new ASP.NET MVC 3 project</a>. It’s a good starting point since the MVC 3 web application template is already out of date with many things. Here is a quick run down of the things I do and don’t in comparison to his list:</p>
<ol>
<li>Remove the <em>MicrosoftMvc*.js</em> AJAX and validation scripts.</li>
<li>Update NuGet packages… I do things a little differently here. I completely remove the <em>EntityFramework</em> package (I may add it or another ORM back in later, but that ends up usually in a persistence specific project and it is usually a micro ORM). I also remove <em>jQuery Visual Studio 2010 Intellisense</em> package since the contents are bundled with the updated the other jQuery packages anyway. I remove the <em>jQuery UI</em> package (and add it back when I need it). Update the remaining jQuery and Modernizr packages.</li>
<li>Create my own <em>JavaScripts</em> directory to avoid overwrites when updating or installing other JavaScript based packages.</li>
<li>Love this tip! Who doesn’t like intellisense?</li>
<li>Already did this in step 2.</li>
<li>I’m not the sharpest tool in the shed when it comes to CSS. But this tip sounds like a good idea. Wonder if there is a NuGet package for Eric Meyer’s <em>reset.css</em> file?</li>
<li>I skip this step. In my opinion, the only models in my MVC project are view models anyway. So I leave the <em>Models</em> folder in my MVC project alone. If my project requires business models, they get placed in a business logic project. If I have persistence models, they get placed in my persistence project.</li>
<li>Another area where I am not the sharpest tool in the shed. But I do like fast loading pages, so I am going to try this tip out and put all the JavaScript files that I can at the bottom. Just remember that some do need to go at the top.</li>
<li>And yet another tip that I haven’t tried, but plan.</li>
</ol>
<p>As a recap, tips 1, 3, and 4 make perfect sense. Tip 2 also makes sense, but I tweak it to fit my needs and I suggest you do to. I glaze over tip 5 and skip tip 7 because it was either previously addressed or doesn’t fit my needs. Tips 6, 8, and 9 sound like good ideas and I need to try them out.</p>
]]></content:encoded>
			<wfw:commentRss>http://alonsorobles.com/2012/03/20/todo-when-creating-a-new-asp-net-mvc-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery and jCarousel in SharePoint</title>
		<link>http://alonsorobles.com/2009/06/24/jquery-and-jcarousel-in-sharepoint/</link>
		<comments>http://alonsorobles.com/2009/06/24/jquery-and-jcarousel-in-sharepoint/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 18:17:11 +0000</pubDate>
		<dc:creator>Alonso Robles</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Windows Sharepoint Services]]></category>
		<category><![CDATA[jCarousel]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[wss 3.0]]></category>

		<guid isPermaLink="false">http://alonsorobles.com/?p=155</guid>
		<description><![CDATA[I recently had to integrate jCarousel into a SharePoint web part. Since jCarousel is a plugin for jQuery, it means I also had to get jQuery integrated with SharePoint. In order to accomplish this, I followed some good feature packaging &#8230; <a href="http://alonsorobles.com/2009/06/24/jquery-and-jcarousel-in-sharepoint/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently had to integrate <a href="http://sorgalla.com/jcarousel/">jCarousel</a> into a SharePoint web part. Since jCarousel is a plugin for <a href="http://jquery.com/">jQuery</a>, it means I also had to get jQuery integrated with SharePoint. In order to accomplish this, I followed some good feature packaging instructions found from a few different blog posts:</p>
<ul>
<li><a href="http://weblogs.asp.net/gunnarpeipman/archive/2008/12/12/sharepoint-jquery-deployment-feature.aspx">SharePoint jQuery Deployment Feature</a></li>
<li><a href="http://weblogs.asp.net/wesleybakker/archive/2008/12/18/sharepoint-jquery-stay-here-feature.aspx">SharePoint + jQuery = Stay Here Feature</a></li>
<li><a href="http://weblogs.asp.net/wesleybakker/archive/2008/12/16/sharepoint-slideshow-webpart.aspx">SharePoint Slideshow Web Part</a></li>
</ul>
<p>After figuring out how to package jCarousel and jQuery using SharePoint delegate controls, I was ready for business with the implementation of the web part.</p>
<p>The web part itself was nothing fancy. I used a Repeater control to generate the list item (LI) elements with the content I needed in the carousel. I wrapped the Repeater in an unordered list (UL) which was wrapped in a DIV tag that had the runat attribute set to server. So basically, I just followed the mark up instructions provided in the <a href="http://sorgalla.com/projects/jcarousel/#Getting-Started">jCarousel documentation</a>.</p>
<p>The wrapping DIV tag was used in my webpart code to initialize jCarousel. The code snippet below shows how I implemented it:</p>
<pre name="code" class="c-sharp:nogutter:nocontrols">
protected override void OnLoad(EventArgs e)
{
  if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), this.ClientID))
  {
    Page.ClientScript.RegisterStartupScript(this.GetType(), this.ClientID, @"
      &lt;script type=""text/javascript""&gt;
        jQuery(document).ready(function() {
          jQuery('#" + carouselDiv.ClientID + @"').jcarousel({
            // Configuration goes here
            vertical: true,
            scroll: 2,
            visible: 4
          });
        });
      &lt;/script&gt;
    ");
  }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://alonsorobles.com/2009/06/24/jquery-and-jcarousel-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

