Easyui add Dialog

Source: Internet
Author: User
javascript

// View the role User Function roleuser (OBJ, ID) {var c_id = ID; var url = "/sys/roleusername" + "/" + c_id; $. getjson (URL, function (JSON) {$. each (JSON, function (I) {$ ("# roledlg "). append (JSON. data) $ ('# roledlg '). dialog ('open') ;}) $ ("# roleuserdlg "). empty (); $ ("# roleuserdlg "). append (JSON); // $. messager. defaults. OK = "close"; // parse JSON // $. messager. alert ('Role owner user', JSON); // $ (". panel-body-noborder ").css (" overflow-y "," Auto ");}) $ (" # roleuserdlg "..css (" overflow-y "," Auto "); $ ('# roleuserdlg '). dialog ('open ');}
 

 



Html

<Div id = "roleuserdlg" class = "easyui-dialog" Title = "role owner" Closed = "true" data-Options = "iconcls: 'icon-blank ', modal: True "style =" width: 300px; Height: 400px; padding: 10px; display: none; "> </div>

 

<Div id = "roleuserdlg" class = "easyui-dialog" Title = "role owner" Closed = "true" data-Options = "iconcls: 'icon-blank ', modal: True "style =" width: 300px; Height: 400px; padding: 10px; display: none; "> </div>
<Div id = "roleuserdlg" class = "easyui-dialog" Title = "role owner" Closed = "true" data-Options = "iconcls: 'icon-blank ', modal: True "style =" width: 300px; Height: 400px; padding: 10px; display: none; "> </div>

  

// View the role User Function roleuser (OBJ, ID) {var c_id = ID; var url = "/sys/roleusername" + "/" + c_id; $. getjson (URL, function (JSON) {$. each (JSON, function (I) {$ ("# roledlg "). append (JSON. data) $ ('# roledlg '). dialog ('open') ;}) $ ("# roleuserdlg "). empty (); $ ("# roleuserdlg "). append (JSON); // $. messager. defaults. OK = "close"; // parse JSON // $. messager. alert ('Role owner user', JSON); // $ (". panel-body-noborder ").css (" overflow-y "," Auto ");}) $ (" # roleuserdlg "..css (" overflow-y "," Auto "); $ ('# roleuserdlg '). dialog ('open ');}

// View the role user
Function roleuser (OBJ, ID ){
VaR c_id = ID;
VaR url = "/sys/roleusername" + "/" + c_id;
$. Getjson (URL,
Function (JSON ){
$. Each (JSON, function (I ){
$ ("# Roledlg"). append (JSON. Data)
$ ('# Roledlg'). Dialog ('open ');
})
$ ("# Roleuserdlg"). Empty ();
$ ("# Roleuserdlg"). append (JSON );
// $. Messager. defaults. OK = "close ";
/// Parse JSON
// $. Messager. Alert ('Role owner user', JSON );
// $ (". Panel-body-noborder" ).css ("overflow-y", "Auto ");
})
$ ("# Roleuserdlg" ).css ("overflow-y", "Auto ");
$ ('# Roleuserdlg'). Dialog ('open ');

}

// View the role user
Function roleuser (OBJ, ID ){
VaR c_id = ID;
VaR url = "/sys/roleusername" + "/" + c_id;
$. Getjson (URL,
Function (JSON ){
$. Each (JSON, function (I ){
$ ("# Roledlg"). append (JSON. Data)
$ ('# Roledlg'). Dialog ('open ');
})
$ ("# Roleuserdlg"). Empty ();
$ ("# Roleuserdlg"). append (JSON );
// $. Messager. defaults. OK = "close ";
/// Parse JSON
// $. Messager. Alert ('Role owner user', JSON );
// $ (". Panel-body-noborder" ).css ("overflow-y", "Auto ");
})
$ ("# Roleuserdlg" ).css ("overflow-y", "Auto ");
$ ('# Roleuserdlg'). Dialog ('open ');

}

// View the role user
Function roleuser (OBJ, ID ){
VaR c_id = ID;
VaR url = "/sys/roleusername" + "/" + c_id;
$. Getjson (URL,
Function (JSON ){
$. Each (JSON, function (I ){
$ ("# Roledlg"). append (JSON. Data)
$ ('# Roledlg'). Dialog ('open ');
})
$ ("# Roleuserdlg"). Empty ();
$ ("# Roleuserdlg"). append (JSON );
// $. Messager. defaults. OK = "close ";
/// Parse JSON
// $. Messager. Alert ('Role owner user', JSON );
// $ (". Panel-body-noborder" ).css ("overflow-y", "Auto ");
})
$ ("# Roleuserdlg" ).css ("overflow-y", "Auto ");
$ ('# Roleuserdlg'). Dialog ('open ');

}

// View the role user
Function roleuser (OBJ, ID ){
VaR c_id = ID;
VaR url = "/sys/roleusername" + "/" + c_id;
$. Getjson (URL,
Function (JSON ){
$. Each (JSON, function (I ){
$ ("# Roledlg"). append (JSON. Data)
$ ('# Roledlg'). Dialog ('open ');
})
$ ("# Roleuserdlg"). Empty ();
$ ("# Roleuserdlg"). append (JSON );
// $. Messager. defaults. OK = "close ";
/// Parse JSON
// $. Messager. Alert ('Role owner user', JSON );
// $ (". Panel-body-noborder" ).css ("overflow-y", "Auto ");
})
$ ("# Roleuserdlg" ).css ("overflow-y", "Auto ");
$ ('# Roleuserdlg'). Dialog ('open ');

}

// View the role user
Function roleuser (OBJ, ID ){
VaR c_id = ID;
VaR url = "/sys/roleusername" + "/" + c_id;
$. Getjson (URL,
Function (JSON ){
$. Each (JSON, function (I ){
$ ("# Roledlg"). append (JSON. Data)
$ ('# Roledlg'). Dialog ('open ');
})
$ ("# Roleuserdlg"). Empty ();
$ ("# Roleuserdlg"). append (JSON );
// $. Messager. defaults. OK = "close ";
/// Parse JSON
// $. Messager. Alert ('Role owner user', JSON );
// $ (". Panel-body-noborder" ).css ("overflow-y", "Auto ");
})
$ ("# Roleuserdlg" ).css ("overflow-y", "Auto ");
$ ('# Roleuserdlg'). Dialog ('open ');

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.