Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

style.display = 'inline' problem in Mozilla

Status
Not open for further replies.

dirkg

Technical User
May 20, 2000
170
BE
Hello,

I have a problem with the javascript in the following page:
If you click the Show Filter button in IE it works fine: you can hide and show the filter.

In mozilla however the layout is completely changing: colums are switching, new lines are created every time you show and hide the filter...

The functions that are called are:

function SwitchFilter(){

if (document.forms['frmToDoList'].FilterShown.value == 1){
document.forms['frmToDoList'].FilterShown.value = 0;
}
else {
document.forms['frmToDoList'].FilterShown.value = 1;
}
ShowHideFilter();
}
function ShowHideFilter(){

if (document.forms['frmToDoList'].FilterShown.value == 0){
document.getElementById('FilterLine1').style.display = 'none';
document.getElementById('FilterLine2').style.display = 'none';
document.forms['frmToDoList'].FilterButton.value='Show Filter';
}
else {
document.getElementById('FilterLine1').style.display = 'inline';
document.getElementById('FilterLine2').style.display = 'inline';
document.forms['frmToDoList'].FilterButton.value='Hide Filter';
}
}




Any idea what the solution is?

Thanks a lot in advance for your help!

Grz,

Dirk
 
found it:
I have to use
document.getElementById('FilterLine1').style.display = '';

instaed of

document.getElementById('FilterLine1').style.display = 'inline';


Just to let you know in case you were encountering the same problem...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top