View Full Version : Combox Xml Attributes ?
num3thod
03-09-2007, 08:05 PM
How many xml node attributes can be passed to a Combobox item?
scenario:
xml = <video url="video01.flv" xml="video01.xml" desc="video 01" />
as = combobox.addItem(videos[i].attributes.desc, videos[i].attributes.url, videos[i].attributes.xml);
Linnium
03-09-2007, 08:13 PM
How many xml node attributes can be passed to a Combobox item?
scenario:
xml = <video url="video01.flv" xml="video01.xml" desc="video 01" />
as = combobox.addItem(videos[i].attributes.desc, videos[i].attributes.url, videos[i].attributes.xml);
Well, I don't know if ComboBoxes and Arrays behave the same, but this is what I would do with an array:
name_array.push({desc:videos[i].attributes.desc, url:videos[i].attributes.url, xml:videos[i].attributes.xml});
num3thod
03-09-2007, 08:18 PM
Work's about the same. I'll insert that in my for loop for populating the cbox.
Thx
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.