Weird error
Weird error
juria_roberts
Posts: 11Questions: 0Answers: 0
I am getting an error which I am finding hard to debug
I am getting a popup dialog box with the following message
[quote]
script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.
Script: https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js:30
[/quote]
Firebug gives the following error message
[quote]
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMEventListener.handleEvent]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://firebug/content/net/spy.js :: callPageHandler :: line 812" data: no]
[/quote]
Here is the code
[code]
function fillmainActiondivAjaxAlways(){
$.ajax({
type: "GET",
url: "/fm/car_report/index.php",
data: {
ajax:1,
action:'prefillmaindiv',
status:$('#status-hidden').val(),
start_date:$('#start-date-hidden').val(),
end_date:$('#end-date-hidden').val()
},
dataType: 'html',
success:function(result, textStatus, jqXHR){
$('#id-mainActiondiv').html(result);
$('#carReportStats').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aoColumns":[
null,
null,
{"sType": "date-sort" },
null,
null,
{"sType": "page-view-sort" },
null,
null,
null,
null
],
"aaSorting": [
[ 2, "desc" ]
],
// bFilter:false,
"fnSetFilteringDelay":function ( oSettings, iDelay ) {
/*
* Inputs: object:oSettings - dataTables settings object - automatically given
* integer:iDelay - delay in milliseconds
* Usage: $('#example').dataTable().fnSetFilteringDelay(250);
* Author: Zygimantas Berziunas (www.zygimantas.com) and Allan Jardine
* License: GPL v2 or BSD 3 point style
* Contact: zygimantas.berziunas /AT\ hotmail.com
*/
var
_that = this,
iDelay = (typeof iDelay == 'undefined') ? 20000 : iDelay;
this.each( function ( i ) {
$.fn.dataTableExt.iApiIndex = i;
var
$this = this,
oTimerId = null,
sPreviousSearch = null,
anControl = $( 'input', _that.fnSettings().aanFeatures.f );
anControl.unbind( 'keyup' ).bind( 'keyup', function() {
var $$this = $this;
if (sPreviousSearch === null || sPreviousSearch != anControl.val()) {
window.clearTimeout(oTimerId);
sPreviousSearch = anControl.val();
oTimerId = window.setTimeout(function() {
$.fn.dataTableExt.iApiIndex = i;
_that.fnFilter( anControl.val() );
}, iDelay);
}
});
return this;
} );
return this;
},
"fnDrawCallback": function(){
$('[name="car-details"]').hide();
$('#csvlink').show(5000);
// $('[name="car-details"]').click(showcarDiv());
}
});
}
});
}
[/code]
I am getting a popup dialog box with the following message
[quote]
script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.
Script: https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js:30
[/quote]
Firebug gives the following error message
[quote]
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMEventListener.handleEvent]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://firebug/content/net/spy.js :: callPageHandler :: line 812" data: no]
[/quote]
Here is the code
[code]
function fillmainActiondivAjaxAlways(){
$.ajax({
type: "GET",
url: "/fm/car_report/index.php",
data: {
ajax:1,
action:'prefillmaindiv',
status:$('#status-hidden').val(),
start_date:$('#start-date-hidden').val(),
end_date:$('#end-date-hidden').val()
},
dataType: 'html',
success:function(result, textStatus, jqXHR){
$('#id-mainActiondiv').html(result);
$('#carReportStats').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aoColumns":[
null,
null,
{"sType": "date-sort" },
null,
null,
{"sType": "page-view-sort" },
null,
null,
null,
null
],
"aaSorting": [
[ 2, "desc" ]
],
// bFilter:false,
"fnSetFilteringDelay":function ( oSettings, iDelay ) {
/*
* Inputs: object:oSettings - dataTables settings object - automatically given
* integer:iDelay - delay in milliseconds
* Usage: $('#example').dataTable().fnSetFilteringDelay(250);
* Author: Zygimantas Berziunas (www.zygimantas.com) and Allan Jardine
* License: GPL v2 or BSD 3 point style
* Contact: zygimantas.berziunas /AT\ hotmail.com
*/
var
_that = this,
iDelay = (typeof iDelay == 'undefined') ? 20000 : iDelay;
this.each( function ( i ) {
$.fn.dataTableExt.iApiIndex = i;
var
$this = this,
oTimerId = null,
sPreviousSearch = null,
anControl = $( 'input', _that.fnSettings().aanFeatures.f );
anControl.unbind( 'keyup' ).bind( 'keyup', function() {
var $$this = $this;
if (sPreviousSearch === null || sPreviousSearch != anControl.val()) {
window.clearTimeout(oTimerId);
sPreviousSearch = anControl.val();
oTimerId = window.setTimeout(function() {
$.fn.dataTableExt.iApiIndex = i;
_that.fnFilter( anControl.val() );
}, iDelay);
}
});
return this;
} );
return this;
},
"fnDrawCallback": function(){
$('[name="car-details"]').hide();
$('#csvlink').show(5000);
// $('[name="car-details"]').click(showcarDiv());
}
});
}
});
}
[/code]
This discussion has been closed.
Replies
Allan