[jQuery] jeditable, tablesorter work slow with livequery
Hello,
I have some problems, with these 3 plugins, jeditable and tablesorter works
very good when I use it without livequery but when I want these 3 plugin to
work, they work very slowly and sometimes crash the browser,
I have to use livequery because data is loaded from this function:
function loadContent(id) {
$("#content").load("controller.php?module="+id+"");
}
and each page loaded by this function contains scripts witch uses
tablesorter and jeditable
$.livequery.registerPlugin("Tablesorter");
$.livequery.registerPlugin("Jeditable");
$('th.header').livequery(function() {
$(function(){
$(".tablesorter").tablesorter({widgets: ['zebra']})
});
});
$('table').livequery(function() {
$(function(){
$(".tablesorter").tablesorterPager({container: $("#pager")})
});
});
$('.edit_area').livequery(function() {
$(function() {
$(".edit_area").editable("save.php", {
indicator : " img/indicator.gif ",
type : "autogrow",
onblur : 'submit',
select : true,
submit : 'Zapisz zmiany',
cancel : 'Anuluj',
autogrow : {
lineHeight : 12,
maxHeight : 512
},
tooltip : 'Kliknij by edytować'
});
});
});
$('.masked').livequery(function() {
$(function(){
$(".masked").editable("save.php", {
indicator : " img/indicator.gif ",
type : "masked",
mask : "99.99",
submit : 'Zapisz zmiany',
cancel : 'Anuluj',
tooltip : "Kliknij by edytować"
});
});
});
please give me some advise?
thx
--
View this message in context: http://www.nabble.com/jeditable%2C-tablesorter-work-slow-with-livequery-tp20223996s27240p20223996.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.