Jorge Godoy <[EMAIL PROTECTED]> writes:

> Jorge Godoy <[EMAIL PROTECTED]> writes:
>
>> "Karl Guertin" <[EMAIL PROTECTED]> writes:
>>
>>> If you don't figure out a solution, I'd add a class to each
>>> input/select that I'm looking to watch and do:
>>>
>>> connect(getElementsByTagAndClassName('input','changes'),'onchange',action())
>>> connect(getElementsByTagAndClassName('select','changes'),'onchange',action())
>>
>> Would this be faster than connecting to each individual element?  I need that
>> because the individual approach caused troubles in the past when I had to
>> process 308 elements...  It hadn't even reached the 500 limit and is not far
>> by a safe limit from the standard situation (i.e. daily routine).
>>
>> (http://groups.google.com.br/group/mochikit/browse_thread/thread/27527454a9feb34a/d2d78fd03a3911f3)
>
> I've published the code from the track here:
> http://godoy.homeip.net/~godoy/testing.html 
>
> I'll be creating variations to that with your suggestions to see (I'll also
> put an example with more entries, to show the problem).

With the code at
http://godoy.homeip.net/~godoy/testing2.html 
following your suggestion I could bing 563 elements before any warning on
Firefox or IE.  

I believe, then, that this is the best approach...

But there should be a better way.  I don't believe that this should be a
problem...  I am studying an alternative approach on the application side to
avoid creating the table dinamically and that should buy me more time for the
script to run connecting the elements to the calculating function.


If nobody has a better answer, I'll go this way and connect each element
individually.


Thanks everybody,
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to