<?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>Jason Rowe &#187; JQuery</title>
	<atom:link href="http://jasonrowe.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://jasonrowe.com</link>
	<description>digging into the details</description>
	<lastBuildDate>Sun, 14 Mar 2010 02:00:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jquery taskwidget module</title>
		<link>http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/</link>
		<comments>http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 22:40:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[taskwidget]]></category>

		<guid isPermaLink="false">http://rowejason.com/?p=140</guid>
		<description><![CDATA[I started building a simple taskwidget to try out jquery.  It&#8217;s not much but a simple AJAX application using PHP and mysql on the backend. Here a some of the cool things I learned along the way.
A common gotcha with JavaScript is access to &#8220;this&#8221; inside callbacks and functions.  For example, $.get has a callback [...]]]></description>
			<content:encoded><![CDATA[<p>I started building a simple <a href="http://rowejason.com/taskwidget/">taskwidget</a> to try out <a href="http://jquery.com/">jquery</a>.  It&#8217;s not much but a simple AJAX application using PHP and mysql on the backend. Here a some of the cool things I learned along the way.</p>
<p>A common gotcha with JavaScript is access to &#8220;this&#8221; inside callbacks and functions.  For example, $.get has a callback but inside the callback &#8220;this&#8221; is out of scope.  So if you need to use a function in the object that contains the $.get define a local variable and set the value  equal to &#8220;this&#8221;. Here is a quick example of this scenario. Once you are done with the callback the local instance variable of &#8220;this&#8221; will get cleaned up by garbage collection.</p>
<pre class="brush: js; ">

var foo = this;

$.get(&quot;test.php&quot;, function(data){

//this is out of scope in this callback
alert(&quot;Data Loaded: &quot; + data);

//but foo is now = this

foo.sendDataSomeWhereElse(data)

});
</pre>
<p>On the PHP backend I found a nice <a href="http://www.ricocheting.com/scripts/php_mysql_wrapper.php">mysql wrapper class </a>. It makes it simple to organize MySQL connection and queries.  You can do things like this to connect to your database using a simple config file.</p>
<pre class="brush: php; ">

$db = new Database($config[&#039;server&#039;], $config[&#039;user&#039;], $config[&#039;pass&#039;], $config[&#039;database&#039;], $config[&#039;tablePrefix&#039;]);
</pre>
<p>Then a function would look like this:</p>
<pre class="brush: php; ">

$db-&gt;connect();

$sql = &quot;insert into tmastertask (masterTaskDescription) VALUES (&#039;&quot; . $values[0] . &quot;&#039;);&quot;;

$db-&gt;query($sql);

$jsonInsertArray[] = &quot;success&quot;;
$jsonResultArray[&quot;InsertResult&quot;]=$jsonInsertArray;
echo json_encode($jsonResultArray);

$db-&gt;close();
</pre>
<hr />
<p><small>&copy; admin for <a href="http://jasonrowe.com">Jason Rowe</a>, 2008. |
<a href="http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/">Permalink</a> |
<a href="http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/&amp;title=jquery taskwidget module">del.icio.us</a>
<br/>
Post tags: <a href="http://jasonrowe.com/tag/jquery/" rel="tag">JQuery</a>, <a href="http://jasonrowe.com/tag/mysql/" rel="tag">MySql</a>, <a href="http://jasonrowe.com/tag/php/" rel="tag">PHP</a>, <a href="http://jasonrowe.com/tag/taskwidget/" rel="tag">taskwidget</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>my latest yui php mysql project</title>
		<link>http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/</link>
		<comments>http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 19:07:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[YUI]]></category>

		<guid isPermaLink="false">http://rowejason.com/?p=99</guid>
		<description><![CDATA[I setup a quick demo page showing how to use a combination of many things I have wrote about on my blog. Take a look if you want to see how easily you can do some cool things with YUI (update &#8211; and jquery).
http://jasonrowe.com/search
update 5/08/09 - I change some of the javascript from yui to jquery. I [...]]]></description>
			<content:encoded><![CDATA[<p>I setup a quick demo page showing how to use a combination of many things I have wrote about on my blog. Take a look if you want to see how easily you can do some cool things with YUI (update &#8211; and jquery).<br />
<a href="http://jasonrowe.com/search">http://jasonrowe.com/search</a></p>
<p>update 5/08/09 - I change some of the javascript from yui to jquery. I converted the old YUI carousel to Jcarousel.(<a href="http://sorgalla.com/projects/jcarousel/">http://sorgalla.com/projects/jcarousel/</a>)</p>
<hr />
<p><small>&copy; admin for <a href="http://jasonrowe.com">Jason Rowe</a>, 2007. |
<a href="http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/">Permalink</a> |
<a href="http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/#comments">3 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/&amp;title=my latest yui php mysql project">del.icio.us</a>
<br/>
Post tags: <a href="http://jasonrowe.com/tag/jquery/" rel="tag">JQuery</a>, <a href="http://jasonrowe.com/tag/mysql/" rel="tag">MySql</a>, <a href="http://jasonrowe.com/tag/php/" rel="tag">PHP</a>, <a href="http://jasonrowe.com/tag/yui/" rel="tag">YUI</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Carousel Control CD Collection</title>
		<link>http://jasonrowe.com/2007/07/18/carousel-control-cd-collection/</link>
		<comments>http://jasonrowe.com/2007/07/18/carousel-control-cd-collection/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 05:29:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[YUI]]></category>

		<guid isPermaLink="false">http://rowejason.com/?p=96</guid>
		<description><![CDATA[ I wanted to find an easy way to display a CD collection using javascript instead of flash. While looking around I found a YUI extension called carousel. Here is my small static example of a CD collection.
Bill Scott actually doesn&#8217;t support this anymore and the YUI team has taken this on. The new version [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rowejason.com/search"><img style="float: left; margin: 0px 10px 10px 0px; cursor: hand" src="http://www.rowejason.com/uploaded_images/carousel_example-779114.JPG" border="0" alt="snapshot of carousel" /></a> I wanted to find an easy way to display a CD collection using javascript instead of flash. While looking around I found a YUI extension called carousel. Here is my small static example of a CD collection.</p>
<p>Bill Scott actually doesn&#8217;t support this anymore and the YUI team has taken this on. The new version is very clean and I did try it out. I converted my carousel to the new YUI version but later decided to go with a JQuery extention called jCarousel. They both worked but I think I am going to move in the Jquery direction for awhile.<br />
<a href="http://jasonrowe.com/search"> http://jasonrowe.com/search</a></p>
<p>References:<br />
<a href="http://billwscott.com/carousel/">http://billwscott.com/carousel/</a></p>
<p><a href="http://sorgalla.com/projects/jcarousel/">http://sorgalla.com/projects/jcarousel/</a></p>
<p><a href="http://developer.yahoo.com/yui/carousel/">http://developer.yahoo.com/yui/carousel/</a></p>
<hr />
<p><small>&copy; admin for <a href="http://jasonrowe.com">Jason Rowe</a>, 2007. |
<a href="http://jasonrowe.com/2007/07/18/carousel-control-cd-collection/">Permalink</a> |
<a href="http://jasonrowe.com/2007/07/18/carousel-control-cd-collection/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://jasonrowe.com/2007/07/18/carousel-control-cd-collection/&amp;title=Carousel Control CD Collection">del.icio.us</a>
<br/>
Post tags: <a href="http://jasonrowe.com/tag/javascript/" rel="tag">JavaScript</a>, <a href="http://jasonrowe.com/tag/yui/" rel="tag">YUI</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://jasonrowe.com/2007/07/18/carousel-control-cd-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
