[mochikit] Re: createDom option example please
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'}); Trying to create this: option value=123some text/option and a bunch more if everything goes well I know that is completely wrong. This may be explained in the docs, but I'm not seeing it. The example for building a table element is not translating to an option. How does it know what element to use? --~--~-~--~~~---~--~~ 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 more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: createDom option example please
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: OPTION(null, {'value': '123', 'text': 'some text'}); Trying to create this: option value=123some text/option and a bunch more if everything goes well The first argument is attributes, additional arguments are contents. OPTION({'value': '123'}, some text); -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 more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: createDom option example please
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 more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: createDom option example please
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 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 more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: createDom option example please
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] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---