Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: JS delegates callling VFP server side functions

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    369

    JS delegates callling VFP server side functions

    Hi Guys

    We are just getting to grips with using JS to call VFP servr side functions and got it to work in desktop preview mode but in Android tablet view mode it didnt work

    We are using :

    var result = Lianja.evaluate("serverside()");


    Is the syntax different if calling from a mobile device?

    Thanks in advance?

    Simon

  2. #2
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Also - is there a reason why canvas sections and image gadgets do not show up on tablet preview or web preview but do on desktop preview?

    Thanks
    Last edited by SpringBox; 2019-09-10 at 12:40.

  3. #3
    Senior Member
    Join Date
    Jan 2014
    Posts
    369

    Phonegap available for IOS?

    Hi Guys

    Is Phonegap still available from anywhere so we can test our forthcoming iPad app? Should we test it on Android instead?

    Cheers

    Simon

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,163
    Blog Entries
    22
    Hi Simon,

    No there's no difference. If you have deployed your server side code you can call it from any client; desktop, web and mobile.

    its better to ask one question in each post so they can be answered individually.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,163
    Blog Entries
    22
    Quote Originally Posted by SpringBox View Post
    Also - is there a reason why canvas sections and image gadgets do not show up on tablet preview or web preview but do on desktop preview?

    Thanks
    No they should do if you have checked the presentation rules for them.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,163
    Blog Entries
    22
    Quote Originally Posted by SpringBox View Post
    Hi Guys

    Is Phonegap still available from anywhere so we can test our forthcoming iPad app? Should we test it on Android instead?

    Cheers

    Simon
    Apple took the Adobe Phonegap developer app out of the App Store a while back. Details on how to install it can be found on the phonegap site.

    http://docs.phonegap.com/references/...p/install/ios/

    It may be easier to test on an android device.

    Many desktop web browsers (chrome for example) have the ability in the developer tools to switch to various emulation and geometry views such as phone or tablet also.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  7. #7
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,163
    Blog Entries
    22
    Quote Originally Posted by SpringBox View Post
    Hi Guys

    We are just getting to grips with using JS to call VFP servr side functions and got it to work in desktop preview mode but in Android tablet view mode it didnt work

    We are using :

    var result = Lianja.evaluate("serverside()");


    Is the syntax different if calling from a mobile device?

    Thanks in advance?

    Simon
    Make sure your server proc is not reliant on the data session in desktop. In other words it should be stateless and not assume a database and tables are open. That's a common mistake made. Use push/pop datasession.

    Run the app in a browser and from the JavaScript condole yiu can test your Lianja.evaluate() calls interactively.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  8. #8
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Thanks Barry

    Understood about the stateless nature of the mobile UI.

    So far these calls just flash up a messagebox so there is no data reliance yet.

    Any thoughts?

    Simon

  9. #9
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Yes sorry - one question per thread from now on.

    Will try to keep the idiot questions to a minimum.

    Thanks

    Simon

  10. #10
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,163
    Blog Entries
    22
    Quote Originally Posted by SpringBox View Post
    Thanks Barry

    Understood about the stateless nature of the mobile UI.

    So far these calls just flash up a messagebox so there is no data reliance yet.

    Any thoughts?

    Simon
    You cannot "flash up a message box" on the server. You can't use any UI commands in server code.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us