Peter
unread,Sep 23, 2012, 2:10:55 AM9/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mootool...@googlegroups.com
No, there is no right Element.implement.
I have a Function getChecked
function getChecked() {
var count=0;
var valuess = '';
if(typeOf(el)=='elements') {
el.each( function(el) {
if(el.get('checked')) {
count++;
if(valuess!="") valuess +=',';
valuess += el.get('value');
}
});
} else {
if(el.get('checked')) { count=1; valuess=el.get('value'); }
}
return { 'count' : count, 'values':valuess } ;
}
var el = $$('myCeckboxes');
alert(getChecked(el));
The Idee is the function to use as implement for Object.
alert(el.getChecked().values);
It works when not a call for setStyles, but when i use set Styles, Mootools call the implemented Function as style ???
$('myDiv').setStyles({ 'left':'10px', 'top':'20px' });
then Mootools makes in Element.implement
setStyle( left ...
setStyle( top ...
setStyle( getChecked ...
I want to understand why this does not work.
Greetings,
and sorry for my bad english