>
>That's right! I didn't even notice the single checkbox part of this. If you
>look at the length of the checkbox array and get undefined, you only have
>one checkbox, so there's no need to bother with separate scripts. I think
>this would work for you:
>
>function checkForNoSelections() {
> var e = document.viewItems;
> if (!e.atccNum.length && e.attcNum.checked) {
> return true;
> }
> for (var i = 0; i < e.atccNum.length; i++) {
> if (e.attcNum[i].checked) {
> return true;
> }
> }
> alert('You must select an item to display.');
> return false;
>}
>
>Dave Watts, CTO, Fig Leaf Software
Hi Dave,
The script worked just fine.
Many thanks,
larry
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212516
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54