application testprosjekt

import 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.


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

Submitted by Terje Pedersen on 7 April 2011 at 14:23

On 7 April 2011 at 14:25 Zef Hemel commented:

Hmm, this is probably a timing issue. This might fix it for now:

script {
sleep(100); // shorter may work
mylogin();
}


On 7 April 2011 at 14:33 Terje Pedersen commented:

No this one just delayed the problem ie if I used sleep(10000) the error appeared after 10s.


On 7 April 2011 at 14:43 Terje Pedersen commented:

previousScreen.dom is undefined


On 11 April 2011 at 10:42 Zef Hemel closed this issue.

On 11 April 2011 at 10:42 Zef Hemel commented:

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.


On 11 April 2011 at 10:42 Zef Hemel tagged 0.4.3

Log in to post comments