[mochikit] defferedlist, how to know the index of a particular deffered in the list

2007-06-15 Thread Yves
I have a situation where I have an array of arbitray length consisting of keywords. For each keyword, I fire off a doSimpleXMLHttpRequest(). I then use DeferredList() to create a list of all the Deferred objects and I add a callback. Now my problem is, how do I know from my callback function

[mochikit] Re: defferedlist, how to know the index of a particular deffered in the list

2007-06-15 Thread Arnar Birgisson
Hi there, On 6/15/07, Yves [EMAIL PROTECTED] wrote: I then use DeferredList() to create a list of all the Deferred objects and I add a callback. Now my problem is, how do I know from my callback function that the result comes from the seventh request I made, or the ninth, etc.? The

[mochikit] Re: createDom option example please

2007-06-15 Thread hotani
Ok. Like I say, this is not very clear to me right now, and I'm trying to create an option list for a drop-down. Let me put up my shot-in-the-dark example, then maybe someone can correct me: // add a single value/text option to drop-down: OPTION(null, {'value': '123', 'text': 'some text'});

[mochikit] Re: createDom option example please

2007-06-15 Thread Bob Ippolito
On 6/15/07, hotani [EMAIL PROTECTED] wrote: Ok. Like I say, this is not very clear to me right now, and I'm trying to create an option list for a drop-down. Let me put up my shot-in-the-dark example, then maybe someone can correct me: // add a single value/text option to drop-down:

[mochikit] Re: createDom option example please

2007-06-15 Thread hotani
Great, thanks Bob. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

[mochikit] Re: createDom option example please

2007-06-15 Thread hotani
And here is a real working example in all its glory: appendChildNodes($('id'), OPTION({'value':val}, txt)); where 'val' is an id from the database and 'txt' is its description. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[mochikit] Re: createDom option example please

2007-06-15 Thread hotani
Good to know, thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED]