<?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 11:47:36 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) SALSA Template Script to generate dynamic titles - powerthru</title>
      <link>https://snipplr.com/view/46057/salsa-template-script-to-generate-dynamic-titles</link>
      <description>&lt;p&gt;This was developed for 1Sky to write out titles to the template.  Thsi signle template can handle many DIA pages.  (Donation, Action, TAF).  It can determine what kind of page it is on by reading the URL and can even handle short URLs&lt;/p&gt;</description>
      <pubDate>Thu, 23 Dec 2010 04:37:00 UTC</pubDate>
      <guid>https://snipplr.com/view/46057/salsa-template-script-to-generate-dynamic-titles</guid>
    </item>
    <item>
      <title>(JavaScript) require one of three Salsa group checkboxes to be selected - powerthru</title>
      <link>https://snipplr.com/view/42112/require-one-of-three-salsa-group-checkboxes-to-be-selected</link>
      <description>&lt;p&gt;We set up a voting page, where supporters would choose one of three candidates (only two are shown in the snippet). By clicking the checkbox, the supporter would add themselves to a Salsa group. This way only one vote for a candidate by a supporter would count, it would be easy to find the count for each candidate, and it would be easy to find the supporters who picked each candidate. &#13;
&#13;
We wanted to make it "required" to select one of the checkboxes, but we couldn't simply make the checkbox required because then supporters would be required to choose THAT checkbox. The solution was to add another field, called pac_voted, and make it a hidden field, and require THAT field to be filled out. Then we used the javascript shown here to fill out the pac_voted field whenever any of the groups checkboxes was selected. This way if no checkbox was selected, the error checking on the page reported that a required field was missing; but if any checkbox was checked, the page passed error checking.&lt;/p&gt;</description>
      <pubDate>Tue, 12 Oct 2010 16:06:27 UTC</pubDate>
      <guid>https://snipplr.com/view/42112/require-one-of-three-salsa-group-checkboxes-to-be-selected</guid>
    </item>
    <item>
      <title>(JavaScript) Check form checkbox when the label is clicked - powerthru</title>
      <link>https://snipplr.com/view/42102/check-form-checkbox-when-the-label-is-clicked</link>
      <description>&lt;p&gt;this is a way to deal with the fact that we can\'t reliably make checkboxes look larger on forms. So instead, we surround the form with a colored div, and set it up so that when the user clicks on the label next to the checkbox it checks the box.&lt;/p&gt;</description>
      <pubDate>Tue, 12 Oct 2010 13:08:26 UTC</pubDate>
      <guid>https://snipplr.com/view/42102/check-form-checkbox-when-the-label-is-clicked</guid>
    </item>
  </channel>
</rss>
