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

Thread: Providing loading feedback to users in 6.2

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,342
    Blog Entries
    22

    Providing loading feedback to users in 6.2

    To simplify the requirement for "loading" feedback I have added in a new "Before refresh" delegate (there is already an "after refresh" delegate.

    Inside the "before refresh" of a page of section....


    Lianja.get("page.or.sectionid").hide()
    Lianja.showLoadingMessage("Your message...")

    Then in the "after refresh" delegate...

    Lianja.get("page.or.sectionid").show()
    Lianja.hideLoadingMessage()
    Last edited by barrymavin; 2021-07-02 at 11:32.
    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

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,342
    Blog Entries
    22
    The following methods have been added to the Lianja system object to provide visual feedback in web and mobile Apps. These are available in desktop, Web and mobile apps.

    The underlying viewport is dimmed and the specified message displayed for 5 seconds but can be discarded by clicking (or touching) the screen. If a second argument is specified then no timeout will occur and the user must click or touch to discard the message.

    Lianja.showSuccessMessageWithIcon("your message" [, notimeout as boolean])
    Lianja.showWarningMessageWithIcon("your message" [, notimeout as boolean])
    Lianja.showErrorMessageWithIcon("your message" [, notimeout as boolean])

    Examples:

    Lianja.showSuccessMessageWithIcon("Update succeeded");

    Name:  Screen Shot 2021-07-06 at 3.16.12 PM.jpg
Views: 234
Size:  72.8 KB

    Lianja.showWarningMessageWithIcon("Update succeeded with warnings");

    Name:  Screen Shot 2021-07-06 at 3.17.29 PM.jpg
Views: 173
Size:  71.9 KB

    Lianja.showErrorMessageWithIcon("Update failed");

    Name:  Screen Shot 2021-07-06 at 3.18.03 PM.jpg
Views: 228
Size:  73.0 KB





    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

  3. #3
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,187
    Very useful!

    thanks,

    Hank

  4. #4
    Junior Member
    Join Date
    Jun 2019
    Posts
    4
    Nice! Would you consider a slight change in arguments?
    Something like:
    Lianja.showSuccessMessageWithIcon("your message" [, ntimeout as integer]), where ntimeout is number of miliseconds to wait for user intervention, if omitted then the user needs to click/touch...

    Thanks!

  5. #5
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,342
    Blog Entries
    22
    Your request is too late to be considered for 6.2 as it has now been released. I will look to add that in the next release. Please submit an enhancement request ticket.
    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,342
    Blog Entries
    22
    This has been added into 6.2.1. The second argument if it is numeric is the number of seconds to wait for user intervention.
    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 MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,187
    Quote Originally Posted by barrymavin View Post
    This has been added into 6.2.1. The second argument if it is numeric is the number of seconds to wait for user intervention.
    Hi Barry,

    When using an rsp page as the first parameter, is there an option to have that page cover the entire page area in Lianja? That would give the look of a loading "page".

    I have an rsp page used in a webview section (stretched) that, with the page and section headers hidden, looks great. I would like that same effect with an rsp used in a showLoadingMessage call.

    thanks,

    Hank

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

    No, it’s not designed to do that.

    Are you wanting to customize the icon or what exactly.
    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

  9. #9
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,187
    Hi Barry,

    In the docs for Liana /showLoadingMessage for V6.2 it says: "In the web client, the message can also be the name of a .rsp file. " My hope was that this .rsp message could fill the available space in window in web.

    thanks,

    Hank

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

    No, it only provides the content for the small panel not the window. It’s not designed for that.
    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