<?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/tags/prototype</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 11 Oct 2008 06:43:10 GMT</pubDate>
<item>
<title>(JavaScript) Prototype and scriptaculous slideshow - elightbo</title>
<link>http://snipplr.com/view/8884/prototype-and-scriptaculous-slideshow/</link>
<description><![CDATA[ <p>Slideshow class I made up for UWGB using the prototype framework and scriptaculous.  Slideshows div and everything within.  Pre-caches all images within div.  Could easily incorporate back button with the frame.</p> ]]></description>
<pubDate>Tue, 07 Oct 2008 15:46:02 GMT</pubDate>
<guid>http://snipplr.com/view/8884/prototype-and-scriptaculous-slideshow/</guid>
</item>
<item>
<title>(JavaScript) Sort Element Array by DOM Position - kouphax</title>
<link>http://snipplr.com/view/8763/sort-element-array-by-dom-position/</link>
<description><![CDATA[ <p>This function will sort an array of DOM elements in order of the DOM position.  Useful when using calls such as $$("img.L,img.M") which doesn;t return a sorted element array.

It uses prototype but you can replace the Prototype.Browser stuff with anything else.</p> ]]></description>
<pubDate>Thu, 02 Oct 2008 05:02:12 GMT</pubDate>
<guid>http://snipplr.com/view/8763/sort-element-array-by-dom-position/</guid>
</item>
<item>
<title>(JavaScript) Millisecond Equivalent of Time Interval - wizard04</title>
<link>http://snipplr.com/view/8431/millisecond-equivalent-of-time-interval/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 16 Sep 2008 14:32:43 GMT</pubDate>
<guid>http://snipplr.com/view/8431/millisecond-equivalent-of-time-interval/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Object Inheritance - wizard04</title>
<link>http://snipplr.com/view/8146/javascript-object-inheritance/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 02 Sep 2008 10:48:31 GMT</pubDate>
<guid>http://snipplr.com/view/8146/javascript-object-inheritance/</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) string trim function - gbot</title>
<link>http://snipplr.com/view/5905/string-trim-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Apr 2008 05:58:25 GMT</pubDate>
<guid>http://snipplr.com/view/5905/string-trim-function/</guid>
</item>
<item>
<title>(JavaScript) Include Apache SSIs in JSPs using Prototype - trmarch</title>
<link>http://snipplr.com/view/5649/include-apache-ssis-in-jsps-using-prototype/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Apr 2008 21:00:32 GMT</pubDate>
<guid>http://snipplr.com/view/5649/include-apache-ssis-in-jsps-using-prototype/</guid>
</item>
<item>
<title>(JavaScript) Javascript Footnote Creator - TALlama</title>
<link>http://snipplr.com/view/5522/javascript-footnote-creator/</link>
<description><![CDATA[ <p>Finds footnotes and adds them to a list. Just put "footnote" into the class of an element, and it'll automatically pull it out of context, replace it with a reference link, put the footnote into the list with id 'notes', and include a backreference so that your readers don't get lost. Embedded markup and nested footnotes work fine. Everything has CSS classes, so you can style it to your heart's content. Requires Prototype.</p> ]]></description>
<pubDate>Fri, 21 Mar 2008 19:11:59 GMT</pubDate>
<guid>http://snipplr.com/view/5522/javascript-footnote-creator/</guid>
</item>
<item>
<title>(JavaScript) DIV instead SELECT tag () - timka</title>
<link>http://snipplr.com/view/4379/div-instead-select-tag-/</link>
<description><![CDATA[ <p>Unable to use CSS for select tag?
Simple changes approve it.

P.S. Don't forget about prototype framework ()</p> ]]></description>
<pubDate>Wed, 19 Dec 2007 05:04:28 GMT</pubDate>
<guid>http://snipplr.com/view/4379/div-instead-select-tag-/</guid>
</item>
<item>
<title>(JavaScript) Handling element focus with tab - elightbo</title>
<link>http://snipplr.com/view/4282/handling-element-focus-with-tab/</link>
<description><![CDATA[ <p>This uses prototype to intercept tab focus and place it on a button (or any other element).  Firefox and Safari will bypass the button when tabbing through a form.  Useful for buttons after textareas.</p> ]]></description>
<pubDate>Fri, 07 Dec 2007 16:34:46 GMT</pubDate>
<guid>http://snipplr.com/view/4282/handling-element-focus-with-tab/</guid>
</item>
<item>
<title>(JavaScript) prototype class creation - arcturus</title>
<link>http://snipplr.com/view/4242/prototype-class-creation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 02 Dec 2007 12:00:20 GMT</pubDate>
<guid>http://snipplr.com/view/4242/prototype-class-creation/</guid>
</item>
<item>
<title>(JavaScript) String.replaceAll method implementation - alvaroisorna</title>
<link>http://snipplr.com/view/3141/stringreplaceall-method-implementation/</link>
<description><![CDATA[ <p>This snippet adds a replaceAll method to the String prototype, so that you can call it later like this:
"test string".replaceAll("s", "-"); // returns "te-t -tring"</p> ]]></description>
<pubDate>Wed, 04 Jul 2007 01:11:24 GMT</pubDate>
<guid>http://snipplr.com/view/3141/stringreplaceall-method-implementation/</guid>
</item>
<item>
<title>(JavaScript) Round floats - clapfouine</title>
<link>http://snipplr.com/view/2386/round-floats/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 26 Mar 2007 03:44:23 GMT</pubDate>
<guid>http://snipplr.com/view/2386/round-floats/</guid>
</item>
<item>
<title>(JavaScript) Extending Objects and Custom Objects using .prototype - 1man</title>
<link>http://snipplr.com/view/2364/extending-objects-and-custom-objects-using-prototype/</link>
<description><![CDATA[ <p>Extend a custom object, and a pre-defined object(e.g. string) using .prototype available in JS.</p> ]]></description>
<pubDate>Tue, 20 Mar 2007 08:02:15 GMT</pubDate>
<guid>http://snipplr.com/view/2364/extending-objects-and-custom-objects-using-prototype/</guid>
</item>
<item>
<title>(JavaScript) onDomReady - elightbo</title>
<link>http://snipplr.com/view/2337/ondomready/</link>
<description><![CDATA[ <p>Dan at Vivabit created the DOM Ready extension for the Prototype framework which allows you to start executing code when the DOM is ready and all elements are available, leaving the images and other element loading in the background. Very nice work and something i’ve been waiting for a long time!</p> ]]></description>
<pubDate>Thu, 15 Mar 2007 09:08:20 GMT</pubDate>
<guid>http://snipplr.com/view/2337/ondomready/</guid>
</item>
<item>
<title>(JavaScript) inArray prototype - clapfouine</title>
<link>http://snipplr.com/view/2155/inarray-prototype/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 09 Feb 2007 06:15:55 GMT</pubDate>
<guid>http://snipplr.com/view/2155/inarray-prototype/</guid>
</item>
<item>
<title>(JavaScript) Function loading in prototype - vanne</title>
<link>http://snipplr.com/view/2008/function-loading-in-prototype/</link>
<description><![CDATA[ <p>This is a prototype based method for loading functions, this is an alternative to using window.onload = function();</p> ]]></description>
<pubDate>Sun, 21 Jan 2007 17:50:39 GMT</pubDate>
<guid>http://snipplr.com/view/2008/function-loading-in-prototype/</guid>
</item>
<item>
<title>(JavaScript) The Prototype Dollar Function - noname</title>
<link>http://snipplr.com/view/1926/the-prototype-dollar-function/</link>
<description><![CDATA[ <p>It doesn't require prototype.js</p> ]]></description>
<pubDate>Thu, 04 Jan 2007 10:20:19 GMT</pubDate>
<guid>http://snipplr.com/view/1926/the-prototype-dollar-function/</guid>
</item>
<item>
<title>(JavaScript) Prototype Based JavaScript Tooltip - jonhenshaw</title>
<link>http://snipplr.com/view/1441/prototype-based-javascript-tooltip/</link>
<description><![CDATA[ <p>JavaScript Tooltip libraries number about as many as rounded CSS corner libraries.

Jonathan Weiss thought the ones he saw were "too complicated and bloated, did just too much and most of the time were still not flexible enough with the tooltip. So I decided to create my own library that is based on prototype.js".</p> ]]></description>
<pubDate>Fri, 20 Oct 2006 17:22:09 GMT</pubDate>
<guid>http://snipplr.com/view/1441/prototype-based-javascript-tooltip/</guid>
</item>
<item>
<title>(JavaScript) Efecto HOVER sobre cualquier cosa - sendoa</title>
<link>http://snipplr.com/view/1024/efecto-hover-sobre-cualquier-cosa/</link>
<description><![CDATA[ <p>Tomado de Sofá Naranja (http://sofanaranja.com)

La idea es que a todos los elementos que queramos hacerles un hover les asignamos la clase “hover”, y definimos en otra clase “hoverclass” los atributos del estado hover.

A pesar de que en el código se usa una variable llamada ‘div’, funciona con *cualquier* elemento de la página…

Lo que hacemos, igual que con el método anterior, es buscar elementos que contengan la clase ‘hover’, y les asignamos la clase ‘hoverclass’ en el evento ‘onmouseover’.

Más cosillas… Event.observe() es la forma inteligente de asignar una función a un evento sin “manchar” el HTML de la página. En este caso le asigno la función ‘init()’, que se encarga de llamar a ’setHover()’ con los dos parámetros que necesita (el class que he usado para definir qué elementos tienen hover, y el class que quiero usar cuando se hace rollover).</p> ]]></description>
<pubDate>Thu, 07 Sep 2006 01:55:30 GMT</pubDate>
<guid>http://snipplr.com/view/1024/efecto-hover-sobre-cualquier-cosa/</guid>
</item>
</channel>
</rss>