input type hidden, problem in IE

input type hidden, problem in IE

rodrangrarodrangra Posts: 18Questions: 3Answers: 0
edited February 2013 in DataTables 1.9
Hi!
I am new using DataTables, but I liked it very much and I intend to use a lot. so Thanks a lot!

Well, I have a problem using the dataTables.
I am using the datatable together with form submit, and I have some 'input type hidden' inside the form.
I had some problems in IE, because the hidden fields are been sent empty (or not been sent????). In others browsers it do not occurs.

The fields are 'input type hidden', and I use the stlye='display:none' too.....
I am using the 1.9.4 version

Thanks.

Replies

  • rodrangrarodrangra Posts: 18Questions: 3Answers: 0
    Please help me!
  • essexstephessexsteph Posts: 57Questions: 0Answers: 0
    Can you post the html for your table so we can see exactly where the hidden inputs are?
  • rodrangrarodrangra Posts: 18Questions: 3Answers: 0
    edited February 2013
    Hi, thanks, I just tested now in IE 9 and the problem occurs!
    The data sent by the form was empty....
    Please, see the code between the form:
    [code]







    .
    Nome
    LMEE
    Qtd
    UVP*
    Preço unit
    Status
    Comprador










    1

    Agua sanitaria brilhante 2 litros

    un

    18

    1.00
    un


    BRL


    Aberto


    Comprador SAP








    2

    Agua sanitaria brilhante 1lt

    un

    36

    1.23
    un


    BRL


    Aberto


    Comprador SAP
















    [/code]
  • rodrangrarodrangra Posts: 18Questions: 3Answers: 0
    And here is the code inside the head, only the part that activates the datatable.
    It is inside the ready function. I am using the last version of Jquery and Jquery UI.
    [code]
    ////Extends Jquery////
    $.extend( $.fn.dataTableExt.oJUIClasses, {
    "sSortJUIAsc": false,
    "sSortJUIDesc": false,
    "sSortJUI": false,
    "sSortJUIAscAllowed": false,
    "sSortJUIDescAllowed": false
    });
    ////dataTable////
    if( $(".dataTable").length > 0 ){
    $('.dataTable').dataTable({
    "bJQueryUI": true,
    "bPaginate": false,
    "bLengthChange": false,
    "bFilter": true,
    "bSort": true,
    "bInfo": false,
    "bAutoWidth": false,
    "aaSorting": [],
    "oLanguage": { "sSearch": txtfiltrar, "sZeroRecords": txtnadaencontrado }
    });
    }//if dataTable
    [/code]
  • rodrangrarodrangra Posts: 18Questions: 3Answers: 0
    The problem occurs only when I use the IE 9.....
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    1. Please link to a test case: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    2. Does it work if you don't initialise DataTables on the page?

    Allan
  • rodrangrarodrangra Posts: 18Questions: 3Answers: 0
    edited February 2013
    Hi Allan, thanks for the reply.

    2. Yes, it is an old code that always worked.

    Well, yesterday I made a lot of chances in the code, and it started to work fine. So I would like to report you:

    A) I put all input types inside the tag table, so now it looks like that:
    ....a lot of things.....

    It started to work.... But the crazy thing is that the problem occurs only in IE9, I ve tested in IE7,IE8,FF,Chrome,Opera, and it worked fine....

    So if you want to investigate, it is simple, do something like this in IE9:
    .........things.....

    Two details: inside the table I had two different things (I took all out):
    1) the 's inside the tbody used to have an "id" , I took out.
    2) the inside the tbody had 2 events => onfocus and onblur

    These are the only "differents" things I found beyoud the input type hidden outside of the

    THANKS A LOT! AND CONGRATULATIONS ABOUT THE GREAT WORK!
    best regards from Brazil! :)
This discussion has been closed.