CopyCode The Code is as follows: <SCRIPT type = "text/JavaScript" src = "JS/jquery. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "JS/JSON. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "JS/jquery. funkyui. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
$ (Document). Ready (function (){
$ ("# Click"). Click (function (){
$. Getjson ("ajaxuser. jspx", {}, function (JSON ){
// Alert (JSON );
$ ("# Clicktab"). Children (). Each (function (){
$ (This). Remove ();
});
$ (JSON). Each (function (){
VaR id = This. uid;
VaR name = This. uname;
VaR Pwd = This. upwd;
// Alert (name );
VaR htmlstr = '<tr> <TD bgcolor = "white">' + ID + '</TD>' + '<TD bgcolor = "white">' + name +' </TD> '+' <TD bgcolor = "white"> '+ PWD +' </TD> </tr> ';
$ ("# Clicktab"). append (htmlstr );
});
});
});
$ ("# Clicktab"). ajaxstart (function (){
$. Funkyui ({
Showdialog: false
});
});
$ ("# Clicktab"). ajaxstop (function (){
$. Unfunkyui ();
});
});
</SCRIPT>
Finkyui is a very useful jquery plug-in.
The guy who wrote this stuff is very strong.
Thank you. Otherwise, I don't know when to do this ......
---------------------------- Function ---------------------------
Unlimited pop-up window
* Exit block from ESC dialog box
* Drag a window
* Modal window
* Modal alert warning dialog box
* Modal confirm dialog box
* Page Local Mode
* Bind button Response Function
* Loading IFRAME in the pop-up window
* Custom background Style
The component provides six functions:
Copy code The Code is as follows: $. funkyui // The modal window is displayed.
$. Unfunkyui // close the modal window
$. Alert // warning dialog box
$. Confirm // confirmation and cancellation dialog box
$. FN. Block // Block Mode
$. FN. Unblock // unblock Mode
call example: copy Code the code is as follows: $. blockui ({
URL: "1.html", // The content displayed in the pop-up window, using IFRAME
okevent: okevent, // okevent is a custom OK button response function,
CSS: {width: "700", height: "500"}
});
$. alert ("this is the warning window");
$. confirm ("this is a Boolean window");
$ ('# blocked '). block (); // The element whose ID is blocked is set to read-only
$ ('# blocked '). unblock (); // unblock