<?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>Tue, 09 Jun 2026 21:22:56 +0000</lastBuildDate>
    <item>
      <title>(jQuery) Copy one element\'s eventhandlers to another - chlab</title>
      <link>https://snipplr.com/view/64750/copy-one-elements-eventhandlers-to-another</link>
      <description>&lt;p&gt;Here's a snippet for copying (all) the eventhandlers of one element to another with jQuery and effectively cloning the behavior of one element.&#13;
&#13;
Keep in mind that if it's possible, you should just register the same handlers you actually need, instead of just blindly copying all of them. But in some cases, e.g. when using a plugin that you do not wish to modify, this can come in handy.&lt;/p&gt;</description>
      <pubDate>Thu, 26 Apr 2012 22:02:27 UTC</pubDate>
      <guid>https://snipplr.com/view/64750/copy-one-elements-eventhandlers-to-another</guid>
    </item>
    <item>
      <title>(JavaScript) Replace (update) a View in a ScrollableView in Titanium Mobile - chlab</title>
      <link>https://snipplr.com/view/54340/replace-update-a-view-in-a-scrollableview-in-titanium-mobile</link>
      <description>&lt;p&gt;Itâ€™s pretty straightforward, we loop the existing Views of the ScrollableView and copy each View, replacing the one to be change, to a new array. Then we tell the ScrollableView to use our new Views-array for itâ€™s Views.&#13;
I hope this helps someone.&lt;/p&gt;</description>
      <pubDate>Tue, 24 May 2011 22:29:17 UTC</pubDate>
      <guid>https://snipplr.com/view/54340/replace-update-a-view-in-a-scrollableview-in-titanium-mobile</guid>
    </item>
    <item>
      <title>(JavaScript) Create a transparent TabbedBar for Titanium Mobile - chlab</title>
      <link>https://snipplr.com/view/54338/create-a-transparent-tabbedbar-for-titanium-mobile</link>
      <description>&lt;p&gt;We create a View with a background color, put a semi-transparent TabbedBar with empty button names on top of it, then add another layer of fully visible labels spaced to fit the TabbedBar beneath it. Everything is then wrapped in one View, which you can add to another View or Window.&lt;/p&gt;</description>
      <pubDate>Tue, 24 May 2011 22:23:51 UTC</pubDate>
      <guid>https://snipplr.com/view/54338/create-a-transparent-tabbedbar-for-titanium-mobile</guid>
    </item>
    <item>
      <title>(JavaScript) Split string into array - chlab</title>
      <link>https://snipplr.com/view/30463/split-string-into-array</link>
      <description>&lt;p&gt;I needed to break down a long string today and insert line breaks so I wrote this little function. You can use it to split a long string into chunks of a defined length and get them as an array or join them by a defined character (e.g. &amp;lt;br /&amp;gt;). Have fun.&lt;/p&gt;</description>
      <pubDate>Mon, 29 Mar 2010 07:10:55 UTC</pubDate>
      <guid>https://snipplr.com/view/30463/split-string-into-array</guid>
    </item>
    <item>
      <title>(PHP) Easy folder structure set up - chlab</title>
      <link>https://snipplr.com/view/28038/easy-folder-structure-set-up</link>
      <description>&lt;p&gt;Here is a function you can use to automatically set up a complex folder structure with a specified file mode. All you have to do is create the "root" directory and pass an array describing the folder structure you would like to create in it. If the directory already contains a part of the desired directory structure, the script will set the specified file mode on every existing folder. There's an example how to use the function at the bottom of the snippet.&#13;
&#13;
I use this to set up user home's. I tested this with PHP 5.2.11 on Apache running on Mac OS X. It should work on most Linux servers. It won't work on Windows.&#13;
&#13;
This function should be easy to modify for your needs or integrate into a class. Have fun.&lt;/p&gt;</description>
      <pubDate>Tue, 09 Feb 2010 09:34:41 UTC</pubDate>
      <guid>https://snipplr.com/view/28038/easy-folder-structure-set-up</guid>
    </item>
  </channel>
</rss>
