Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loop multiple toast box at same time #11

Open
richprich opened this issue Mar 20, 2012 · 2 comments
Open

loop multiple toast box at same time #11

richprich opened this issue Mar 20, 2012 · 2 comments

Comments

@richprich
Copy link

Guys,

How to showing multiple toast box at same time? I am not using click function to show the toast box, i am using load a php file every 2 seconds to showing the toast box if there is any notification to the user. But for this script, i can only display 1 box per time. What should i edit the js file to show limit 5 toast box at a same time if there is 5 notifications?

Thanks...

@daniel-tonn
Copy link
Contributor

Hi,

you can call the toast message multiple times and the message-"queue" is shown right away. So just calling:

$().toastmessage('showNoticeToast', 'message 1');
$().toastmessage('showNoticeToast', 'message 2');
$().toastmessage('showNoticeToast', 'message 3'');
$().toastmessage('showNoticeToast', 'message 4'');
$().toastmessage('showNoticeToast', 'message 5'');

will show 5 messages at the same time....

@richprich
Copy link
Author

Hi,

Thanks. I have another problem. The toast box is showing up only one tab if the user open few tabs of my site. How to show up the box on every tabs to the user?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants