문제

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?

도움이 되었습니까?

해결책 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...

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top