- This topic has 7 replies, 5 voices, and was last updated 10 years ago by Brandon Batie.
-
AuthorPosts
-
Nie QueMemberim making a spashscreen and i use this code fuction for the time out.
phoneui.documentReadyHandler = function() {
//timer for splash screensetTimeout(function Time() {
phoneui.gotoScreen(‘m1-sample’, ‘FADE’); //sample is the file name of the page that I want to redirect after the splash screen.
}, 5000 );}
my question is how will i use the to execute??
im using mobione
Unknown AuthorParticipantHey look, your _custom.js file has a
phoneui.documentReadyHandler = function() { }
Put your code in there!
Nie QueMemberI already done that see my code posted above…
Still didn’t work.
merhebmMemberHello
I am going through the same problem
this code is only working when i have a new .mobi not linked to any other .mobi in the same project.in my project, i have multiple .mobi linked to the .mobi that is called by the splashscreen timeout.
I have done troubleshooting and the problem is from those attached .mobi because if i replace them with a blank new .mobi it will work.could you know what is causing the problem of the timeout not to work in my project after this notice i explained ?
Thanks
Brandon BatieMemberHi,
It sounds like you could have an error in the Javascript code somewhere. The best advice I can give is to open it in the web simulator, right click on it and select inspect element to open the debugger and check the console for any errors the code.
Thanks,
merhebmMemberHi Brandon
please see attached the console log, with error message.
Could you please check and help resolve this and detail me what should i do ?Thanks
Attachments:
You must be logged in to view attached files.
SeaFriendsParticipantFrom my side I had this kind of error message when I used a wrong Platform: Apache Cordova version in the simulator… (3.1.0 instead of 2.2.0)
I also had it, when I tried to migrate by myself from mobione app to myeclipse. But disapeared when I used the migration script…Hope this may help you..
Brandon BatieMember@ merhebm
You mentioned that it works fine when you do not have another mobi page linked, my guess is that one of the linked pages is causing the issue. I would first see if you can replicate the problem using a new mobione project with blank screens. If you can you can send us that sample project to look at. If not, that means there is an coding problem somewhere in your app.
-
AuthorPosts