Copy Code code 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 handy jquery plugin.
The guy who wrote this thing is strong.
Thank him, otherwise I do not know how to do this effect when ...
----------------------------function---------------------------
Infinite-level pop-up window
* ESC exits block pop-up window
* Can drag the window
* Modal window
* Modal Alert warning dialog box
* Modal Confirm dialog box
* Page Local mode
* Bind button response function
* Pop-up window loading iframe
* Custom Background style
The component provides six functions:
Copy Code code as follows:
$.funkyui//Popup modal window
$.unfunkyui//Close modal window
$.alert//Warning Prompt dialog box
$.confirm//Confirmation and Cancellation dialog box
$.fn.block/Block modal
$.fn.unblock//Block modal
Call Example:
Copy Code code as follows:
$.blockui ({
URL: "1.html",//pop-up window display content, using IFRAME
Okevent:okevent,//okevent is a custom-defined button response function,
Css:{width: "M", Height: "500"}
});
$.alert ("This is the Warning window");
$.confirm ("This is a Boolean window");
$ (' #blocked '). block ();//id is set to read-only for blocked elements
$ (' #blocked '). Unblock ()/lift