Weird Problem with Datatables 1.7b4 and tabletools 1.1.4..Possible Bug?
Weird Problem with Datatables 1.7b4 and tabletools 1.1.4..Possible Bug?
UPEngineer
Posts: 93Questions: 0Answers: 1
Hello all,
I have an interesting problem and it may be a bug, don't know for sure.
I have been working on a project using Datatables 1.7 beta 3 and TableTools 1.1.4. The table displays just fine and I can search and manipulate it just fine.
The problem is when I use the print function of tabletools, it works just fine until I exit out of the Print mode and back to regular table.
I get an error from JQuery 1.4.2 about "b is null". I also get a mysql error about a -1. I read in another post to comment out the iDisplayLength = -1 in which I did. I no longer get the mysql error but I still get the b is null error.
So then I tried using the datatables 1.7b4 and try it again. I no longer get a b is null error but now I am getting a json is null error in line 3084.
Line 3084 is if ( typeof json.sEcho != 'undefined' )
What could be causing this? Any help or ideas?
Also, the minified version of 1.7b4 still says 1.7b3. Is that a typo or actually still beta 3?
Other than that, you have created a wonderful product!
I have an interesting problem and it may be a bug, don't know for sure.
I have been working on a project using Datatables 1.7 beta 3 and TableTools 1.1.4. The table displays just fine and I can search and manipulate it just fine.
The problem is when I use the print function of tabletools, it works just fine until I exit out of the Print mode and back to regular table.
I get an error from JQuery 1.4.2 about "b is null". I also get a mysql error about a -1. I read in another post to comment out the iDisplayLength = -1 in which I did. I no longer get the mysql error but I still get the b is null error.
So then I tried using the datatables 1.7b4 and try it again. I no longer get a b is null error but now I am getting a json is null error in line 3084.
Line 3084 is if ( typeof json.sEcho != 'undefined' )
What could be causing this? Any help or ideas?
Also, the minified version of 1.7b4 still says 1.7b3. Is that a typo or actually still beta 3?
Other than that, you have created a wonderful product!
This discussion has been closed.
Replies
Yup - a packaging error I just spotted as well - and there is a new package with the correct comment. You will have beta 4 if you downloaded the beta 4 zip.
As for the error - are you using server-side processing and Firefox? If so, you might be able to work around this problem by finding the key binding line in TableTools ( $(document).bind( "keydown"... ), and replacing it with:
[code]
$(document).bind( "keydown", null, function(e){setTimeout(function(){fnPrintEnd(e)},20)} );
[/code]
If this is correct, then it's a Firefox bug... See thread http://datatables.net/forums/comments.php?DiscussionID=1655 for more details.
If it's not that, then perhaps you could post a link to an example? I've just tried it quickly, and haven't seen this specific problem - but it would be good to understand what is happening.
Regards,
Allan
I will use the new mininfied version then :)
As to the other issue, yes I was/am using Firefox and your solution appears to have worked!!!!
I completely missed that post you linked to, I found the other one. Sorry about you having to post this solution twice.
Again, thanks for your fine plugin and all you do here!!!
Scott