Use finkyui plug-in and Ajax Based on jquery to load page data

Source: Internet
Author: User

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

Related Article

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.