NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Keith on May 10, 2015, 06:39:48 PM
-
HI
I am creating a tailored Mobile set of procedures for my app.
I display the Menu, select a Browse and then a Form but the Menu is no longer displayed and the only way to get back to it is via the 'back' arrow on the browser (i.e. when on the form 'back' displays the browse and 'back' again displays the Menu.
Of course, when running in non-mobile mode the menu is always displayed and available.
Is this the way that 'Mobile' works or is there something I am missing?
Thanks
Keith
-
yep that's the way it works - if you own an iPhone you will experience the same type of navigation.
-
Thanks Kevin.
You showed me (on another thread) how to customise the Home page display (say HomeMobile or Home) via the 'URL' on Save on the Login Form and this works fine and I have now created two sets of procedures one for Mobile and one for not Mobile.
But in my app I do not force users to login (if they don't then they get a restricted set of functionality). Is there a way to display one or the other Home pages without relying on a Login? In the Webserver procedure there is the 'Default' Page' that is set to 'Home' but I can't put p_web.gsv('startpage') there (compile errors) and putting code in 'Process link' (in WebHandler) is too late.
Is this possible. Thanks
Keith
-
There are a couple of options:
You might want to think about going to a generic welcome page which will then take them to either one of your home pages.
Use the IsMobile condition to make it fit either.
Add some code into the _sendpage method in the webhandler. Check out the book for an example.
-
Kevin
Thanks - am on my way with a Generic page to fan out to Large or small screens. It will be quite exciting to see what can be achieved to make mobiles workable.
Cheers
Keith