2

I am implementing datatables with a table I currently have, however in Chrome and IE it loads correctly looking like: chrome and ie loads right Larger pic: https://i.sstatic.net/g34TG.png

However when I use Firefox it looks like this: surprisingly firefox messes up Larger pic: https://i.sstatic.net/taRUN.png

It looks like the plugin is not creating a new line after "Show X Entries."

The table is set for Width="100%". The jquery is as follows:

$(document).ready(function () {
    var oTable = $('#table1').dataTable({
    "bStateSave": true,
    });
});

The table is created as follows:

<table id="table1" border="0" style="width:100%;">
    <thead>
        <tr>
            <td>ID</td><td>UserName</td><td>Sample Stuff</td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>1234</td><td>user1</td><td>random stuff</td>
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <td>
                <span>
                    <input type="text"  size="11" placeholder="Filter ID"/>
                </span>
            </td>
            <td>
                <span>
                    <input type="text"   size="10" Placeholder="Filter Username" />
                </span>
            </td>
            <td>
                <span>
                    <input type="text"  size="4"  Placeholder="Filter SampleStuff"/>
                </span>
            </td>
        </tr>
    </tfoot>
</table>

Any ideas on why this is happening? I have looked into other alternatives vs Datatables, but datatables looks like the best to use.

1 Answer 1

4

Try this "sDom": 'T<"clear">lfrtip', where clear will clear the floats

$(document).ready(function () {
    var oTable = $('#table1').dataTable({
    "sDom": 'T<"clear">lfrtip',
    "bStateSave": true,
    });
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.