facebook

GotoPage Not Working

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

    adikate
    Member

    I am running JavaScript with three conditions(hidden, visible, gotopage). Two conditions are executing well but the one that needs to gotopage is not excecuting…

    
    if (score==2)
    {
    $('#m1-test-button').css('visibility', 'visible');
    $('#m1-test-button').on("click", function () {
    phoneui.gotoPage('#m1-sample','NONE');
    });
    }
    else
    {
    $('#m1-test-button').css('visibility', 'hidden');
    }
    
    #350679 Reply

    Hi adikate,

    The issue is with the click event binding. Instead of that I suggest you to use the On Click actions of your buttons and set your javascript code there.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: GotoPage Not Working

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