New user feedback / message panel

To devs,

I have added a new div for user feedback which appears fixed on top of the screen. These methods can be used directly from any javascript:

setHeaderMessage( message ) // sets header message

updateHeaderMessage( message ) // updates header message text

setHeaderWaitMessage( message ) // sets header message including a gif working-animation

updateHeaderWaitMessage( message ) // update header wait message text

setHeaderDelayMessage( message ) // sets header message and hides it after 3 secs

hideHeaderMessage() // hides header message

This can be viewed eg for the generate chart function and when exporting a report table to excel/html/csv when it has not yet been generated.

Should be useful for situations where there are no natural place to put a message, like in lists. We could consider moving all messages here for standardisation.

Lars

Thanks… this is gr8

I was just looking for something like this where we could show common messages and was looking for extension points as a way to do it. Any extension points available in DHIS ??

···

Regards,
Saptarshi PURKAYASTHA
Director R & D, HISP India
Health Information Systems Programme

My Tech Blog: http://sunnytalkstech.blogspot.com

You Live by CHOICE, Not by CHANCE

2010/3/11 Lars Helge Øverland larshelge@gmail.com

To devs,

I have added a new div for user feedback which appears fixed on top of the screen. These methods can be used directly from any javascript:

setHeaderMessage( message ) // sets header message

updateHeaderMessage( message ) // updates header message text

setHeaderWaitMessage( message ) // sets header message including a gif working-animation

updateHeaderWaitMessage( message ) // update header wait message text

setHeaderDelayMessage( message ) // sets header message and hides it after 3 secs

hideHeaderMessage() // hides header message

This can be viewed eg for the generate chart function and when exporting a report table to excel/html/csv when it has not yet been generated.

Should be useful for situations where there are no natural place to put a message, like in lists. We could consider moving all messages here for standardisation.

Lars


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Sounds good. So this would be a little field where all messages to the
user can appear? I think this idea could be explored a bit, to standardize
user feedback as Lars points out, but also to think about extending what
DHIS communicates to the user. For example, instead of just "process
complete", it could read "Report table updated. The report can now be
viewed for (month(s))" etc. Not sure if this is a valid example, but there
should be plenty of places where a couple of sentences would help the user
understand what's going on, or point to the next logical step, etc.

Johan

···

To devs,

I have added a new div for user feedback which appears fixed on top of the
screen. These methods can be used directly from any javascript:

setHeaderMessage( message ) // sets header message
updateHeaderMessage( message ) // updates header message text
setHeaderWaitMessage( message ) // sets header message including a gif
working-animation
updateHeaderWaitMessage( message ) // update header wait message text
setHeaderDelayMessage( message ) // sets header message and hides it after
3
secs
hideHeaderMessage() // hides header message

This can be viewed eg for the generate chart function and when exporting a
report table to excel/html/csv when it has not yet been generated.

Should be useful for situations where there are no natural place to put a
message, like in lists. We could consider moving all messages here for
standardisation.

Lars
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp