20.11.2017 Views

My HTML 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>HTML</strong>5<br />

db.transaction(function (tx) {<br />

tx.executeSql('SELECT * FROM LOGS', [], function (tx, results) {<br />

var len = results.rows.length, i;<br />

msg = "Found rows: " + len + "";<br />

document.querySelector('#status').inner<strong>HTML</strong> += msg;<br />

for (i = 0; i < len; i++){<br />

msg = "" + results.rows.item(i).log + "";<br />

document.querySelector('#status').inner<strong>HTML</strong> += msg;<br />

}<br />

}, null);<br />

});<br />

<br />

<br />

<br />

Status Message<br />

<br />

<br />

This will produce the following result −<br />

57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!