hmm... ok, this is the case, I paste some of the code:
I have a page with a table made after SQLite query, so when I delete or modify one of the records (in the modify page) I have to refresh the table when I go back to it...
refreshTable () executes the SQLite query and show up the records in a NKtableView
so...
- Code: Select all
function onPageShown(caller) {
if (settings.getValueForKey("refresh")==1){
sectionName = settings.getValueForKey("categoryName");
refreshTable ();
}
}
on iPhone 4, all iPads it works, no issues
on iPhone 3G and 3GS does not work, the App just show up a white blank page, the issue is the onPageShown function, detected by a step by step NKLog output, so I removed the onPageShown and now I call the preRefreshTable function with NKExecuteJavascriptOnPage from the modify page before going back to the page with the table
- Code: Select all
function preRefreshTable () {
if (settings.getValueForKey("refresh")==1){
sectionName = settings.getValueForKey("categoryName");
refreshTable ();
}
}
basically the same thing, just not executed with onPageShown(caller)
then, another problem with onPageShown(caller) is when you have divisions <div> in the html and you have functions generating html code. Won't work. You have to use the onLoad in the body.
looks like onPageShown(caller) is not executed really at last when everything is loaded.