- This topic has 9 replies, 4 voices, and was last updated 11 years, 7 months ago by support-octavio.
-
AuthorPosts
-
merhebmMemberHello I have created a Multipage.mobi.
my project contain several other .mobi files.
when I navigate from any .mobi to multipage.mobi i want always to start on the first page .
I am not able to do this , it is always pointing me to the last page visited in the multipage.mobi.please help me on how to do this.
Thanks
merhebmMemberHello Octavio
could you please help here,
what i want is to get the Javascript code equivalent to :
showpage /multipage widget / page , as if i was setting it from push button action propertiesThanks
BrandonMemberYou should be able to use something like below
—————————your multipage widget—————-your multipage page—-transition
phoneui.gotoMultiPagePage(‘m1-yourform-multiPage1’, ‘SET_PAGE’, ‘m1-yourform-page1’, phoneui.transitions.slideLeft);
merhebmMemberhello
this function is working when called from the same form (.mobi file).
when another form is calling it , it is not working, i have double checked all parameters and all are correct, I have added project files in each of the .mobi form and also added the JS library files for each form, still not workingplease advise
thanks
YannMemberHi merhebm
if i understand, you want link a specific tab of multipage widget from other mobi file?
solution
http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=5253
merhebmMemberHi Yann
that is exactly what i want,
i will try your workaround by setting a timer in between the shift to pages.Thanks
MARC
merhebmMemberHi Yann
what you proposed did not work
i have attached the .mobi files where i have tested this, could you please check and let me know what s wrong.Thanks
Attachments:
You must be logged in to view attached files.
support-octavioMemberHi merhebm,
I’ve reviewed your code, and without the timeout function it worked well for me:
phoneui.gotoMultiPagePage('m1-testmultipage-multiPage1', 'SET_PAGE', 'm1-testmultipage-page1', 'NONE'); phoneui.gotoPage( 'm1-testmultipage', phoneui.transitions.slideRight);
merhebmMemberThanks Octavio
this is now working, the issue was that i did not add the gotoPage function as well.you may close this thread now
support-octavioMemberThanks for the follow up. I’m glad to help. Closing thread.
-
AuthorPosts