Cannot call method 'hide' of null
application testprosjektimport mobl::ui::generic
screen mylogin() {
header(“test”)
}screen root() {
script {
mylogin();
}
}My intention is not to call another screen direct from script in root() but it describes the problem because its the same when I add more logic to it.
Submitted by Terje Pedersen on 7 April 2011 at 14:23
Uncaught TypeError: Cannot call method ‘hide’ of null
__ns.animations.slidemobl.js:718
__ns.callmobl.js:822
testprosjekt.mylogintestprosjekt.js:25
__ns.callmobl.js:812
testprosjekt.roottestprosjekt.js:33
__ns.callmobl.js:812
(anonymous function)testprosjekt.html:54
persistence.schemaSyncpersistence.store.sql.js:215
persistence.executeQueriesSeqpersistence.store.sql.js:449
persistence.asyncForEachpersistence.js:323
executeQueriesSeqpersistence.store.sql.js:439
persistence.schemaSyncpersistence.store.sql.js:214
persistence.schemaSync.queriespersistence.store.sql.js:146
persistence.db.html5.connect.that.transactionpersistence.store.websql.js:68
Issue Log
Hmm, this is probably a timing issue. This might fix it for now:
script {
sleep(100); // shorter may work
mylogin();
}
No this one just delayed the problem ie if I used sleep(10000) the error appeared after 10s.
previousScreen.dom is undefined
This will be fixed in 0.4.3. By the way, you will get a slide effect when the screen loads, to avoid that, use:
mylogin(animate="none");
instead.
Log in to post comments