Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Reference

(nextflipdebug5) #1
Embedded Database | 123

case INSERT_DATA:
document.getElementById( "txtFirst" ).value = "";
document.getElementById( "txtLast" ).value = "";

alert( "A new record has been stored." );
}
}

function doStmtError( event )
{
alert( "There has been a problem executing a
statement:\n" + event.error.message );
}

function doUnload()
{
db.close();
}
</script>

</head>
<body onload="doLoad()" onunload="doUnload()">

<div>
First name: <input id="txtFirst" type="text" />
</div>
<div>
Last name: <input id="txtLast" type="text" />
</div>
<div>
<input id="btnSave" type="button" value="Save" />
</div>

</body>
</html>

Accessing Database Data


Problem


You need to generate a tabular display of data from the
embedded database.

Free download pdf