Finkyui plug-in and Ajax based on jquery to implement page data loading function _jquery

Source: Internet
Author: User
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

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.