2012-12-18 45 views
0

我試圖開發利用的PhoneGap框架離線移動應用程序。我正在使用sqlite PhoneGap來訪問我的本地數據庫。等到恢復值

我的應用程序使用2表,表1包含值幷包含表2中的值的標識符,以顯示數據我必須等待表2的恢復值與功能recover_type_client傳遞的值IdClient

我怎麼能等到我找回價值TXT顯示

function successDB(tx, results) 
{ 
    for(var i=0; i<results.rows.length; i++ ) 
    { 
     TXT = recover_type_client(results.rows.item(i).IdClient)//Function 
     $("#tbod").append('<tr><td><input type="checkbox" name="vehicle" value="'+results.rows.item(value).IdPrestation+'"></td>' 
         +'<td> '+results.rows.item(value).RefPrestation            +' </td>' 
         +'<td> '+TXT                  +' </td>' 
         +'<td> '+results.rows.item(value).CoordonneesAdressePrestation        +' </td>' 
         +'<td> '+tab_client[i] 
         +'</tr>'); 
    } 
} 
+0

任何想法這裏???? –

+0

alooooooooooooooooooooo –

回答

0

你必須使用

results.rows.item(value).IdPrestation 

但值沒有被定義