Hi there, this is with TS 6.7.1 on Solaris.Does any of you have experience with the execution order of Javascript/FormAPI code in different browsers (in this case IE6/7 and Firefox)?I have a DCT that contains a <container> with a number of sub-<container> elements. Depending on the selected option of a <select> item I want one of these sub-<container> elements to be displayed.The <option> elements of the select-box are supposed to be generated dynamically. Therefore I created a function that iterates over all sub-<container>s and creates one <option> for each of them with the addOption() method. One of the options is marked as selected.All this works fine, but when I later (immediately after creating the <option> list) try to determine which <option> was (pre-)selected as default, Firefox returns the correct <option> value, while IE returns null and a JS error.Any ideas?
// Initiate custom code upon FormInitIWEventRegistry.addFormHandler("onFormInit", pre_init);//---------------------------------------------------------------function pre_init() { if ((typeof top.gIsInitialRender=="undefined") || (top.gIsInitialRender==true)) { setTimeout("pre_init()", 500); } else { init(); }}//---------------------------------------------------------------function init() { // Your Custom Init Function . . . }