<?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/tags/function</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 05 Dec 2008 05:45:51 GMT</pubDate>
<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) 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) 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) Grab Text from a File Ajax</title>
<link>http://snipplr.com/view/2311/grab-text-from-a-file-ajax/</link>
<description><![CDATA[ <p>Very basic grab a line of text from a file then display it in an alert box. Uses other functions for loading prepareLinks() and creating the request.</p> ]]></description>
<pubDate>Tue, 13 Mar 2007 05:14:55 GMT</pubDate>
<guid>http://snipplr.com/view/2311/grab-text-from-a-file-ajax/</guid>
</item>
<item>
<title>(JavaScript) addClass Function</title>
<link>http://snipplr.com/view/2181/addclass-function/</link>
<description><![CDATA[ <p>Function to look if an element has a class, if it doesn't simply add it to the element. If it does have a class add it to the class that is already there. Function expects 2 values, the element to add the class to, and the new class name (value).</p> ]]></description>
<pubDate>Mon, 19 Feb 2007 06:43:37 GMT</pubDate>
<guid>http://snipplr.com/view/2181/addclass-function/</guid>
</item>
<item>
<title>(JavaScript) Stripe Table Rows DOM JS Function</title>
<link>http://snipplr.com/view/2167/stripe-table-rows-dom-js-function/</link>
<description><![CDATA[ <p>This function looks for tables in a web page, then loops through the rows and sets the backgroundColor for ever other row.This creates a striped table which is easier to read.</p> ]]></description>
<pubDate>Tue, 13 Feb 2007 06:29:15 GMT</pubDate>
<guid>http://snipplr.com/view/2167/stripe-table-rows-dom-js-function/</guid>
</item>
<item>
<title>(JavaScript) insertAfter function for the DOM</title>
<link>http://snipplr.com/view/2107/insertafter-function-for-the-dom/</link>
<description><![CDATA[ <p>Vert useful function since there isn't an insertAfter function in the DOM. Call it inside scripts, it expects
insertAfter(*the new element to be inserted*, *the element you want it to be inserted after*);</p> ]]></description>
<pubDate>Sat, 03 Feb 2007 15:03:16 GMT</pubDate>
<guid>http://snipplr.com/view/2107/insertafter-function-for-the-dom/</guid>
</item>
</channel>
</rss>