"troels knak-nielsen" <[EMAIL PROTECTED]> writes:
> could simply do signal(element, "onchange")?
I may be missing something, but I do "signal(element, 'onchange')" today
with MK and it works. Tested on FF 1.5, 2.0, IE 6 and IE 7.
Here's a cut & pasted function I use (full context so that you can see
if it is what you need... The signal is at the end of it):
================================================================================
function monta_select(destino, destino_id, campo, dados) {
var conteudo = [];
for (var indice in dados[campo]) {
var valor = dados[campo][indice][1];
var pk = dados[campo][indice][0];
var elemento = OPTION({'value':pk}, valor);
extend(conteudo, [elemento]);
}
replaceChildNodes(destino, conteudo);
if (conteudo.length > 0) {
if (destino_id != undefined) {
destino.value = destino_id.value;
}
callLater(0.1, sortSelect, destino);
}
signal(destino, 'onchange');
}
================================================================================
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---