[Udpcast] Udpcast cast-o-matic

Stephane steph2607 at tiscali.fr
Wed Sep 20 16:58:02 CEST 2006


Hi,

A suggestion about: http://udpcast.linux.lu/cast-o-matic/

Would it be possible to add javascript buttons to check/uncheck all drivers?

Here is my proposition:
===============================
<script type="text/javascript">
	function checkAll(){
		champs_input=document.getElementsByTagName('input');
		for(i=0;i<champs_input.length;i++){
			type=champs_input[i].getAttribute('type');
			name=champs_input[i].getAttribute('name');
			if(type=="checkbox"){
				champs_input[i].checked=true;
			}
		}
	}
	function UncheckAll(){
		champs_input=document.getElementsByTagName('input');
		for(i=0;i<champs_input.length;i++){
			type=champs_input[i].getAttribute('type');
			name=champs_input[i].getAttribute('name');
			if(type=="checkbox"){
				champs_input[i].checked=false;
			}
		}
	}
</script>
===============================

An to test:
===============================
<p><a href="javascript: checkAll();">Check All</a> / <a href="javascript: 
UncheckAll();">Uncheck All</a></p>
===============================

Thank you very much!
-- 
Stéphane.




More information about the Udpcast mailing list