- This topic has 9 replies, 4 voices, and was last updated 12 years, 2 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
April 6, 2013 at 3:01 pm #337661
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
April 6, 2013 at 4:27 pm #337664
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);April 7, 2013 at 8:50 am #337669
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
thanksApril 11, 2013 at 1:15 am #337872
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=5253April 11, 2013 at 6:55 am #337885
merhebmMemberHi Yann
that is exactly what i want,
i will try your workaround by setting a timer in between the shift to pages.Thanks
MARCApril 11, 2013 at 3:13 pm #337899
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.April 12, 2013 at 6:14 pm #337976
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);
April 13, 2013 at 4:25 am #337981
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
April 15, 2013 at 10:20 am #338031
support-octavioMemberThanks for the follow up. I’m glad to help. Closing thread.
-
AuthorPosts