sExtends makes flash crash
sExtends makes flash crash
Drako
Posts: 73Questions: 0Answers: 0
The flash plugin always stops responding and crashes when i use the "sExtends": "collection"
also, for some reason on 2.0 the buttons dont work on firefox 3.6.13
using chrome 9.0.597.42 beta
screenshots:
chrome
http://img718.imageshack.us/img718/8375/chrometz.jpg
firefox
http://img688.imageshack.us/img688/3746/firefoxt.jpg
code
[code]
oTable = $('#table1').dataTable( {
"oTableTools": {
"sSwfPath": "TableTools/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
},
"bLengthChange": true,
"bInfo": false,
"sDom": '<"H"lfr>t<"F"ip>T',
"bAutoWidth": false,
"bRetrieve": true,
"bJQueryUI": true
});
} );
[/code]
also, for some reason on 2.0 the buttons dont work on firefox 3.6.13
using chrome 9.0.597.42 beta
screenshots:
chrome
http://img718.imageshack.us/img718/8375/chrometz.jpg
firefox
http://img688.imageshack.us/img688/3746/firefoxt.jpg
code
[code]
oTable = $('#table1').dataTable( {
"oTableTools": {
"sSwfPath": "TableTools/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
},
"bLengthChange": true,
"bInfo": false,
"sDom": '<"H"lfr>t<"F"ip>T',
"bAutoWidth": false,
"bRetrieve": true,
"bJQueryUI": true
});
} );
[/code]
This discussion has been closed.
Replies
on chrome it works fine except when i use sExtends.
Allan
the code is exactly the same, im sure the SWF path is correct because when i change it stops working on chrome, and it was working on the last version (on firefox) it stop working after i updated to 2.0
Allan
since my flash was crashing when i used sextends i changed to regular buttons, still doesnt work on firefox though.
i just found out that if i take the form out the divs (container and demo) and buttons wont overlap the form on firefox anymore.
but they still wont work.
also tried on IE and its even worst, my hidden column appears, the jqueryUI doesnt apply, and the datatools buttons dont appear at all.
maybe my code is wrong? and if it is, why does it work on chrome?
this is all my jquery code
[code]
$(document).ready(function() {
var giRedraw = false;
var oTable;
$("#table1 tbody").click(function(event) {
$(oTable.fnSettings().aoData).each(function (){
$(this.nTr).removeClass('row_selected');
});
$(event.target.parentNode).addClass('row_selected');
});
$('#Enviar2').click(function(){
var aTrs = oTable.fnGetNodes();
var user = "<?php echo $_COOKIE["nome_usuario"];?>";
if(user=='Kelly' || user=='Teste')
{
var res = confirm("Deseja deletar o defeito selecionado?");
if(res)
{
for ( var i=0 ; i
Allan
thanks Allan.
So next thing to try is this:
[code]
"oTableTools": {
"sSwfPath": "TableTools/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copy to clipboard",
"fnClick": function( nButton, oConfig, flash ) {
alert( this.fnGetTableData(oConfig) );
this.fnSetText( flash, this.fnGetTableData(oConfig) );
},
}
]
}
[/code]
If you do that - do you get the alert?
Allan
You can see that it does highlight only the print button, not the other ones, i have seen someone else with similar problem here.
Allan
how can i debug this?
thanks!
Thanks,
Allan
Allan
But my other 2 problems still remain, sExtends still makes flash crash (only on chrome) and im still having the problem that the buttons are overlapping my form on firefox (works on chrome,opera and IE). You have any ideia why?
thanks!
For Chrome - seems to work just fine for me - using Chrome 8.0.552.231 - Mac. No crash, so I'm afraid I'm not sure I can help. Might be an idea to see if you can get any debug information from Chrome.
Allan
im using the beta version 9.0.597.47 - PC, maybe its something on this beta version, i tested on another pc with chrome 8 and it was working too.
hopefully google will fix it.
thanks a lot Allan!