Messagebox with a time-out

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Messagebox with a time-out

Postby alk » Mon Apr 24, 2017 6:48 pm

Hi,
is there a way to display a messagebox, which will disapear after some seconds??

As far as I realised the Pluging "dialogs" does need a least one click to remove the message box

Thanks
Ralf
alk
 
Posts: 61
Joined: Wed May 21, 2014 8:34 pm
Location: Berlin

Re: Messagebox with a time-out

Postby sean » Mon Apr 24, 2017 7:09 pm

Hi Ralf,

Which client ? (smart,web,ng)

The dialog plugin needs a click to close.
But if you show a form, you could dismiss it after a few seconds.

Look at the scheduler plugin.

Something like:
Code: Select all

function onShow(){
    var start = new Date();
    start.setMilliseconds(start.getMilliseconds() + 5000); // in 5 seconds
    plugins.addJob('myJob', start, closeDialog);
}

function closeDialog(){
    application.closeAllWindows() // will close all dialogs and windows except main
}


Also for NG consider something like svyBlockUI or webnotifications
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 13 guests