<?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>Freelance Frank &#187; JQuery</title>
	<atom:link href="http://www.freelance-frank.com/freelance-central/category/code/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freelance-frank.com/freelance-central</link>
	<description>Custom online coding solutions - PHP : MySQL : CMS : SEO</description>
	<lastBuildDate>Sat, 20 Feb 2010 08:34:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery and Quadratic Functions</title>
		<link>http://www.freelance-frank.com/freelance-central/2010/01/05/jquery-and-quadratic-functions/</link>
		<comments>http://www.freelance-frank.com/freelance-central/2010/01/05/jquery-and-quadratic-functions/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 15:04:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://www.freelance-frank.com/freelance-central/?p=165</guid>
		<description><![CDATA[As x changes in value, the quadratic function: f(x) = ax2+bx+c describes a parabola &#8211; an arc through space &#8211; in terms of a two dimensional axis where x describes the vertical and f(x) describes the horizontal points at intervals.
Quadratic functions also allow for a fun afternoon combining the jQuery form plugin with the jpgraph [...]]]></description>
			<content:encoded><![CDATA[<p>As x changes in value, the quadratic function: <strong>f(x) = ax<sup>2</sup>+bx+c </strong>describes a parabola &#8211; an arc through space &#8211; in terms of a two dimensional axis where x describes the vertical and f(x) describes the horizontal points at intervals.</p>
<div id="attachment_167" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-167" title="The graphic result of a quadratic function" src="http://www.freelance-frank.com/freelance-central/wp-content/uploads/2010/01/parabola1.jpg" alt="The graphic result of a quadratic function" width="320" height="220" /><p class="wp-caption-text">The graphic result of a quadratic function</p></div>
<p>Quadratic functions also allow for a fun afternoon combining the <a title="Quadratic functions and the jQuery form plugin" href="http://jquery.malsup.com/form/" target="_blank">jQuery form plugin</a> with the <a title="Quadratic functions and jpgraph - a link" href="http://www.aditus.nu/jpgraph/" target="_blank">jpgraph PHP library</a>. I started out with a simple PHP function to produce a range of f(x) values for any set of values x. I then built a form to allow any value for a, b and c to be input as well as the maximum and minimum for x and the steps that x takes. Once that was working, I passed the results into two arrays and passed those to jpgraph which produces a graphical image on the fly and stores it on the server. Finally, to avoid page refreshes, I wrapped the form around the jQuery &#8216;plugin&#8217; (can these properly be called plugins? I suppose so&#8230;) The result is a simple and relatively intuitive visual demonstration of the relationship between mathematics and geometry. In fact, expanding that out, the relationship is actually between mathematical logic, computation and optics &#8211; but that gets us into a kind of crazy Turing territory and lines have to be drawn somewhere.</p>
<p><a title="Freelance Frank's Quadratic Functions" href="http://www.freelance-frank.com/freelance-central/functions/quad.php">Try it out here</a></p>
<p>For the future, I would like to be able to produce more accurate and extensible graphs for larger number ranges, and to plug the whole thing into calculus, to really push the spatial theme. But this is something of a start and it is perhaps the simplest demonstration of the more general relationship.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freelance-frank.com/freelance-central/2010/01/05/jquery-and-quadratic-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adventures with jQuery tooltips</title>
		<link>http://www.freelance-frank.com/freelance-central/2009/12/03/adventures-with-jquery-tooltips/</link>
		<comments>http://www.freelance-frank.com/freelance-central/2009/12/03/adventures-with-jquery-tooltips/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 08:21:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://www.freelance-frank.com/freelance-central/?p=103</guid>
		<description><![CDATA[Acronyms are often neglected by developers. XHTML has a handy &#9001;acronym&#9002; tag that defines an acronym, giving useful information to browsers, spellcheckers, screen readers, translation systems and (last but not least) search-engines. 
My home page features a number of acronyms. They&#8217;re not uncommon in the coding world, after all. I wrapped some in acronym tags [...]]]></description>
			<content:encoded><![CDATA[<p>Acronyms are often neglected by developers. XHTML has a handy <em>&#9001;acronym&#9002;</em> tag that defines an acronym, giving useful information to browsers, spellcheckers, screen readers, translation systems and (last but not least) search-engines. </p>
<p>My home page features a number of acronyms. They&#8217;re not uncommon in the coding world, after all. I wrapped some in acronym tags and these work fine. But, naturally, it wasn&#8217;t enough. Enter jQuery&#8230;</p>
<div id="attachment_104" class="wp-caption aligncenter" style="width: 330px"><a href="http://craigsworks.com/projects/qtip/demos/content/loading"><img src="http://www.freelance-frank.com/freelance-central/wp-content/uploads/2009/12/qtip_wide.jpg" alt="The Qtip demo screen at craigsworks" title="qtip_wide" width="320" height="220" class="size-full wp-image-104" /></a><p class="wp-caption-text">The Qtip demo screen at craigsworks</p></div>
<p>I was after, in addition to the standard acronym definition, a tootip that goes into more detail for the unitiated. When hovering over <em><acronym title="Search Engine Optimisation">S.E.O.</acronym></em>, for example, I wanted the standard &#8216;Search Engine Optimisation&#8217; hover tag to appear as usual, but in addition, when clicking on <em><acronym title="Search Engine Optimisation">S.E.O.</acronym></em> a new window should open smoothly, with more details about what <em><acronym title="Search Engine Optimisation">S.E.O.</acronym></em> entails. The whole thing needed to look good and work well. jQuery was the obvious weapon of choice.</p>
<p>Wordpress has a <a href="http://wordpress.org/extend/plugins/jr-qtip-for-wordpress/">JQuery plugin</a> that enables smooth tooltips of the kind I was interested in, but I didn&#8217;t want to use a plugin for a number of reasons &#8211; the primary one being that it&#8217;s just too easy. So I went instead to the source &#8211; the jQuery code at <a href="http://craigsworks.com/projects/qtip/demos/content/loading">craigsworks</a> which the plugin is based on. After some tinkering around (basically modifying paths and so on), I had a complete module that slots into my front page and allows me to create acronyms with tooltips. Clicking on any acronym there prompts a smooth tooltip with content that I can modify in any way with internal XHTML. </p>
<p>One stumbling block was a conflict with my Mootools slider. That was quickly resolved, but I prefer to not have to multiply libraries unnecessarily. My next task is to re-tool that slider in jQuery (and maybe even leave the <em>jQuery.noConflict();</em> up, just to keep the namespace clean and clear). Conflicts are a whole other story. I&#8217;ll post about that one some other time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freelance-frank.com/freelance-central/2009/12/03/adventures-with-jquery-tooltips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
