<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 19 Jul 2008 06:18:52 GMT</pubDate>
<item>
<title>(JavaScript) Custom Mootools Scroll - fredaudet</title>
<link>http://snipplr.com/view/7391/custom-mootools-scroll/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Jul 2008 15:59:04 GMT</pubDate>
<guid>http://snipplr.com/view/7391/custom-mootools-scroll/</guid>
</item>
<item>
<title>(JavaScript) Mootools rollOver (no effect) - fredaudet</title>
<link>http://snipplr.com/view/7390/mootools-rollover-no-effect/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Jul 2008 15:58:15 GMT</pubDate>
<guid>http://snipplr.com/view/7390/mootools-rollover-no-effect/</guid>
</item>
<item>
<title>(JavaScript) Mootools rollOver - fredaudet</title>
<link>http://snipplr.com/view/7389/mootools-rollover/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Jul 2008 15:57:13 GMT</pubDate>
<guid>http://snipplr.com/view/7389/mootools-rollover/</guid>
</item>
<item>
<title>(JavaScript) Div Slider - fredaudet</title>
<link>http://snipplr.com/view/7388/div-slider/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Jul 2008 15:56:37 GMT</pubDate>
<guid>http://snipplr.com/view/7388/div-slider/</guid>
</item>
<item>
<title>(JavaScript) Multi-select transfer - fredaudet</title>
<link>http://snipplr.com/view/7387/multiselect-transfer/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Jul 2008 15:55:55 GMT</pubDate>
<guid>http://snipplr.com/view/7387/multiselect-transfer/</guid>
</item>
<item>
<title>(JavaScript) Event Handling Functions - wizard04</title>
<link>http://snipplr.com/view/7368/event-handling-functions/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 17 Jul 2008 16:24:06 GMT</pubDate>
<guid>http://snipplr.com/view/7368/event-handling-functions/</guid>
</item>
<item>
<title>(JavaScript) Including Valid Inline Javascript in XHTML - Juego</title>
<link>http://snipplr.com/view/7362/including-valid-inline-javascript-in-xhtml/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 17 Jul 2008 11:28:39 GMT</pubDate>
<guid>http://snipplr.com/view/7362/including-valid-inline-javascript-in-xhtml/</guid>
</item>
<item>
<title>(JavaScript) Create XMLHttpRequest - KernelPanic</title>
<link>http://snipplr.com/view/7361/create-xmlhttprequest/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 17 Jul 2008 10:51:18 GMT</pubDate>
<guid>http://snipplr.com/view/7361/create-xmlhttprequest/</guid>
</item>
<item>
<title>(JavaScript) Using the Clipboard - wizard04</title>
<link>http://snipplr.com/view/7360/using-the-clipboard/</link>
<description><![CDATA[ <p>Functions to use the clipboard.

Requires a Flash file for non-IE browsers: see http://javascript.internet.com/forms/clipboard-copy.html
Remember to set config.Clipboard.pathToFlash accordingly.

Clipboard.setData(strToCopy) puts strToCopy onto the clipboard
Clipboard.setDataFromSelection() puts the text that the user has selected onto the clipboard
Clipboard.getData() returns the text from the clipboard (only works in IE)
Clipboard.clear() clears the clipboard (or sets it to a period if it can't set an empty string)</p> ]]></description>
<pubDate>Thu, 17 Jul 2008 08:40:46 GMT</pubDate>
<guid>http://snipplr.com/view/7360/using-the-clipboard/</guid>
</item>
<item>
<title>(JavaScript) Javascript add-to-bookmarks (Firefox, IE) - scarfboy</title>
<link>http://snipplr.com/view/7351/javascript-addtobookmarks-firefox-ie/</link>
<description><![CDATA[ <p>There is no standard for this at all - this just looks for the hooks that exist in IE and gecko-type browsers.
See also http://msdn.microsoft.com/en-us/library/ms535926(VS.85).aspx and http://developer.mozilla.org/en/docs/DOM:window.sidebar</p> ]]></description>
<pubDate>Thu, 17 Jul 2008 06:40:45 GMT</pubDate>
<guid>http://snipplr.com/view/7351/javascript-addtobookmarks-firefox-ie/</guid>
</item>
<item>
<title>(JavaScript) Array member tests - scarfboy</title>
<link>http://snipplr.com/view/7349/array-member-tests/</link>
<description><![CDATA[ <p>Given:
  a=['1',2,6];
Allows things like:
  a.contains(2); //true
  '1'.in(a);
  (1).in(a,true); //type not identical, so false
  (1).in(a);      //no type check, so true

I don't use this, it was more of an exercise in playing with JS.</p> ]]></description>
<pubDate>Thu, 17 Jul 2008 06:34:58 GMT</pubDate>
<guid>http://snipplr.com/view/7349/array-member-tests/</guid>
</item>
<item>
<title>(JavaScript) set-of-string functions - scarfboy</title>
<link>http://snipplr.com/view/7348/setofstring-functions/</link>
<description><![CDATA[ <p>Exploits hash keys uniqueness -- so effectively toString()s everything, meaning this should not be used for much beyond strings (and perhaps integers).

I used this when I wanted to do some client-side filtering of (integer) identifiers.</p> ]]></description>
<pubDate>Thu, 17 Jul 2008 06:31:03 GMT</pubDate>
<guid>http://snipplr.com/view/7348/setofstring-functions/</guid>
</item>
<item>
<title>(JavaScript) Format number with commas every 3 decimal places - jdstraughan</title>
<link>http://snipplr.com/view/7345/format-number-with-commas-every-3-decimal-places/</link>
<description><![CDATA[ <p>Adds commas to numbers.
1234567 becomes 1,234,567</p> ]]></description>
<pubDate>Thu, 17 Jul 2008 03:46:14 GMT</pubDate>
<guid>http://snipplr.com/view/7345/format-number-with-commas-every-3-decimal-places/</guid>
</item>
<item>
<title>(JavaScript) Inspecting objects when using prototype from firebug console - inkdeep</title>
<link>http://snipplr.com/view/7312/inspecting-objects-when-using-prototype-from-firebug-console/</link>
<description><![CDATA[ <p>unless I can *see* inside its all a mystery...</p> ]]></description>
<pubDate>Tue, 15 Jul 2008 17:36:21 GMT</pubDate>
<guid>http://snipplr.com/view/7312/inspecting-objects-when-using-prototype-from-firebug-console/</guid>
</item>
<item>
<title>(JavaScript) Styles and Stylesheet Manipulation - wizard04</title>
<link>http://snipplr.com/view/7272/styles-and-stylesheet-manipulation/</link>
<description><![CDATA[ <p>Useful functions to get around browser incompatibilities when working with stylesheets.
If you find any errors, please leave a comment.</p> ]]></description>
<pubDate>Mon, 14 Jul 2008 16:49:02 GMT</pubDate>
<guid>http://snipplr.com/view/7272/styles-and-stylesheet-manipulation/</guid>
</item>
<item>
<title>(JavaScript) Get Readable Date Components - wizard04</title>
<link>http://snipplr.com/view/7271/get-readable-date-components/</link>
<description><![CDATA[ <p>Converts the components of a date into strings that can be easily combined to display a more readable version.</p> ]]></description>
<pubDate>Mon, 14 Jul 2008 15:22:42 GMT</pubDate>
<guid>http://snipplr.com/view/7271/get-readable-date-components/</guid>
</item>
<item>
<title>(JavaScript) Determine Amount of Time Between Two Dates - wizard04</title>
<link>http://snipplr.com/view/7270/determine-amount-of-time-between-two-dates/</link>
<description><![CDATA[ <p>Date.timeUntil(laterDate)
Date.timeSince(earlierDate)

If the dates are out of order, the "swapped" flag is set to let you know. For example, if you have two Dates "today" and "yesterday":

today.timeUntil(yesterday) will set the flag (since yesterday is before today, not after)</p> ]]></description>
<pubDate>Mon, 14 Jul 2008 15:18:09 GMT</pubDate>
<guid>http://snipplr.com/view/7270/determine-amount-of-time-between-two-dates/</guid>
</item>
<item>
<title>(JavaScript) Convert Atom date string to JavaScript compatible format - wizard04</title>
<link>http://snipplr.com/view/7269/convert-atom-date-string-to-javascript-compatible-format/</link>
<description><![CDATA[ <p>Converts a date string from the format used in Atom feeds to one that can be used with the JavaScript Date object.</p> ]]></description>
<pubDate>Mon, 14 Jul 2008 15:05:50 GMT</pubDate>
<guid>http://snipplr.com/view/7269/convert-atom-date-string-to-javascript-compatible-format/</guid>
</item>
<item>
<title>(JavaScript) javascript string methods - donkeykong</title>
<link>http://snipplr.com/view/7258/javascript-string-methods/</link>
<description><![CDATA[ <p>sample:
var text = "    string content    ";

text = text.trim();</p> ]]></description>
<pubDate>Mon, 14 Jul 2008 01:31:46 GMT</pubDate>
<guid>http://snipplr.com/view/7258/javascript-string-methods/</guid>
</item>
<item>
<title>(JavaScript) getElementsByAttr - kcmr</title>
<link>http://snipplr.com/view/7239/getelementsbyattr/</link>
<description><![CDATA[ <p>Use sample:
var inputTxt = getElementsByAttr('input', 'type', 'text');</p> ]]></description>
<pubDate>Sat, 12 Jul 2008 08:06:54 GMT</pubDate>
<guid>http://snipplr.com/view/7239/getelementsbyattr/</guid>
</item>
</channel>
</rss>