Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stefan Riedel-Seifert on Jan 08, 2010 01:48
open dhtmlx forum
Object based notation with childs

Hello,

i want to use the parent/child functionality with two comboboxes and object based notation:

<script>
var folderLists = {
parent: "folderLists",
width: 200,
readonly: true,
xml: "data.xml"
};

var folderLists = new dhtmlXCombo(folderLists);

var folderTypes = {
parent: "folderTypes",
width: 100,
items: [{
value: "own",
text: "<%= application->make_page_text( 'own folders' ) %>"
}, {
value: "shared",
text: "<%= application->make_page_text( 'shared folders' ) %>"
}]
};


var folderTypes = new dhtmlXCombo(folderTypes);

folderTypes.attachChildCombo(folderLists,"data.xml");

</script>

If i comment out
folderTypes.attachChildCombo(folderLists,"data.xml");
the two boxes are working,

Removing comments ends up in javascript error in IE: object doesn't support this method properly. Why?
FF3 and Firebug reports xml error and

folderTypes.attachChildCombo is not a function.

Is this not possible with object based notation?

Best regards,
Stefan

Answer posted by Alex (support) on Jan 11, 2010 09:05

Hello,

please check that dhtmlxcombo_group.js extension is included.