facebook

Multipage embedded in another multipage

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

    hussain.m
    Member

    Hi,

    I have a multipage widget with pages: orange, apple, banana. I have another multipage widget inside page ‘apple’ with pages: red and green. Now from page ‘orange’, I want to open page ‘apple’ with ‘red’ shown every time (which is set to default from multipage properties). This doesn’t seem to work as the page that I last visit also opens up, sometimes ‘red’ and sometimes ‘green’.

    I am using the below code for my button located in multiPage1, page:orange:
    phoneui.gotoMultiPagePage(‘m1-test4-multiPage1’, ‘SET_PAGE’, ‘m1-test4-apple’, ‘NONE’);

    When I try to open page ‘red’ in multiPage2 directly from multiPage1, the button goes dead:
    phoneui.gotoMultiPagePage(‘m1-test4-multiPage2’, ‘SET_PAGE’, ‘m1-test4-red’, ‘NONE’);

    I have seen example http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=5331
    But this is using another .mobi file. I am using same mobi file so how can I achieve this?

    #343032 Reply

    hussain.m
    Member

    Please can you please me with the code?
    Thanks

    #343046 Reply

    Hi hussain.m,

    I think I have replicated the issue, doing some tests, will follow up with findings in a few minutes.

    #343047 Reply

    Hi hussain.m,

    A workaround is to use a setTimeout, f.e:

    phoneui.gotoMultiPagePage('m1-test4-multiPage1', 'SET_PAGE', 'm1-test4-apple', 'NONE');
        setTimeout(function(){
                phoneui.gotoMultiPagePage('m1-test4-multiPage2', 'SET_PAGE', 'm1-test4-red', 'NONE');
        },10);
    

    I have informed the dev team about this problem and will follow up with you as soon as I get more information.

    #343059 Reply

    hussain.m
    Member

    Hi octavio,

    I used the setTimeout function as you showed, it worked with some delay.

    #343102 Reply

    Hi hussain.m,

    After talking with the dev team I learned that this will be fixed in the next update.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Multipage embedded in another multipage

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