I may need to look into your function definition. Only HTML part won't give anything because normally all browsers would use the same syntax to call script functions (and that means your HTML part won't show anything).
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
In your first code portion line 9, your HTML for 'divCompanySelectList' is a select element, but you are retrieving its value in your second code portion line 14 by using direct '.value'.
In your first code portion line 9, your HTML for 'divCompanySelectList' has onchange event calling prepareFetchListsPopulateCompanys(this.selectedIndex), but in your function in second code portion line 12, your function prototype does not have the argument in it?
Could you try the code below...
// replace this code to your 2nd code portion only starting from line 12 to 18
function prepareFetchListsPopulateCompanys(selectIdx) {
var el=document.getElementById('divCompanySelectList');
var t = el.options[selectIdx].value;
getCompanyDetails(t); // Not sure what argument this function really takes?
getContacts(t); // Not sure what argument this function really takes?
getContracts(t); // Not sure what argument this function really takes?
}
One thing... I did not add any verification of argument here because I do not want to confuse you. However, good practice would be that you should verify whether or not arguments passing to the function are valid.
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
Oh ok. That is a way to create XML object in older version of IE. What IE version are you using in this? If you are using IE 9, you should check this link about how to use the XML object.
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
That's what Microsoft does... IE9 has different features as well. I don't have it to test because I don't use Window 7 here...
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239