Consider this code snippet:
transaction.executeSql(
'SELECT * FROM pv_master;', [],
function(transaction, result) {
if(result.rows.length == 0) {
jQT.goTo("#register", 'slideup');
}
}, errorHandler
);
This example is a little different to the question title as the square brackets should be filled with some value.
Imagine I didn't want a success callback but did want a failure callback, which comes second in this instance.
What would be the correct way to go about it?