Hi,
i tried successfully the tag facet for including a Javascript
:
<f:facet name="postinit">
<script type="text/javascript" src="js/offlinedb.js">
</script>
</f:facet>
But i want to call a function of it at the moment the view is loaded by the browser. I tried onload="initDB();" in tag view, page and nothing happens:
<pm:page title="MyPage" onload="initDB();">
If i call the function from a button everything works well. The algorithm is quiet simple. I want to initialize a SQLite Database on start to create the tables if they don't exists. The program uses the Database for logon purposes (don't worry, only to identify the user, the authentication runs secure over the server
). Every time the user uses the program i can recognize for which user i have to select the data.