NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Keith on May 10, 2015, 06:39:48 PM

Title: Menus and Mobile
Post 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
Title: Re: Menus and Mobile
Post by: kevin plummer on May 10, 2015, 09:25:33 PM
yep that's the way it works - if you own an iPhone you will experience the same type of navigation.
Title: Re: Menus and Mobile
Post by: Keith on May 11, 2015, 02:35:25 PM
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
Title: Re: Menus and Mobile
Post by: kevin plummer on May 11, 2015, 03:56:35 PM
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.
Title: Re: Menus and Mobile
Post by: Keith on May 11, 2015, 08:50:48 PM
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