"Arnar Birgisson" <[EMAIL PROTECTED]> writes:
> On 1/25/07, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>> Hi Arnar! It doesn't work. I've lowered it up to 0.3 seconds and it started
>> giving me errors so I had to raise it back to 0.5 seconds and sometimes to 1s
>> depending on how much data can be returned as the result of the JSON call...
>
> That's too bad :o(
Indeed... :-( If it made the value available even before it gets rendered on
screen it would be awesome. Maybe the logic to select the default option uses
the resulting object instead of the data on the DOM tree. I'll see how hard
it is to always specify a default choice (since data is dynamic and it is a
nested operation, I don't know beforehand what is available or not). This
might solve the problem, otherwise ...
>> With this I could also try setting a hidden field and force some artificial
>> value to be set by default, but I would like to avoid that as much as
>> possible.
>
> Yes, I was going to suggest that too.
... what I plan doing is:
- Send, in my JSON answer, a "default_value" that I'd use to set a hidden
field and adjust the value of the SELECT element,
- Use the hidden field to process the next JSON call while the first SELECT
is being rendered,
- Repeat this for all "nested" calls, always retrieving the value of the
hidden field
I have events that are signaled after the theoretical filling of the SELECT so
I know when I have the value for the hidden field available (I tried that to
see if when the event is signaled the value could be read from the previous
SELECT but it couldn't).
Is this too much engineering?
> All I can say is "stupid IE" :o)
All I can do is agree completely. ;-)
--
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
-~----------~----~----~----~------~----~------~--~---