<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - 1man</title>
<link>http://snipplr.com/users/1man/language/javascript</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 07 Sep 2008 11:44:01 GMT</pubDate>
<item>
<title>(JavaScript) jQuery / Mootools Fade Toggle and Background Change</title>
<link>http://snipplr.com/view/6030/jquery--mootools-fade-toggle-and-background-change/</link>
<description><![CDATA[ <p>I have been meaning to learn how to use mootools for a while. As i already know how to use jQuery i thought a great way to learn would be to compare the 2 syntaxes side by side.

I'm sure there is a way of using a toggle method in mootools, so once i figure out how i will update.</p> ]]></description>
<pubDate>Mon, 28 Apr 2008 10:53:48 GMT</pubDate>
<guid>http://snipplr.com/view/6030/jquery--mootools-fade-toggle-and-background-change/</guid>
</item>
<item>
<title>(JavaScript) Stop Firebug Console Command Errors</title>
<link>http://snipplr.com/view/5485/stop-firebug-console-command-errors/</link>
<description><![CDATA[ <p>Sometimes i forget to remove firebug console commands when debuging, which makes IE and some other browsers fail / cry.

To stop this happening use the below script from firebugx.js on the firebug lite homepage.</p> ]]></description>
<pubDate>Tue, 18 Mar 2008 19:54:35 GMT</pubDate>
<guid>http://snipplr.com/view/5485/stop-firebug-console-command-errors/</guid>
</item>
<item>
<title>(JavaScript) jQuery Fade In Sequence</title>
<link>http://snipplr.com/view/5360/jquery-fade-in-sequence/</link>
<description><![CDATA[ <p>I'm sure i can clean this up quite a bit, but it works for the moment.

This function looks to see if you are on a selected page. If you are it hides the navigation, then loops through and shows each li one after the other. So they don't all fade in together. Needs a tidy i think.</p> ]]></description>
<pubDate>Mon, 10 Mar 2008 16:57:08 GMT</pubDate>
<guid>http://snipplr.com/view/5360/jquery-fade-in-sequence/</guid>
</item>
<item>
<title>(JavaScript) Function invocation and 'this' Context Example</title>
<link>http://snipplr.com/view/5280/function-invocation-and-this-context-example/</link>
<description><![CDATA[ <p>Quick example to show how 'this' depends on how the function in which you called it in was being invoked. From jQuery in Action.</p> ]]></description>
<pubDate>Wed, 05 Mar 2008 17:40:56 GMT</pubDate>
<guid>http://snipplr.com/view/5280/function-invocation-and-this-context-example/</guid>
</item>
<item>
<title>(JavaScript) Closure Example Relating to 'this' Execution Context</title>
<link>http://snipplr.com/view/5279/closure-example-relating-to-this-execution-context/</link>
<description><![CDATA[ <p>Example showing how using 'this' in a function depends on where 'this' is defined. From book jQuery in Action.</p> ]]></description>
<pubDate>Wed, 05 Mar 2008 17:32:40 GMT</pubDate>
<guid>http://snipplr.com/view/5279/closure-example-relating-to-this-execution-context/</guid>
</item>
<item>
<title>(JavaScript) jQuery Object Hash and jQuery Extend</title>
<link>http://snipplr.com/view/5273/jquery-object-hash-and-jquery-extend/</link>
<description><![CDATA[ <p>An example of how to extent the jQuery objects to include our own methods.</p> ]]></description>
<pubDate>Wed, 05 Mar 2008 06:03:46 GMT</pubDate>
<guid>http://snipplr.com/view/5273/jquery-object-hash-and-jquery-extend/</guid>
</item>
<item>
<title>(JavaScript) Option Hash Using jQuery</title>
<link>http://snipplr.com/view/5221/option-hash-using-jquery/</link>
<description><![CDATA[ <p>If you have a complex function you may need to pass it lots of arguments. Instead of having to remember how many you need to pass, and passing 'null' for un needed arguments, pass the function an object.

Now you can set the defaults inside the function, which will be superseeded if they are passed as an argument.</p> ]]></description>
<pubDate>Wed, 27 Feb 2008 15:20:11 GMT</pubDate>
<guid>http://snipplr.com/view/5221/option-hash-using-jquery/</guid>
</item>
<item>
<title>(JavaScript) Cross Browser Cursor Position</title>
<link>http://snipplr.com/view/5069/cross-browser-cursor-position/</link>
<description><![CDATA[ <p>Nice little snippet i found on Ajaxian, finds the position of the mouse cursor when it is fired.</p> ]]></description>
<pubDate>Thu, 14 Feb 2008 16:06:19 GMT</pubDate>
<guid>http://snipplr.com/view/5069/cross-browser-cursor-position/</guid>
</item>
<item>
<title>(JavaScript) jQuery Link Background Quick Fade</title>
<link>http://snipplr.com/view/4662/jquery-link-background-quick-fade/</link>
<description><![CDATA[ <p>Found this quick little bit of code on the Google jQuery discussion group. It simply fades the background image of a link you have hovered over to a certain color, then fades it back to the original color.</p> ]]></description>
<pubDate>Sat, 19 Jan 2008 12:05:49 GMT</pubDate>
<guid>http://snipplr.com/view/4662/jquery-link-background-quick-fade/</guid>
</item>
<item>
<title>(JavaScript) jQuery Simple Style Switcher</title>
<link>http://snipplr.com/view/4483/jquery-simple-style-switcher/</link>
<description><![CDATA[ <p>Very simple style switcher using jquery. Takes 3 links with id's on each. When one is clicked various styles are removed, then a new one is added.</p> ]]></description>
<pubDate>Thu, 10 Jan 2008 07:20:07 GMT</pubDate>
<guid>http://snipplr.com/view/4483/jquery-simple-style-switcher/</guid>
</item>
<item>
<title>(JavaScript) Adobe AIR Open New URL with Sandbox Bridge</title>
<link>http://snipplr.com/view/4442/adobe-air-open-new-url-with-sandbox-bridge/</link>
<description><![CDATA[ <p>Adobe Air has a few security settings that stops you executing certain AIR methods when inside the sandbox. The code below bridges between the root document and the security sandbox, allowing you to open a URL in AIR in a default browser.</p> ]]></description>
<pubDate>Wed, 02 Jan 2008 10:29:36 GMT</pubDate>
<guid>http://snipplr.com/view/4442/adobe-air-open-new-url-with-sandbox-bridge/</guid>
</item>
<item>
<title>(JavaScript) Javascript Closure</title>
<link>http://snipplr.com/view/4247/javascript-closure/</link>
<description><![CDATA[ <p>Apologies if I haven't explained this to well, I'm still trying to get my head round closures.</p> ]]></description>
<pubDate>Sun, 02 Dec 2007 17:04:45 GMT</pubDate>
<guid>http://snipplr.com/view/4247/javascript-closure/</guid>
</item>
<item>
<title>(JavaScript) Function call() Method</title>
<link>http://snipplr.com/view/4241/function-call-method/</link>
<description><![CDATA[ <p>This method allows you to call a function as a method of another object. The first argument the call method expects is the object it is to operate on. Any others are part of the function. Note how the this keyword now refers to the comp object, so a result property is created inside comp.</p> ]]></description>
<pubDate>Sun, 02 Dec 2007 09:24:31 GMT</pubDate>
<guid>http://snipplr.com/view/4241/function-call-method/</guid>
</item>
<item>
<title>(JavaScript) Array Functions as Data</title>
<link>http://snipplr.com/view/4240/array-functions-as-data/</link>
<description><![CDATA[ <p>The important thing to notice is the () operator in a[2]. It is invoking the function inside a[0] with the argument a[1].</p> ]]></description>
<pubDate>Sun, 02 Dec 2007 07:59:36 GMT</pubDate>
<guid>http://snipplr.com/view/4240/array-functions-as-data/</guid>
</item>
<item>
<title>(JavaScript) Accessing Arguments Using the Arguments Object</title>
<link>http://snipplr.com/view/4239/accessing-arguments-using-the-arguments-object/</link>
<description><![CDATA[ <p>Every function has an object called the arguments object. This is an object that contains all the arguments that were passed to the function. The example below shows how to access these. Very rarely used but useful to know. Note: it may look like an array, but it's better to think of it as an object with numbered properties.</p> ]]></description>
<pubDate>Sun, 02 Dec 2007 06:50:07 GMT</pubDate>
<guid>http://snipplr.com/view/4239/accessing-arguments-using-the-arguments-object/</guid>
</item>
<item>
<title>(JavaScript) Optional Function Arguments</title>
<link>http://snipplr.com/view/4238/optional-function-arguments/</link>
<description><![CDATA[ <p>Simple way of allowing functions to take optional arguments. Always place the optional arguments last, so you don't have to explicitly pass an argument as "undefined".</p> ]]></description>
<pubDate>Sun, 02 Dec 2007 06:19:11 GMT</pubDate>
<guid>http://snipplr.com/view/4238/optional-function-arguments/</guid>
</item>
<item>
<title>(JavaScript) Simple Switch Statement</title>
<link>http://snipplr.com/view/4156/simple-switch-statement/</link>
<description><![CDATA[ <p>Very basic switch statement.</p> ]]></description>
<pubDate>Sun, 18 Nov 2007 10:58:53 GMT</pubDate>
<guid>http://snipplr.com/view/4156/simple-switch-statement/</guid>
</item>
<item>
<title>(JavaScript) Basic Usage of the 'in' and 'instanceOf' Operators</title>
<link>http://snipplr.com/view/4128/basic-usage-of-the-in-and-instanceof-operators/</link>
<description><![CDATA[ <p>Basic usage of the in and instanceOf operators.</p> ]]></description>
<pubDate>Tue, 13 Nov 2007 18:26:13 GMT</pubDate>
<guid>http://snipplr.com/view/4128/basic-usage-of-the-in-and-instanceof-operators/</guid>
</item>
<item>
<title>(JavaScript) Random Number</title>
<link>http://snipplr.com/view/4123/random-number/</link>
<description><![CDATA[ <p>Very simple random number generator, generates a number that then runs a function that is inside an array. Used a version of this with UFO flash script to pull in a random flash object on a page.</p> ]]></description>
<pubDate>Mon, 12 Nov 2007 16:15:41 GMT</pubDate>
<guid>http://snipplr.com/view/4123/random-number/</guid>
</item>
<item>
<title>(JavaScript) Mootools Draggable / Resize Example</title>
<link>http://snipplr.com/view/4038/mootools-draggable--resize-example/</link>
<description><![CDATA[ <p>Very simple drag and resize function.</p> ]]></description>
<pubDate>Mon, 29 Oct 2007 08:29:23 GMT</pubDate>
<guid>http://snipplr.com/view/4038/mootools-draggable--resize-example/</guid>
</item>
</channel>
</rss>