NetTalk Central

Author Topic: Menus and Mobile  (Read 4326 times)

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Menus and Mobile
« 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
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Menus and Mobile
« Reply #1 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.

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Menus and Mobile
« Reply #2 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
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Menus and Mobile
« Reply #3 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.

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Menus and Mobile
« Reply #4 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
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27