After sorting I can see alert with error message, but elements are removed! IntellijIdea show error on this line - Selector matches unknown element remove.
- second
when my app starts, it loads values form local store and sets elements on page. All works fine except elements <select name="nameOfSelect" id="idOfSelect" >....
my code
if(condition) {
$('#select-choice option')[2].selected = true;
...next code
It works, I can see "checked" on this position, but I would like show this value (row) as a first in my select element.
but this code doesn't work, I can see 'classic' JQM select menus. Path, name of images are correct, I check this values in firebug. I read this help, but I would like add image to 'classic combobox'
Hi, in my mobile project I use local sql database. I would like synchronize this local database with remote database using Ajax. My code - I use function
responseIdOnServer = getURLParameters("idOnServer",text); responseIsAll = getURLParameters("isAll",text); //etc here I take response from the server and I set local variables
}catch(err){
// end export to the server }
if((responseIsAll == "true")){
// here I would like stop my export to the server
} else if((responseIsAll == "false")){ // function where I call code, which works with database and prepare data for the export setValuesToExportFromDatabase(table, (parseInt(responseIdOnServer ) + 1)+ ',' + (parseInt(JUMP) + parseInt(responseIdOnServer) + 1) ); runAjaxForExport(urlToExport,getExportStringForTable()) ;
} else{
alert('Wrong response'); } } else{
alert('Empty response'); }
}
My problem , if I call first time function runAjaxForExport (end before it function setValuesToExportFromDatabase), every ok, but I need call this functions more times , as long as complete synchronize my data. I debug my code and I can see, that code runs still thru this functions (does not work immediately) and is calledd after code jump behind this functions If I simply write my idea, about this
while(myvariable){
setValuesToExportFromDatabase(); myvariable = runAjaxForExport(url, data); //of course, I will must rewrite function to return value }