0

An unintrusive version of messagebox [feature brainstorm]

asked 2009-03-08 22:48:52 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

Hello guys,

This is more like of a feature request, but I'm posting here first to get more exposure, and see if more zk-users would like to see this feature too.

The messagebox is great to alert, warn and question user. But in my opinion, just for information, it don't need to get into users way and force them to click ok/close button.

Something like gmail messages on top center, that suddenly appears and after a few seconds automatically closes.

I found the jGrowl, which is a jquery plugin that simulates OSX growl message framework, which provides the idea of what this new component should do.

What do you guys think?

Regards,
Madruga

delete flag offensive retag edit

15 Replies

Sort by ยป oldest newest

answered 2009-03-08 23:22:39 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Hi Madruga,

what's when a user looks on the side just at the moment when the message apears?
I mean a message must be so urgent that a users must confirm it.

I can imagine that your special messageBox is a good thing for information on a long
running process like bigger booking actions on a database like a statusBar.

greetings
Stephan

link publish delete flag offensive edit

answered 2009-03-09 01:24:39 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi Madruga,

Why not use the Popup component instead?
It can do the same way as jGrowl's example.

/Jumper

link publish delete flag offensive edit

answered 2009-03-09 14:56:05 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

Hi guys, thanks for the quick reply

@Stephan
The simpler case, is when user register something into the database. When he clicks on the save button, he expects that the save will succeed, but if nothing is shown, then he is not sure if the record was saved or not. So today the system pops an messagebox "item saved", so the user knows what happens.

Let me explain a bit more o gmail example, if you have an gmail account, try to send a email without subject, gmail will alert you, but if you send anyway, then in top center will appear "sending message" and after that, "message sent" a few seconds later, the message dissapear. But you can interact withe your inbox, and the message is still there. But gmails system is like and status bar, an can only show one message at a time.

As you said, the status bar could solve this matter, but in general, status bar can only show one message at time.

Also as you said, it fits perfectly with long process, like "generating the report, please wait a few seconds".

@Jumper
The Popup could solve some simpler cases, but the jGrowl implementation is much more complex, and I think that Popup is not for the job.

What I'm looking for is 3 main features
1) Timed unintrusive message, after appear, when timer times out, automatically dissapear, regardless if user clicks somewhere else
2) "Sticky" unintrusive message, that appear, and only closes when user clicks the message close button
3) Be able to shown theses messages in a corner approach, like "top,left", "bottom,right"

If there is another way do achieve this, with macro components or something, please advice, because I really don't see how.

ps: I know that this can be done if I implement my custom component with JS, but I have no knowledge of JS :(.

Thank you and best regards,
Madruga

link publish delete flag offensive edit

answered 2009-03-10 01:12:52 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi Madruga,

According your requirement, I made the following example, please give it a try.
1. Popup Window with Timer

<window title="My First Window" border="normal" width="200px" mode="popup" position="top,right">
  Hello, World!
     <timer id="timer" delay="2000" repeats="false" onTimer="self.parent.visible = false;"/>
</window>

2. Overlapped Window with close button

<window title="My First Window" border="normal" width="200px" mode="overlapped" closable="true" position="top,right" >
  Hello, World!
  <button label="top,left" onClick="self.parent.position = self.label"/>
  <button label="bottom,right" onClick="self.parent.position = self.label"/>
</window>

Regards,
Jumper

link publish delete flag offensive edit

answered 2009-03-10 03:18:38 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

Hi Jumper,

Thankyou for the tips,

I forgot to set another feature, that is been able to show several messages at once.
But it can be done with a window which will serve as a container window, and the messages window will be added inside this container.

I've not taken the window component to do this, was looking for a "lighter" not space-owner component.

But it should probably do the job.

I'll try to implement a macro component with these concepts.

Thank you very much,
Regards,
Madruga

link publish delete flag offensive edit

answered 2009-03-10 14:37:17 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Hi Madruga,

In the case of Messageboxes. It's possible to have a multirow messageBox. ??
In some cases the messages are longer. So i would have several lines for it.
But my tries with several 'lineBreaks' are failed.

Stephan

link publish delete flag offensive edit

answered 2009-03-10 14:57:51 +0800

beginner gravatar image beginner
123 2

Hi terrytornado,

i got the same problem. Just look here

link publish delete flag offensive edit

answered 2009-03-11 18:47:55 +0800

YamilBracho gravatar image YamilBracho
1722 2

It could be great if we can do this:

Messagebox.Show("Hello<br>How do you doing?<br>bye");

And gets a three line message box...

link publish delete flag offensive edit

answered 2009-03-11 19:32:56 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-03-11 19:33:15 +0800

Yes, that would be great.

Is there a workaround for getting this???

link publish delete flag offensive edit

answered 2010-08-06 15:12:13 +0800

venni2010 gravatar image venni2010
45 1

ghjghjgjgjgjgjgjg

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-03-08 22:48:52 +0800

Seen: 1,380 times

Last updated: Oct 23 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More