1. Use the attached config.js file in your page(take a backup of the original one):
2. In your HTML page where the chained select list comes, remove the inline 'onload' attribute from the body element and insert the following into any of your script block:
Code:
window.onload = function(){
if(document.getElementById('loading') && document.getElementById('content')){
document.getElementById('loading').style.display = 'none';
document.getElementById('content').style.display = 'inline';
}
aaddListGroupOnDomReady(); //This calls the function available in the config.js
initListGroup('chainedmenu', document.listmenu0.firstlevel, document.listmenu0.secondlevel, document.listmenu0.thirdlevel, document.listmenu0.fourthlevel, 'saveit');
}
Make sure that the elements with ids 'loading' and 'content' available in your page otherwise the first part of the above mentioned event handler will be proceed further.
3. Modify the CSS (the highlighted lines)
Code:
#loading{
position: absolute;
position: middle; //There is no such property value in CSS Remove this line
margin-left: auto;
margin-right: auto;
padding-left: auto;
padding-right: auto;
color: grey;
background: #ffffff;
font-family: tahoma;
font-size: 11px;
color: 456a96; //You need to put a # before the color number.
}
The above CSS rule contains two 'color' properties one I've highlighted and there is one more with a value of 'grey' remove one and use a meaningful value.
Hopefully if you do these changes the things will work as you want.
Bookmarks