<?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>Marius&#039; Blog &#187; JavaScript jQuery</title>
	<atom:link href="http://mariuscristiandonea.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://mariuscristiandonea.com</link>
	<description>A collection of code samples I use for my work ... and my work.</description>
	<lastBuildDate>Sat, 02 Jul 2011 09:35:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Thumbnail Gallery (WordPress Plugin)</title>
		<link>http://mariuscristiandonea.com/2011/06/17/thumbnail-gallery-wordpress-plugin/</link>
		<comments>http://mariuscristiandonea.com/2011/06/17/thumbnail-gallery-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 07:05:54 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=442</guid>
		<description><![CDATA[Description: This Plugin will help you to easily add a thumbnail gallery to your WordPress website or blog. The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones). You will be able to insert it in any page or post you want with inbuilt short code [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://codecanyon.net/item/thumbnail-gallery-wordpress-plugin/294024?ref=MariusCristianDonea" target="_blank"><img class="post-image" title="Thumbnail Gallery (WordPress Plugin)" src="http://mariuscristiandonea.com/wp-content/uploads/2011/06/thumbnail-gallery-wordpress.png" alt="Thumbnail Gallery (WordPress Plugin)" width="460" height="345" /></a></p>
<p><strong>Description:</strong> This Plugin will help you to easily add a thumbnail gallery to your WordPress website or blog. The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones). You will be able to insert it in any page or post you want with inbuilt<br />
short code generator.<br />
<strong>Download &amp; Preview:</strong> <a title="CodeCanyon" href="http://codecanyon.net/item/thumbnail-gallery-wordpress-plugin/294024?ref=MariusCristianDonea" target="_blank">CodeCanyon</a><br />
<strong>Technologies: </strong>AJAX, CSS, HTML, JavaScript, jQuery, PHP, WordPress</p>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/06/17/thumbnail-gallery-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wall/Grid Gallery (WordPress Plugin)</title>
		<link>http://mariuscristiandonea.com/2011/06/14/wallgrid-gallery-wordpress-plugin/</link>
		<comments>http://mariuscristiandonea.com/2011/06/14/wallgrid-gallery-wordpress-plugin/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 10:04:11 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress Plugin]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=438</guid>
		<description><![CDATA[Description: This Plugin will help you to easily add a grid gallery to your WordPress website or blog. The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones). You will be able to insert it in any page or post you want with inbuilt short code [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://codecanyon.net/item/wallgrid-gallery-wordpress-plugin/270895?ref=MariusCristianDonea" target="_blank"><img class="post-image" title="Wall/Grid Gallery (WordPress Plugin)" src="http://mariuscristiandonea.com/wp-content/uploads/2011/06/wall-grid-gallery-wordpress.png" alt="Wall/Grid Gallery (WordPress Plugin)" width="460" height="345" /></a></p>
<p><strong>Description:</strong> This Plugin will help you to easily add a grid gallery to your WordPress website or blog. The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones). You will be able to insert it in any page or post you want with inbuilt short code generator.<br />
<strong>Download &amp; Preview:</strong> <a title="CodeCanyon" href="http://codecanyon.net/item/wallgrid-gallery-wordpress-plugin/270895?ref=MariusCristianDonea" target="_blank">CodeCanyon</a><br />
<strong>Technologies: </strong>AJAX, CSS, HTML, JavaScript, jQuery, PHP, WordPress</p>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/06/14/wallgrid-gallery-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Booking Calendar Pro (jQuery Plugin)</title>
		<link>http://mariuscristiandonea.com/2011/05/30/ajax-booking-calendar-pro-jquery-plugin/</link>
		<comments>http://mariuscristiandonea.com/2011/05/30/ajax-booking-calendar-pro-jquery-plugin/#comments</comments>
		<pubDate>Mon, 30 May 2011 08:20:57 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript jQuery]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=435</guid>
		<description><![CDATA[Description: This item is ideal if you want to add information about bookings to your rentals website. The Back End is easy to use and can be easily integrated into your own CMS as the Front End can be easily integrated into your website. Both Back End and Front End can be customized separately, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://codecanyon.net/item/ajax-booking-calendar-pro-jquery-plugin/244645?ref=MariusCristianDonea"><img class="post-image" title="AJAX Booking Calendar Pro" src="http://mariuscristiandonea.com/wp-content/uploads/2011/05/booking-calendar-jquery.png" alt="" width="460" height="345" /></a></p>
<p><strong>Description:</strong> This item is ideal if you want to add information about bookings to your rentals website. The Back End is easy to use and can be easily integrated into your own CMS as the Front End can be easily integrated into your website. Both Back End and Front End can be customized separately, and the number of usages on your webpage or website is unlimited.<br />
The Calendar comes with a PHP script, but any server side script can be used to load or to save data from any database. The Booking Calendar is compatible with all browsers and devices (iPhone, iPad and Android smartphones).<br />
<strong>Download &amp; Preview:</strong> <a title="CodeCanyon" href="http://codecanyon.net/item/ajax-booking-calendar-pro-jquery-plugin/244645?ref=MariusCristianDonea" target="_blank">CodeCanyon</a><br />
<strong>Technologies: </strong>AJAX, CSS, HTML, JavaScript, jQuery</p>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/05/30/ajax-booking-calendar-pro-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Image Loader (jQuery Plugin)</title>
		<link>http://mariuscristiandonea.com/2011/05/11/image-loader-jquery-plugin/</link>
		<comments>http://mariuscristiandonea.com/2011/05/11/image-loader-jquery-plugin/#comments</comments>
		<pubDate>Wed, 11 May 2011 07:09:00 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript jQuery]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=426</guid>
		<description><![CDATA[This jQuery Plugin is ideal to load, preload, resize … the images on your website. The Plugin is compatible with all browsers and devices (iPhone, iPad and Android smartphones).]]></description>
			<content:encoded><![CDATA[<p><a href="http://codecanyon.net/item/image-loader-jquery-plugin/238077?ref=MariusCristianDonea" target="_blank"><img class="post-image" title="Image Loader (jQuery Plugin)" src="http://mariuscristiandonea.com/wp-content/uploads/2011/05/image-loader-jquery.png" alt="Image Loader (jQuery Plugin)" width="460" height="345" /></a></p>
<p><strong>Description:</strong> This jQuery Plugin is ideal to load, preload, resize … the images on your website. The Plugin is compatible with all browsers and devices (iPhone, iPad and Android smartphones).<br />
<strong>Download &amp; Preview:</strong> <a title="CodeCanyon" href="http://codecanyon.net/item/image-loader-jquery-plugin/238077?ref=MariusCristianDonea" target="_blank">CodeCanyon</a><br />
<strong>Technologies: </strong>CSS, HTML, JavaScript, jQuery</p>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/05/11/image-loader-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thumbnail Scroller (jQuery Plugin / XML)</title>
		<link>http://mariuscristiandonea.com/2011/03/16/thumbnail-scroller-jquery-plugin-xml/</link>
		<comments>http://mariuscristiandonea.com/2011/03/16/thumbnail-scroller-jquery-plugin-xml/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 06:06:01 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript jQuery]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=400</guid>
		<description><![CDATA[This jQuery Plugin is ideal if you need a fast and very customizable Thumbnail Scroller. The scroller is completely editable from a XML file, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).]]></description>
			<content:encoded><![CDATA[<p><a href="http://codecanyon.net/item/thumbnail-scroller-jquery-plugin-xml/168867?ref=MariusCristianDonea" target="_blank"><img class="post-image" title="Thumbnail Scroller (jQuery Plugin / XML)" src="http://mariuscristiandonea.com/wp-content/uploads/2011/03/thumbnail-scroller-jquery.png" alt="Thumbnail Scroller (jQuery Plugin / XML)" width="460" height="345" /></a></p>
<p><strong>Description:</strong> This jQuery Plugin is ideal if you need a fast and very customizable Thumbnail Scroller. The scroller is completely editable from a XML file, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).<br />
<strong>Download &amp; Preview:</strong> <a title="CodeCanyon" href="http://codecanyon.net/item/thumbnail-scroller-jquery-plugin-xml/168867?ref=MariusCristianDonea" target="_blank">CodeCanyon</a><br />
<strong>Technologies: </strong>CSS, HTML, JavaScript, jQuery</p>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/03/16/thumbnail-scroller-jquery-plugin-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thumbnail Gallery (jQuery Plugin / XML)</title>
		<link>http://mariuscristiandonea.com/2011/03/03/thumbnail-gallery-jquery-plugin-xml/</link>
		<comments>http://mariuscristiandonea.com/2011/03/03/thumbnail-gallery-jquery-plugin-xml/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 08:40:10 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript jQuery]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=396</guid>
		<description><![CDATA[A very customizable jQuery Plugin Thumbnail Gallery, that can be edited from a XML file. The gallery is completely resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).]]></description>
			<content:encoded><![CDATA[<p><a href="http://codecanyon.net/item/thumbnail-gallery-jquery-plugin-xml/164050?ref=MariusCristianDonea" target="_blank"><img class="post-image" title="Thumbnail Gallery (jQuery Plugin / XML)" src="http://mariuscristiandonea.com/wp-content/uploads/2011/02/thumbnail-gallery-jquery.png" alt="Thumbnail Gallery (jQuery Plugin / XML)" width="460" height="345" /></a></p>
<p><strong>Description:</strong> A very customizable jQuery Plugin Thumbnail Gallery, that can be edited from a XML file. The gallery is completely resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).<br />
<strong>Download &amp; Preview:</strong> <a title="CodeCanyon" href="http://codecanyon.net/item/thumbnail-gallery-jquery-plugin-xml/164050?ref=MariusCristianDonea" target="_blank">CodeCanyon</a><br />
<strong>Technologies: </strong>CSS, HTML, JavaScript, jQuery</p>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/03/03/thumbnail-gallery-jquery-plugin-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wall/Grid Gallery (jQuery Plugin / XML)</title>
		<link>http://mariuscristiandonea.com/2011/02/20/wallgrid-gallery-jquery-plugin-xml/</link>
		<comments>http://mariuscristiandonea.com/2011/02/20/wallgrid-gallery-jquery-plugin-xml/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 13:30:14 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript jQuery]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=381</guid>
		<description><![CDATA[A very customizable jQuery Plugin Gallery, that can be edited from a XML file. The gallery is completely resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).]]></description>
			<content:encoded><![CDATA[<p><a href="http://codecanyon.net/item/wallgrid-gallery-jquery-plugin-xml/161458?ref=MariusCristianDonea" target="_blank"><img class="post-image" title="Wall/Grid Gallery (jQuery Plugin / XML)" src="http://mariuscristiandonea.com/wp-content/uploads/2011/02/wall-grid-gallery-jquery1.png" alt="Wall/Grid Gallery (jQuery Plugin / XML)" width="460" height="345" /></a></p>
<p><strong>Description:</strong> A very customizable jQuery Plugin Gallery, that can be edited from a XML file. The gallery is completely resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).<br />
<strong>Download &amp; Preview:</strong> <a title="CodeCanyon" href="http://codecanyon.net/item/wallgrid-gallery-jquery-plugin-xml/161458?ref=MariusCristianDonea" target="_blank">CodeCanyon</a><br />
<strong>Technologies: </strong>CSS, HTML, JavaScript, jQuery</p>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/02/20/wallgrid-gallery-jquery-plugin-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karisma Sportwear</title>
		<link>http://mariuscristiandonea.com/2011/01/29/karisma-sportwear/</link>
		<comments>http://mariuscristiandonea.com/2011/01/29/karisma-sportwear/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 15:54:21 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[eCommerce]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript jQuery]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=371</guid>
		<description><![CDATA[Karisma Sportwear store.]]></description>
			<content:encoded><![CDATA[<p>[nggallery id=5 template=slideshow]</p>
<p><strong>Description:</strong> Karisma Sportwear store.<br />
<strong>Website:</strong> <a title="Karisma Sportwear" href="http://www.karismasport.com/" target="_blank">http://www.karismasport.com/</a><br />
<strong>Design:</strong> <a title="2Mediax" href="http://www.2mediax.com/" target="_blank">2Mediax</a><br />
<strong>Developed for:</strong> <a title="Vuzum" href="http://www.vuzum.com/" target="_blank">Vuzum</a><br />
<strong>Technologies: </strong>AJAX, CSS, HTML, JavaScript, jQuery, PHP</p>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/01/29/karisma-sportwear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create, modify and read a Cookie with JavaScript</title>
		<link>http://mariuscristiandonea.com/2011/01/27/create-modify-and-read-a-cookie-with-javascript/</link>
		<comments>http://mariuscristiandonea.com/2011/01/27/create-modify-and-read-a-cookie-with-javascript/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 21:54:26 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[JavaScript jQuery]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=367</guid>
		<description><![CDATA[The first function creates or modifies a cookie. The second one returns the value of a cookie.]]></description>
			<content:encoded><![CDATA[<p>The first function creates or modifies a cookie. The second one returns the value of a cookie.</p>
<p><strong>JavaScript code:</strong></p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;">setCookie<span class="br0">&#40;</span><span class="st0">&quot;MyCookie&quot;</span><span class="sy0">,</span> <span class="st0">&quot;jump&quot;</span><span class="sy0">,</span> 7<span class="br0">&#41;</span><span class="sy0">;</span> <span class="co1">// The Cookie &quot;MyCookie&quot; has the value &quot;jump&quot; and expires in 7 days.</span></p>
<p><span class="kw2">function</span> setCookie<span class="br0">&#40;</span>c_name<span class="sy0">,</span> value<span class="sy0">,</span> expiredays<span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw2">var</span> exdate <span class="sy0">=</span> <span class="kw2">new</span> Date<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; exdate.<span class="me1">setDate</span><span class="br0">&#40;</span>exdate.<span class="me1">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">+</span>expiredays<span class="br0">&#41;</span><span class="sy0">;</span></p>
<p>&nbsp; &nbsp; document.<span class="me1">cookie</span> <span class="sy0">=</span> c_name<span class="sy0">+</span><span class="st0">&quot;=&quot;</span><span class="sy0">+</span>escape<span class="br0">&#40;</span>value<span class="br0">&#41;</span><span class="sy0">+</span><span class="br0">&#40;</span><span class="br0">&#40;</span>expiredays<span class="sy0">==</span><span class="kw2">null</span><span class="br0">&#41;</span> <span class="sy0">?</span> <span class="st0">&quot;&quot;</span> <span class="sy0">:</span> <span class="st0">&quot;;expires=&quot;</span><span class="sy0">+</span>exdate.<span class="me1">toUTCString</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div>
</div>
<p><strong>JavaScript code:</strong></p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;">readCookie<span class="br0">&#40;</span><span class="st0">&quot;MyCookie&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="co1">// Returns value &quot;jump&quot;.</span></p>
<p><span class="kw2">function</span> readCookie<span class="br0">&#40;</span><span class="kw3">name</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw2">var</span> nameEQ <span class="sy0">=</span> <span class="kw3">name</span> <span class="sy0">+</span> <span class="st0">&quot;=&quot;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw2">var</span> ca <span class="sy0">=</span> document.<span class="me1">cookie</span>.<span class="me1">split</span><span class="br0">&#40;</span><span class="st0">&quot;;&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">for</span><span class="br0">&#40;</span><span class="kw2">var</span> i<span class="sy0">=</span><span class="nu0">0</span><span class="sy0">;</span>i <span class="sy0">&lt;</span> ca.<span class="me1">length</span><span class="sy0">;</span>i<span class="sy0">++</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> c <span class="sy0">=</span> ca<span class="br0">&#91;</span>i<span class="br0">&#93;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">while</span> <span class="br0">&#40;</span>c.<span class="me1">charAt</span><span class="br0">&#40;</span><span class="nu0">0</span><span class="br0">&#41;</span><span class="sy0">==</span><span class="st0">&quot; &quot;</span><span class="br0">&#41;</span> c <span class="sy0">=</span> c.<span class="me1">substring</span><span class="br0">&#40;</span>1<span class="sy0">,</span>c.<span class="me1">length</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>c.<span class="me1">indexOf</span><span class="br0">&#40;</span>nameEQ<span class="br0">&#41;</span> <span class="sy0">==</span> 0<span class="br0">&#41;</span> <span class="kw1">return</span> c.<span class="me1">substring</span><span class="br0">&#40;</span>nameEQ.<span class="me1">length</span><span class="sy0">,</span>c.<span class="me1">length</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">null</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/01/27/create-modify-and-read-a-cookie-with-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How can you trigger an event in JavaScript (using jQuery) when an image is completely loaded</title>
		<link>http://mariuscristiandonea.com/2011/01/05/how-can-you-trigger-an-event-in-javascript-using-jquery-when-an-image-is-completely-loaded/</link>
		<comments>http://mariuscristiandonea.com/2011/01/05/how-can-you-trigger-an-event-in-javascript-using-jquery-when-an-image-is-completely-loaded/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 12:02:08 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[JavaScript jQuery]]></category>

		<guid isPermaLink="false">http://mariuscristiandonea.com/?p=348</guid>
		<description><![CDATA[This JavaScript code will trigger an event when an image is completely loaded. You need to have the jQuery Library.]]></description>
			<content:encoded><![CDATA[<p>This JavaScript code will trigger an event when an image is completely loaded. You need to have the jQuery Library.</p>
<p><strong>JavaScript code:</strong></p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;"><span class="kw2">var</span> img <span class="sy0">=</span> <span class="kw2">new</span> Image<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p>$<span class="br0">&#40;</span>img<span class="br0">&#41;</span>.<span class="me1">load</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; $<span class="br0">&#40;</span>imageContainer<span class="br0">&#41;</span>.<span class="me1">html</span><span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="co1">// Add the image in the document.</span><br />
&nbsp; &nbsp; <span class="co1">// Add any event &#8230; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />
<span class="br0">&#125;</span><span class="br0">&#41;</span>.<span class="me1">error</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="co1">// No image event &#8230; &nbsp;</span><br />
<span class="br0">&#125;</span><span class="br0">&#41;</span>.<span class="me1">attr</span><span class="br0">&#40;</span><span class="st0">&quot;src&quot;</span><span class="sy0">,</span> imagePath<span class="br0">&#41;</span><span class="sy0">;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://mariuscristiandonea.com/2011/01/05/how-can-you-trigger-an-event-in-javascript-using-jquery-when-an-image-is-completely-loaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

