On Thu, Jun 23, 2016 at 9:06 AM, Hemika Kodikara <[email protected]> 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 : [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to