1
託管在本地IIS 7服務器上時,INSERT表將無法工作。但是,它將在從Visual Studio 2010運行ASP.NET Development Server時起作用。創建了數據庫和表,但INSERT查詢似乎什麼也不做。我沒有收到執行INSERT查詢本身的任何錯誤消息,事務也沒有失敗。我使用Safari瀏覽器和Safari的Inspect Element來嘗試和調試問題。任何想法將不勝感激。請參閱代碼:當從IIS服務器託管時,HTML5 Web SQL數據庫插入表失敗
try {
systemDB.transaction(function (tx) {
tx.executeSql('INSERT INTO tblReminders (fldForeignId, fldReminderContent, fldReminderDate, fldActioned, fldReminderTime, fldSubject, fldDueDate, fldBusinessBaseId, fldMobileRecipientsOnly, fldSendToCoordinator, fldPersonIds) ' +
'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);', [foreignId, reminderContent, reminderDate, actioned, reminderTime, subject, dueDate, businessBaseId, mobileRecipientsOnly, sendToCoordinator, personIds], dataHandler, sqlErrorHandler);
}, myTransactionErrorCallback, myTransactionSuccessCallback("INSERT INTO tblReminders:"));
} catch (e) {
alert(getDatabaseErrorCodes(-1, e));
return;
}