EasyUI Forum
April 30, 2024, 07:19:26 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: window-mask for $.messager.show  (Read 7243 times)
camellodetroya
Newbie
*
Posts: 3


View Profile
« on: January 22, 2015, 09:00:02 AM »

hello,

i need apply window-mask in $.messager.show for user not interact width page back, as does alert, confirm, progressbar, etc.

there is some way to archieve such a thing?

ty.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 22, 2015, 08:14:01 PM »

Please download the updated messager plugin from http://www.jeasyui.com/easyui/plugins/jquery.messager.js and include it to your page.
Code:
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/plugins/jquery.messager.js"></script>
<script type="text/javascript">
$(function(){
$.messager.show({
title:'My Title',
msg:'Message will be closed after 4 seconds.',
showType:'show',
modal:true
});
})
</script>
Logged
camellodetroya
Newbie
*
Posts: 3


View Profile
« Reply #2 on: January 23, 2015, 08:16:19 AM »

Thanks stworthy, but i apply jquery.messager.js in page and throws the folowing Error in jquery.easyui.min.js:

TypeError: _237 is undefined
var opts=_237.options;

Line 3028 col 4

I am using version 1.4.1 ( and tryied 1.4.1.x with same result )
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: January 23, 2015, 08:58:10 AM »

Please try this example http://jsfiddle.net/chwzb1mv/. It works fine.
Logged
camellodetroya
Newbie
*
Posts: 3


View Profile
« Reply #4 on: January 26, 2015, 08:01:32 AM »

stworthy,

It inspected and found to have problems with the version of jquery, now works perfectly.

Thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!