input type hidden, problem in IE
input type hidden, problem in IE
rodrangra
Posts: 18Questions: 3Answers: 0
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.
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.
This discussion has been closed.
Replies
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]
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]
2. Does it work if you don't initialise DataTables on the page?
Allan
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! :)