Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] "Select All" check box for swish.cgi

From: Troy Wical <troy(at)>
Date: Thu Jun 24 2010 - 12:00:58 GMT
On Jun 24, 2010, at 5:25 AM, David Brown wrote:
> But since you
> asked about checkboxes...
> Here's the beginning of a solution for you:
> <input id="si0" type="checkbox" name="si" value="0" /><label
> for="si0">Search Corporate Site 0</label>
> <input id="si1" type="checkbox" name="si" value="1" /><label
> for="si1">Search Corporate Site 1</label>
> <input id="si2" type="checkbox" name="si" value="2" /><label
> for="si2">Search Corporate Site 2</label>
> <input id="siall" type="checkbox"
> onchange="document.getElementById('si0').checked =
> document.getElementById('si1').checked =
> document.getElementById('si2').checked = this.checked" /><label
> for="siall">Search ALL Corporate Sites</label>

Thanks for the pointers Dave.  So, I need to figure out how to implement this in the cgi. Do I somehow incorporate this under the 'labels' section of my swish.cgi config file? I played with it a bit in the config but all my attempts clearly broke the functionality.

This is exactly what I want though.

Thanks, Troy
Users mailing list
Received on Thu Jun 24 08:00:56 2010