<?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>Toby&#039;s Technical Ramblings &#187; jQuery</title> <atom:link href="http://tosbourn.com/tag/jquery/feed/" rel="self" type="application/rss+xml" /><link>http://tosbourn.com</link> <description>A web development blog.</description> <lastBuildDate>Mon, 07 May 2012 10:47:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>jQuery Links</title><link>http://tosbourn.com/2012/02/development/jquery-links/</link> <comments>http://tosbourn.com/2012/02/development/jquery-links/#comments</comments> <pubDate>Mon, 06 Feb 2012 13:56:29 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[jQuery]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=838</guid> <description><![CDATA[I will add to this overtime but this will be a dumping ground of useful jQuery links I have found. Latest Edited: 06/02/12 Differences Between jQuery .bind() vs .live() vs .delegate() vs .on() &#8211; Exactly as the title suggests! jQuery Fundementals Course &#8211; An excellent free course in jQuery by Rebecca Murphy, hosted on Github.]]></description> <content:encoded><![CDATA[<p>I will add to this overtime but this will be a dumping ground of useful jQuery links I have found.</p><p><em>Latest Edited: 06/02/12</em></p><p><a
href="http://www.elijahmanor.com/2012/02/differences-between-jquery-bind-vs-live.html" target="_blank">Differences Between jQuery .bind() vs .live() vs .delegate() vs .on()</a> &#8211; Exactly as the title suggests!</p><p><a
href="http://jqfundamentals.com/book/index.html" target="_blank">jQuery Fundementals Course</a> &#8211; An excellent free course in jQuery by Rebecca Murphy, hosted on Github.</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/02/development/jquery-links/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Too many posts about the same thing on your Twitter timeline?</title><link>http://tosbourn.com/2012/01/development/too-many-posts-about-the-same-thing-on-your-twitter-timeline/</link> <comments>http://tosbourn.com/2012/01/development/too-many-posts-about-the-same-thing-on-your-twitter-timeline/#comments</comments> <pubDate>Fri, 06 Jan 2012 09:35:40 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Twitter]]></category><guid
isPermaLink="false">http://tosbourn.com/?p=787</guid> <description><![CDATA[I was getting annoyed about the amount of posts about one particular topic on my timeline this morning and I decided I could fix the issue with some jQuery. var term = $('.twitter-anywhere-tweet-box-editor').val(); $(".stream-item:contains('" + term + "')").css('display','none'); If you save it as a bookmarklet you can use this by typing the term you want [...]]]></description> <content:encoded><![CDATA[<p>I was getting annoyed about the amount of posts about one particular topic on my timeline this morning and I decided I could fix the issue with some jQuery.</p><p><code><br
/> var term = $('.twitter-anywhere-tweet-box-editor').val();<br
/> $(".stream-item:contains('" + term + "')").css('display','none');<br
/> </code></p><p>If you save it as a bookmarklet you can use this by typing the term you want to disappear from your timeline in the search box and then clicking the bookmarklet.</p><p><code>javascript:var term = $('.twitter-anywhere-tweet-box-editor').val();$(".stream-item:contains('" + term + "')").css('display','none');</code></p><p>That has no practical application really as it doesn&#8217;t persist over page reloads and only lets you do one phrase at a time, but it helped me vent some frustration at dumb tweets!</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2012/01/development/too-many-posts-about-the-same-thing-on-your-twitter-timeline/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Edit an option of a select menu using jQuery</title><link>http://tosbourn.com/2011/03/javascript/edit-an-option-of-a-select-menu-using-jquery/</link> <comments>http://tosbourn.com/2011/03/javascript/edit-an-option-of-a-select-menu-using-jquery/#comments</comments> <pubDate>Mon, 21 Mar 2011 19:07:08 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[html]]></category> <category><![CDATA[jQuery]]></category><guid
isPermaLink="false">http://www.tosbourn.com/?p=410</guid> <description><![CDATA[I have read many articles that cover how to use jQuery to add and remove options from a select box but I couldn&#8217;t find one that covered how to edit an individual option. I knew there had to be a way and the good people of Stack Overflow were able to answer my question. Essentially [...]]]></description> <content:encoded><![CDATA[<p>I have read many articles that cover how to use jQuery to add and remove options from a select box but I couldn&#8217;t find one that covered how to edit an individual option.</p><p>I knew there had to be a way and the good people of Stack Overflow were able to answer <a
href="http://stackoverflow.com/questions/5380704/setting-the-text-of-an-option-element-using-jquery/5380764#5380764" target="_blank">my question</a>.</p><p>Essentially what you need to do is use the option selector in order to grab the element you want, then it is fairly trivial.</p><pre>$('#selectID option[value="knownValue"]').text('New Option Text');</pre><p>So what we are saying here is for every element with the ID of &#8216;selectID&#8217; look for an option with the value of &#8216;knownValue&#8217;.</p><p>Change the text of that option to &#8216;New Option Text&#8217;.</p><p>A use case for this (and indeed the reason why I was looking it up) is that if you have a collection of objects and you want to edit them dynamically by selecting them via dropdown then edit the fields you will most likely want to edit the &#8216;name&#8217; field or some other field that represents the unique name which appears in the dropdown list.</p><p>If this is the case when you edit your name and hit save, assuming it is all done using ajax the value in the dropdown will no longer equate to the value stored in the database.  This is a usability concern so you should use the method above to ensure that the option text of the dropdown gets edited accordingly.</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2011/03/javascript/edit-an-option-of-a-select-menu-using-jquery/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Some pretty awesome web dev links.</title><link>http://tosbourn.com/2010/11/development/some-pretty-awesome-web-dev-links/</link> <comments>http://tosbourn.com/2010/11/development/some-pretty-awesome-web-dev-links/#comments</comments> <pubDate>Mon, 15 Nov 2010 20:00:30 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Links]]></category> <category><![CDATA[Twitter]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.tosbourn.com/?p=355</guid> <description><![CDATA[Here are some links I favourited today on Twitter, thought I would share. How to Protect Your WordPress Blog From Getting Hacked &#8211; Pretty self explanatory, unlike a lot of WordPress related posts, this isn&#8217;t just a list of plugins that are flavour of the month (although it does suggest some). An excellent read and essential [...]]]></description> <content:encoded><![CDATA[<p>Here are some links I favourited today on Twitter, thought I would share.</p><ul><li><a
href="http://www.onextrapixel.com/2010/11/08/how-to-protect-your-wordpress-blog-from-getting-hacked/" target="_blank">How to Protect Your WordPress Blog From Getting Hacked</a> &#8211; Pretty self explanatory, unlike a lot of WordPress related posts, this isn&#8217;t just a list of plugins that are flavour of the month (although it does suggest some). An excellent read and essential if you have a WP blog.  I will definitely look into actioning some of the points. (via @<a
href="http://twitter.com/#!/designfollow">designfollow</a>).</li><li><a
href="http://www.shoutmeloud.com/5-wordpress-security-plugin-check-hacked-wordpress-blog.html" target="_blank">5 WordPress Security Plugins To Check Hacked WordPress Blog</a> &#8211; Along the same lines as the first post (although obviously just a list of 5 plugins to checkout) but it covers more about what to do if your server is compromised as opposed to stopping it from getting compromised.  Again, something I should really look at. (via @<a
href="http://twitter.com/#!/UCTweets">UCTweets</a>).</li><li><a
href="http://speckyboy.com/2010/11/08/40-essential-css-templates-resources-and-downloads/">40 Essential CSS Templates, Resources and Downloads</a> &#8211; Not much to say about this, the title really sums it up, a fair bit of filler in the list but also some gems including a nice rule generator that will work as a shiv for IE when playing with CSS3 (via @<a
href="http://twitter.com/#!/designfollow">designfollow</a>)</li><li><a
href="http://addyosmani.com/blog/essentialjsdesignpatterns/" target="_blank">Essential JavaScript and jQuery design patterns</a> &#8211; This is an article about a free ebook that I have just downloaded and skimmed through, at first glance it looks amazingly useful.  It explains many of the core design patterns and when to use them.  It also comes with printable materials. (via @<a
href="http://twitter.com/#!/elijahmanor">elijahmanor</a>)</li></ul> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2010/11/development/some-pretty-awesome-web-dev-links/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>YayQuery &#8211; My new favourite podcast?</title><link>http://tosbourn.com/2009/12/design/yayquery-my-new-favourite-podcast/</link> <comments>http://tosbourn.com/2009/12/design/yayquery-my-new-favourite-podcast/#comments</comments> <pubDate>Wed, 02 Dec 2009 23:09:18 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Design]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[podcast]]></category> <category><![CDATA[Yayquery]]></category><guid
isPermaLink="false">http://www.tosbourn.com/?p=205</guid> <description><![CDATA[This week I found out about a new podcast on the scene called YayQuery.  As you can imagine it is a discussion on jQuery, it is hosted by four experts in the field and seems to be producing fairly regular podcasts. It rules for a couple of reasons It it is such a laid back [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignright" title="YayQuery" src="http://i151.photobucket.com/albums/s130/tosbourn/top_logo.png" alt="" width="304" height="150" />This week I found out about a new podcast on the scene called <a
href="http://yayquery.com/">YayQuery</a>.  As you can imagine it is a discussion on jQuery, it is hosted by four experts in the field and seems to be producing fairly regular podcasts.</p><p>It rules for a couple of reasons</p><ul><li>It it is such a laid back discussion from people who genuinely love jQuery.  A lot of tech podcasts are very dry, and just hard to listen to.</li><li>It mixes n00b and l33t levels of discussion excellently.  As someone who is just above n00b not nowhere near l33t I have found nothing too under or over whelming.</li><li>It lets you download it as a vodcast as well as a podcast.</li><li>The source code on their site is AWESOME. (seriously, check out <a
href="http://yayquery.com/">their site</a> and view the source, awesome)</li></ul><p>At the time of writing they are on episode[3], plenty of time to play catch up!</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2009/12/design/yayquery-my-new-favourite-podcast/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Adding jQuery to WordPress</title><link>http://tosbourn.com/2009/11/wordpress/adding-jquery-to-wordpress/</link> <comments>http://tosbourn.com/2009/11/wordpress/adding-jquery-to-wordpress/#comments</comments> <pubDate>Fri, 27 Nov 2009 22:37:36 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[jQuery]]></category><guid
isPermaLink="false">http://www.tosbourn.com/?p=202</guid> <description><![CDATA[For my last post (talking about a really cool jQuery plugin) I really wanted to display the talked about effect on the site, not least because I wanted to play about with it some! In order to do that I had to make some changes to my theme, which I figured I should document. I [...]]]></description> <content:encoded><![CDATA[<p><img
class="alignright" src="http://i151.photobucket.com/albums/s130/tosbourn/jquery_logo.png" alt="Adding jQuery to WordPress" />For my last post (talking about a <a
href="http://www.tosbourn.com/2009/11/inframe-dynamic-iframe-creation-with-jquery/">really cool jQuery plugin</a>) I really wanted to display the talked about effect on the site, not least because I wanted to play about with it some!</p><p>In order to do that I had to make some changes to my theme, which I figured I should document.</p><p>I went into my theme directory and created /js/themename.js</p><p>I edited the header (themename/header.php) to include jQuery and /js/themename.js&#8230;</p><p>&lt;script src=&#8221;&lt;?php bloginfo(&#8216;stylesheet_directory&#8217;); ?&gt;/js/jquery-1.3.2.min.js&#8221; type=&#8221;text/javascript&#8221; &gt;&lt;/script&gt;<br
/> &lt;script src=&#8221;&lt;?php bloginfo(&#8216;stylesheet_directory&#8217;); ?&gt;/js/lightword.js&#8221; type=&#8221;text/javascript&#8221; &gt;&lt;/script&gt;</p><p>Inside of themename.js I created my $(document).ready() call and gave it the code it required.</p><p>I uploaded /themename/header.php, /themename/js/themename.js and themename/js/jquery-1.3.2.min.js to the site.</p><p>That is it!</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2009/11/wordpress/adding-jquery-to-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>InFrame &#8211; Dynamic iFrame creation with jQuery</title><link>http://tosbourn.com/2009/11/development/inframe-dynamic-iframe-creation-with-jquery/</link> <comments>http://tosbourn.com/2009/11/development/inframe-dynamic-iframe-creation-with-jquery/#comments</comments> <pubDate>Fri, 27 Nov 2009 22:27:18 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Development]]></category> <category><![CDATA[iFrame]]></category> <category><![CDATA[jQuery]]></category><guid
isPermaLink="false">http://www.tosbourn.com/?p=195</guid> <description><![CDATA[jQuery spends a lot of time impressing the shit out of me, one example of it doing it recently is with Vile Work&#8217;s inFrame (one person has reported an issue with this site and viruses, I cannot replicate though.). What this plugin does is capture any links containing a certain class and instead of having [...]]]></description> <content:encoded><![CDATA[<p>jQuery spends a lot of time impressing the shit out of me, one example of it doing it recently is with <a
href="http://www.vileworks.com/inframe-keep-the-demos-inside-the-page-with-jquery">Vile Work&#8217;s inFrame</a> (one person has reported an issue with this site and viruses, I cannot replicate though.).</p><p>What this plugin does is capture any links containing a certain class and instead of having them display in the current window it will create an iFrame on the fly for the content to display into.</p><p>We all know that iFrames are bad because they hide stuff from crawlers and different accessibility tools, however one of the really smart things about this is that because it looks for links of a certain class anyone coming along without JavaScript installed (say, a search engine for example) will just follow the link as normal with no negative effect.</p><p>I can see loads of potential uses for this tool and look forward to playing with it in an actual project.</p><p>Here is it in action.</p><p><a
class="inframe" href="http://www.istwitterup.com">Is twitter up?</a></p><p>Cool, huh?</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2009/11/development/inframe-dynamic-iframe-creation-with-jquery/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>jQuery Rollover</title><link>http://tosbourn.com/2009/10/design/jquery-rollover/</link> <comments>http://tosbourn.com/2009/10/design/jquery-rollover/#comments</comments> <pubDate>Sat, 17 Oct 2009 08:58:01 +0000</pubDate> <dc:creator>Toby</dc:creator> <category><![CDATA[Design]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[webDevel]]></category><guid
isPermaLink="false">http://www.tosbourn.com/?p=179</guid> <description><![CDATA[Here is a really nice and quick way of creating rollover states for image links using jQuery. As you can see if it is a fairly old post, and obviously this is hardly tackling a new or complicated issue, but I like how the author has put some thought into the amount of jQuery being [...]]]></description> <content:encoded><![CDATA[<p>Here is a really <a
href="http://webdevel.blogspot.com/2008/04/rollover-images-with-jquery.html">nice and quick way of creating rollover states for image links using jQuery</a>.</p><p>As you can see if it is a fairly old post, and obviously this is hardly tackling a new or complicated issue, but I like how the author has put some thought into the amount of jQuery being used and also how it has been made to be just a little bit more generic than some solutions.</p> ]]></content:encoded> <wfw:commentRss>http://tosbourn.com/2009/10/design/jquery-rollover/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: tosbourn.com @ 2012-05-22 13:57:04 by W3 Total Cache -->
