facebook

How to make a page change after 3 seconds without any action

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #343777 Reply

    egroj90
    Member

    How to make a page change after 3 seconds without any action?

    Anyone knows how to do it?

    And How can I have a info of price when I chose some quantity in a combo box?

    Many thanks

    JAM

    #343791 Reply

    RichardOne
    Member

    Egroj90,

    How to make a page change after 3 seconds without any action?

    How about –http://jquerybyexample.blogspot.com/2013/06/jquery-redirect-page-after-few-seconds.html

    HTH

    #343798 Reply

    support-michael
    Keymaster

    Where you start the 3 second timing, run a snippet of javascript similar to this (replace <pageid> with the id of the screen you want to nav to):

    setTimeout(function() {phoneui.gotoPage('<pageid>',optionalTransition)},3000)
    
    example to nav to m1-main screen with default transition
    
       setTimeout(function() {phoneui.gotoPage('m1-main')},3000);
    
    example to nav to m1-main screen with faade transition
    
       setTimeout(function() {phoneui.gotoPage('m1-main',phoneui.transitions.fade)},3000);
    
    

    This works for native and webapps.

    #344304 Reply

    egroj90
    Member

    setTimeout(function() {phoneui.gotoPage(‘<myoptiser.mobi>’,phoneui.transitions.fade)},3000)

    I made it like this, creating a .js file and add it to javascript Libraries.

    Is it all or I have to do anything else as it don’t work…

    Many thanks

    JM

    #344327 Reply

    Hi egroj90,

    What is your exact requirement? f.e. if you want to do this in main screen, you need to add the line code you have posted in the phoneui.documentReadyHandler function.

    #344358 Reply

    egroj90
    Member

    Hi Octavio,

    “What is your exact requirement?”

    – I need to change inicial page after 3 seconds and go to another page.

    “if you want to do this in main screen, you need to add the line code you have posted in the phoneui.documentReadyHandler function”

    – How can I do that? already tried diferent ways but not arrived to it…

    Another thing I have is that when I have a scroll, even in phones not needing it, it scrolls to… nothing.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: How to make a page change after 3 seconds without any action

You must be logged in to post in the forum log in