<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 17 Jun 2026 10:13:08 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) mootools dropdownify - dom111</title>
      <link>https://snipplr.com/view/40517/mootools-dropdownify</link>
      <description>&lt;p&gt;So recently I was asked to change a navigation style of an existing site to drop-down menus.&#13;
&#13;
Simple, I thought, just use one of the many existing drop-down plugins. I tried many, but most seemed to use hardcoded styles and I had a few problems (some of which I encountered again, writing this).&#13;
&#13;
So Iâ€™ve made this, I think itâ€™s fairly robust, but Iâ€™m sure thereâ€™ll be problems with embedded objects (flash) and select boxes (in &lt;= IE6), but for my needs, it sufficed, so I thought I'd share, in case anyone else needs a simple script to manage drop-downs.&lt;/p&gt;</description>
      <pubDate>Wed, 15 Sep 2010 19:50:05 UTC</pubDate>
      <guid>https://snipplr.com/view/40517/mootools-dropdownify</guid>
    </item>
    <item>
      <title>(JavaScript) autoPopulate 0.1 - Automatically populate form fields using a bookmarklet - dom111</title>
      <link>https://snipplr.com/view/40515/autopopulate-01--automatically-populate-form-fields-using-a-bookmarklet</link>
      <description>&lt;p&gt;I\'m constantly testing forms over and over for one reason or another, and am fed up with making a typo and autocomplete not populating all the data, so I made this little snippet. It searches for form elements on the page (input, textarea and select) and using regular expressions, tries to match the field name and populate the data as best it can. There\'s also a generator so instead of the random test data I\'ve provided you can generate your own.\r\n\r\nDemo:\r\n[http://www.dom111.co.uk/files/autoPopulate/](http://www.dom111.co.uk/files/autoPopulate/)\r\n\r\nGenerator:\r\n[http://www.dom111.co.uk/files/autoPopulate/generate.html](http://www.dom111.co.uk/files/autoPopulate/generate.html)&lt;/p&gt;</description>
      <pubDate>Wed, 15 Sep 2010 19:42:07 UTC</pubDate>
      <guid>https://snipplr.com/view/40515/autopopulate-01--automatically-populate-form-fields-using-a-bookmarklet</guid>
    </item>
    <item>
      <title>(JavaScript) JSS 0.1 - Nested CSS using Javascript - dom111</title>
      <link>https://snipplr.com/view/14629/jss-01--nested-css-using-javascript</link>
      <description>&lt;p&gt;Ever wanted nested stylesheets?&#13;
&#13;
I have!&#13;
&#13;
Now you can have them! If you code your stylesheets as JSON and parse them using JSS 0.1. You could have the following:&#13;
&#13;
      JSS({&#13;
        'html': {&#13;
          'body': {&#13;
            background: '#fff',&#13;
 &#13;
            'div#header': {&#13;
              height: '100px',&#13;
              background: '#00f'&#13;
            },&#13;
 &#13;
            'div#footer': {&#13;
              height: '40px',&#13;
 &#13;
              'span#copyright': {&#13;
                color: '#0f0'&#13;
              },&#13;
              'span#testing': {&#13;
                color: 'black',&#13;
                background: '#eeccff'&#13;
              }&#13;
            }&#13;
          },&#13;
          width: '800px'&#13;
        }&#13;
      });&#13;
Turned into:&#13;
&#13;
      html {&#13;
        width: 800px;&#13;
      }&#13;
 &#13;
      html body {&#13;
        background: #fff;&#13;
      }&#13;
 &#13;
      html body div#header {&#13;
        height: 100px;&#13;
        background: #00f;&#13;
      }&#13;
 &#13;
      html body div#footer {&#13;
        height: 40px;&#13;
      }&#13;
 &#13;
      html body div#footer span#copyright {&#13;
        color: #0f0;&#13;
      }&#13;
 &#13;
      html body div#footer span#testing {&#13;
        color: black;&#13;
        background: #eeccff;&#13;
      }&#13;
&#13;
Check out the blog post for a demo and a zip file containing the demo, full version and minified version.&lt;/p&gt;</description>
      <pubDate>Fri, 01 May 2009 11:30:57 UTC</pubDate>
      <guid>https://snipplr.com/view/14629/jss-01--nested-css-using-javascript</guid>
    </item>
    <item>
      <title>(JavaScript) Webkit (Safari) - Speed Dial bookmarklet - dom111</title>
      <link>https://snipplr.com/view/11154/webkit-safari--speed-dial-bookmarklet</link>
      <description>&lt;p&gt;A bookmarklet that enabled a speed dial storing the data in webkit's SQL engine. There are bugs and a few conditions, read: [http://www.dom111.co.uk/blog/coding/webkit-speed-dial-bookmarklet/59](http://www.dom111.co.uk/blog/coding/webkit-speed-dial-bookmarklet/59) for more information.&lt;/p&gt;</description>
      <pubDate>Tue, 13 Jan 2009 20:27:31 UTC</pubDate>
      <guid>https://snipplr.com/view/11154/webkit-safari--speed-dial-bookmarklet</guid>
    </item>
    <item>
      <title>(JavaScript) submitEvents - Javascript form submission handler - dom111</title>
      <link>https://snipplr.com/view/7865/submitevents--javascript-form-submission-handler</link>
      <description>&lt;p&gt;Requires Mootools 1.2&lt;br/&gt;&#13;
http://mootools.net/download&#13;
&#13;
Based on the mootools javascript framework a re-usable class for easily implementing an array of on submit events.&#13;
&#13;
* Confirmation - Provides an Ok, Cancel input box before proceeding further&#13;
* Submit Button - Disable and change the text on a submit button&#13;
* Information Div - Display a div that lets the user know something is happening&#13;
* Undo - Undo the changes (re-enable a previously disabled submit button, change the information div) that have been carried out by the class&#13;
* AJAX - Submit the form using AJAX instead of the â€˜old fashionedâ€™ way&#13;
&#13;
This work is released under the creative commons share alike license.&#13;
&#13;
Requires Mootools 1.2&lt;br/&gt;&#13;
http://mootools.net/download&lt;/p&gt;</description>
      <pubDate>Wed, 13 Aug 2008 21:10:57 UTC</pubDate>
      <guid>https://snipplr.com/view/7865/submitevents--javascript-form-submission-handler</guid>
    </item>
  </channel>
</rss>
