Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebSQL and Javascript Order of Operation
- db.transaction(
- function (transaction) {
- transaction.executeSql(
- 'SELECT * FROM contacts WHERE id = ?;',
- [id],
- function (transaction, result) {
- alert("1");
- if (result.rows.length != 0) {
- user = result.rows.item(0).name;
- } else {}
- },
- errorHandler);
- });
- alert("2");
- message = id + '%1E' + name;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement