Thanks!, Will follow the suggested ways.

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +94777688882

On Thu, Jun 23, 2016 at 10:04 PM, Manuranga Perera <m...@wso2.com> wrote:

>
> On Thu, Jun 23, 2016 at 9:06 AM, Hemika Kodikara <hem...@wso2.com> wrote:
>
>> I have a scenario where that I have to add an item to a list in the
>> server side. To make the UI more friendly, I would like to show a success
>> message once the queue is created without a post back.
>>
>> So is the preferred way to do this is by calling a fragment url by ajax
>> which adds an item to my server side list and return the success message
>> back to my ajax caller ?
>>
>
> 1. UUF is not a API framework it's a server side HTML framework. So, yes,
> you will have to ajax the item's HTML fragment and append/replace that in
> UI.
>
> 2. From a UX point of view, it's better in indicate something is going on
> (unless its a background/periodic task) rather than displaying a message
> when it's done. So if you can attach a loading icon or text like
> "Loading..." before the request  and remove that upon the item being
> attached it’s better.
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to