One option is to use the MochiKit way to handle events instead of
adding the event handler to the select HTML element. You'll then have
a reference to the event object in your comboprogetti function.

        function comboprogetti(e)
        {
                var selectList = e.src();
                alert(selectList.value);
        }

        function FillCombo(analist) {
                var list1 =
                        SELECT({'id':'anagr','name':'anagr'}
                        , map(partial(OPTION,null),analist));
                MochiKit.Signal.connect(list1,'onchange',comboprogetti);
                swapDOM('anagr', list1);
        }

        function runTest()
        {
                var a = new Array();
                a[0] = 'test';
                a[1] = 'bug';

                FillCombo(a);
        }


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to