Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back a page or two to re-sync the thread and this will then show latest posts. Thanks, Mike.

style.display = inline - different in FF/IE

  • 11-11-2008 11:52am
    #1
    Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭


    Incompatibilities are driving me insane

    Basically have a combo box, on selecting a value it reveals x amount of feilds below.
    Table-row-group is incompatible with IE, where as 'inline' works with IE but shows up weird for FF, 'block' shows weird for both.

    link

    Change combo box at the end , 'No of children..'
    
    <script type="text/javascript">
    function display(id1){
      document.getElementById('kid0').style.display = "inline";
    document.getElementById(id1).style.display = "inline";
    }
    </script>
    
    <table>
    <tr><td>
    
     <select  class="inputtext" name="kids" onChange="display(this.value);">
    <option value="">0</option>
    <option value="child1">1</option>
    <option value="child2">2</option>
    <option value="child3">3</option>
    <option value="child4">4</option>
    </select></td></tr>
    
    
    
    <tbody id="kid0" style="display:none;">
    <tr><td class="lightForm"><font face="arial" size="2">Ages of Children:</font></td>
    <td class="lightForm"></td></tr>
    </tbody>
    
    <tbody id="child1" style="display:none;">
    <tr><td class="lightForm" >
    
    <font face="arial" size="2">Child 1:</font></td>
    <td class="lightForm"><input  class="inputtext" style="width:13em" type="text" name="child1" value="<?= $child1; ?>">
    
    </td></tr>
    </tbody>
    
    </table>
    ...etc
    
    


Comments

  • Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭Placebo


    FYI

    style.visibility='hidden';

    or visible

    works for both.

    actually that just left a bank space, best use

    =""; to SHOW and none to hide.


Advertisement