javascript exceed timeout
- by user1866265
I use jquery to develop mobile application, here is my code below the problem that when I add 5 or 6 line to the page contained all goes well. but if I add multiple line displays error message: Javascript execution exeeded timeout.
function succes_recu_list_rubrique(tx, results) //apés avoire remplir sqlite
{
console.log('ENTRééééééééééééééé---')
$('#lbtn').prepend("<legend>Selectionner un Rubrique</legend><br>");
for( var i=0; i<results.rows.length; i++ ) //Remplir tableau liste des identifiants étapes
{
$('#lbtn').append("<input name='opt1' checked type='radio' value="+results.rows.item(i).IdRubrique+" id="+results.rows.item(i).IdRubrique+" />");
$('#lbtn').append('<label for='+results.rows.item(i).IdRubrique+'>'+results.rows.item(i).LibelleRubrique+'</label>');
}
$('#lbtn').append('<a href="#page_dialog2" class="offer2" data-rel="dialog" data-role="button" >Consulter</a>').trigger('create');
$('#lbtn').append('<a href="#'+id_grp_rub+'" data-role="button" data-rel="back" data-theme="c" >Cancel</a> ').trigger('create');
}