Question

I tried using several jquery message pluggins such as alertify.

But the main thing I noticed is system message boxes halt the background functionality until user responds. Other pluggins don't have this functionality.

Is there a way to get this function to jquery pluggins? May extending native javascript objects? I cannot think a way myself.

Could you give me some idea? How can I stop current procedure until the user clicks a button?

Was it helpful?

Solution 2

jQuery UI has some excellent samples available

You can choose to freeze the background by setting 'modal' to 'true':

$( ".selector" ).dialog({ modal: true });

jQuery will not pause any setInterval(), but you can hook up to events, so you will probably be able to stop them from executing code yourself.

Check out this working fiddle that does just that...

OTHER TIPS

I am using jquery alert for "alert", "prompt" and "confirm" and it's really very good. I am mentioning reference URL for you.

http://runnable.com/UfNMPnKMU1ZgAACQ/how-to-create-custom-jquery-alert-confirm-and-prompt-dialogs

you can change look and feed as per your design.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top