Hi,
I have been playing with html5 databases (I debated weather this should go here as it is implemented with JavaScript or in HTML and XHTML forum). I have been getting this error, does anyone know what causes this?
TypeError: Result of expression 'rs' [undefined] is not an object.
Here’s the function the error applied to:
function renderTodo(tx, rs)
{
e = $('#newtodo');
e.html("");
for(var i=0; i < rs.rows.length; i++)
{
r = rs.rows.item(i);
e.html(e.html() + 'id: ' + r['id'] + ', title: ' + r['title'] + ', notes: ' + r['notes'] + '<br />');
}
}
and to this line of the function:
for(var i=0; i < rs.rows.length; i++)
Has anyone go any suggestions they would care to share?
Help would be much appreciated.
Dan.