<?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>Giselle Hernández - Coldfusion, PHP, &#38; JS &#187; JQuery</title>
	<atom:link href="http://gisellehernandez.com/blog/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://gisellehernandez.com/blog</link>
	<description>&#34;Luck is when preparedness meets opportunity&#34;</description>
	<lastBuildDate>Fri, 24 Feb 2012 04:29:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JQuery plugins I use most</title>
		<link>http://gisellehernandez.com/blog/2009/04/29/jquery-plugins-i-use-most/</link>
		<comments>http://gisellehernandez.com/blog/2009/04/29/jquery-plugins-i-use-most/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 15:33:12 +0000</pubDate>
		<dc:creator>Gigi</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://74.86.61.45/~gigipr/gisellehernandez/blog/?p=99</guid>
		<description><![CDATA[I have been really into JQuery the last few months. Can&#8217;t you tell? ^_^ Their plugins and documentation are amazing. I only wish I could quantify how much development time this framework has saved me. Not only does it reduce development time but it helps with the user experience by allowing manipulation of elements and [...]]]></description>
			<content:encoded><![CDATA[<p>I have been really into JQuery the last few months. Can&#8217;t you tell? ^_^ Their plugins and documentation are amazing. I only wish I could quantify how much development time this framework has saved me. Not only does it reduce development time but it helps with the user experience by allowing manipulation of elements and allowing them to do things like <a href="http://jqueryui.com/demos/draggable/" target="_blank">drag</a> and <a href="http://jqueryui.com/demos/droppable/" target="_blank">drop</a>.</p>
<p>It is important to know that all JQuery plugins are tested for compatibility and currently have been tested in: IE 6.0+, FF 2+, Safari 3.1+, Opera 9.0+, and Google Chrome. You should always test for your target audience. That being said, I have never had the problem of a plugin or function not working properly in modern browsers.</p>
<p>One of my favorite plugins is the <a title="Datepicker" href="http://marcgrabanski.com/pages/code/jquery-ui-datepicker" target="_blank">Datepicker</a>. It is very simple to implement, yet very, <em>very</em> customizable. I have used this plugin in different projects. They look and act so different that if you were to visit each site (to the untrained eye) you could not tell they are the same code base.</p>
<p>Another very useful plugin that I use a lot is the <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" target="_blank">Validate</a> plugin. Again, we have an easy implementation. Use a selector and select your form. Let&#8217;s say we have a form with the ID of  &#8220;myForm&#8221; and we want to ensure that the fields are validated. Just add the following line and that&#8217;s it:</p>
<pre>$("#myForm").validate(); - Simple, uh?</pre>
<blockquote><p>&#8220;A single line of jQuery to select the form and apply the validation plugin. And a bit of metadata on each element to specify the validation rules. Of course that isn&#8217;t the only way to specify rules. You also don&#8217;t have to rely on those default messages, but they come in handy when starting to setup validation for a form.&#8221; &#8211; <a href="http://docs.jquery.com/Plugins/Validation" target="_blank">Validator Documentation</a></p></blockquote>
<p>There are a ton more plugins out there. These are just the ones I use most on my projects.</p>
<p>These, and a <em>lot</em> more of them, can be seen on their <a href="http://jqueryui.com/demos/datepicker/" target="_blank">demo and documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gisellehernandez.com/blog/2009/04/29/jquery-plugins-i-use-most/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentation: Introduction to JQuery</title>
		<link>http://gisellehernandez.com/blog/2009/04/22/presentation-introduction-to-jquery/</link>
		<comments>http://gisellehernandez.com/blog/2009/04/22/presentation-introduction-to-jquery/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:01:01 +0000</pubDate>
		<dc:creator>Gigi</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Presentations]]></category>

		<guid isPermaLink="false">http://gisellehernandez.com/blog/?p=137</guid>
		<description><![CDATA[I made a small presentation today about JQuery. It was meant to help people that haven&#8217;t been exposed to JQuery before get familiar with it. You may view and download the presentation here.]]></description>
			<content:encoded><![CDATA[<p>I made a small presentation today about JQuery. It was meant to help people that haven&#8217;t been exposed to JQuery before get familiar with it.</p>
<p>You may view and download the presentation <strong><a title="Introduction to JQuery" href="http://gisellehernandez.com/blog/wp-content/uploads/2009/04/introtojquery.pdf" target="_blank">here</a></strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gisellehernandez.com/blog/2009/04/22/presentation-introduction-to-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JQuery Datepicker with automatic date range</title>
		<link>http://gisellehernandez.com/blog/2009/03/26/jquery-datepicker-with-automatic-date-range/</link>
		<comments>http://gisellehernandez.com/blog/2009/03/26/jquery-datepicker-with-automatic-date-range/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 09:00:17 +0000</pubDate>
		<dc:creator>Gigi</dc:creator>
				<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://gisellehernandez.com/blog/?p=106</guid>
		<description><![CDATA[I am a huge fan of JQuery&#8217;s datePicker. When I started using it there was no option of having it automatically set the year range based on the current year. This is what I did in order to achieve this: //Add the date picker functionality. The selector is // class based so it works for [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-117 alignright" title="jquery" src="http://gisellehernandez.com/blog/wp-content/uploads/2009/03/jquery.jpg" alt="jquery" width="241" height="91" />I am a huge fan of JQuery&#8217;s datePicker. When I started using it there was no option of having it automatically set the year range based on the current year. This is what I did in order to achieve this:</p>
<p>//Add the date picker functionality. The selector is<br />
// class based so it works for every form screen.<br />
var now = new Date();<br />
var thisYear = now.getYear();<br />
var browser=navigator.appName;</p>
<p>if (browser==&#8221;Microsoft Internet Explorer&#8221;){<br />
var startYear = thisYear &#8211; 70;<br />
var endYear = thisYear + 20;<br />
}<br />
else {<br />
var startYear = thisYear &#8211; 70 + 1900;<br />
var endYear = thisYear + 20 + 1900;<br />
}<br />
$(&#8220;.datePickerControler&#8221;).datepicker({<br />
changeFirstDay: false,<br />
yearRange: + startYear +&#8217;:'+ endYear,<br />
defaultDate: new Date(now)<br />
});</p>
<p>The previous code snippet calculates, based on the current year, 20 years in the future and 70 years in the past. I then pass those values to the date picker to set a year range. You can also set this range by hard-coding it but, who wants to have to go back to their code every year and update the range?</p>
<p>For those unfamiliar with Javascript and/or JQuery I will break down that snippet.</p>
<p>//The Date object is used to work with dates and times. The following code creates  a Date object and saves it in a variable called &#8220;now&#8221;:<br />
<strong>var now = new Date(); </strong><br />
//The getYear() method returns the year, as a two-digit OR a three/four-digit number. Set the &#8220;thisYear&#8221; variable to contain the value of the current year.<br />
<strong>var thisYear = now.getYear();</strong></p>
<p>//Retrieve the user&#8217;s browser info (I will explain why in a second). Save that to a variable called &#8220;browser&#8221;.<br />
<strong>var browser=navigator.appName;</strong></p>
<p>//Now we calculate, based on the current year, 20 years in the future and 70 in the past. Believe it or not, Internet Explorer actually does a spiffy job of interpreting the correct year. In any other browser we need to perform the calculation and then add 1900 in order to get the proper year value. This is why we need to know which browser the user is using. We do a basic if/else statement where we check for the value in the variable &#8220;browser&#8221;.</p>
<p><strong> if (browser==&#8221;Microsoft Internet Explorer&#8221;){<br />
var startYear = thisYear &#8211; 70;<br />
var endYear = thisYear + 20;<br />
}<br />
else {<br />
var startYear = thisYear &#8211; 70 + 1900;<br />
var endYear = thisYear + 20 + 1900;<br />
}</strong></p>
<p>//Now we get into the plugin call itself. We used a class selector for our datePickers so we could reuse them throughout our site.  We take the &#8220;startYear&#8221; and &#8220;endYear&#8221; variables and use them to set the &#8220;yearRange&#8221; property values. We also set the &#8220;defaultDate&#8221; property to default to the current date.</p>
<p><strong> $(&#8220;.datePickerControler&#8221;).datepicker({<br />
yearRange: + startYear +&#8217;:'+ endYear,<br />
defaultDate: new Date(now)<br />
});</strong></p>
<p>That&#8217;s it! We have a datePicker that we set and forget. It will automatically update its date range.<strong><br />
</strong></p>
<p>Note:  I used Jquery&#8217;s UI library version 1.5.3. The new version has more built in options which might render this method of calculation obsolete.</p>
]]></content:encoded>
			<wfw:commentRss>http://gisellehernandez.com/blog/2009/03/26/jquery-datepicker-with-automatic-date-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

