Page 1 of 1

(RDMLX) Web View Menu Control

Posted: Fri Nov 06, 2015 4:54 am
by edwardtn
Is there an function or operation on the LONGRANGE form object that can be run via JavaScript to show the system menu?

Use case: Offline application exclusively use of WebViews serving local html, css, and js and local database. I am considering removing the title bar as long as I can programatically dsiplay the system menu.

Thanks in advance,

Edward

Re: (RDMLX) Web View Menu Control

Posted: Fri Nov 06, 2015 10:46 am
by tsupartono
If by "system menu", you mean the LR Settings (where you configure profiles etc), yes you can.

Have a look at the "ClientCommand" operation in the doco below:

http://www.longrangemobile.com/docs/lrp ... ommand.htm

Please see code example below how to invoke from JavaScript.

Code: Select all


var options =
{
    operation:
    {
        type: "ClientCommand",
        command: "SETTINGS"
    }
};
LONGRANGE.Form.runOperation(options);

Let us know how you go with this.

Re: (RDMLX) Web View Menu Control

Posted: Tue Nov 10, 2015 6:57 am
by edwardtn
Hi Tony,

I was thinking of how to display the application main menu...but this may offer an even better alternative.

Thanks,

Edward