PHP Ajax Framework Xajax Primer and Trial _php tutorial

Source: Internet
Author: User
Please enter the text box in PHP (the current mainstream development language) Ajax (dynamic website static) framework Xajax (dynamic website static) Getting Started and trial

One, Xajax (dynamic website static) and other Ajax (dynamic site static) framework Comparison
Xajax (dynamic website static) function is very simple, but very flexible! ~ It's not like some other big frame, the function is really powerful, but the execution speed is not flattering. Features are many, but not flexible enough. The API is so much, it's like learning a new language.
Second, Xajax (dynamic website static) function of the introduction
Xajax (Dynamic Web site static) function is relatively simple, but because of the simple, so flexible. At the same time, this also requires the user to have a certain understanding of the Javascrīpt/vbs client script. Because its function is relatively alive. Can say pure use Xajax (dynamic website static), what also can't do out, but with js/vbs and what all do out.
Xajax (dynamic website static) mainly uses Xajax (dynamic website Static) response This class, it provides some methods, such as the following:
1, Addalert ($SMSG)
Pop-up warning
2, addscrīpt ($sJS)
Execute a section JS
3, $objResponse->addassign ("", "", "")
Attach a value to an element in a page, or modify its properties
Wait a minute....

So Xajax (dynamic website static) is not dead, it can't make xxx xxx function, but it can control the client's js/vbs flexibly, to accomplish the effect we want to achieve.

Third, Xajax (dynamic website static) installation configuration
No special installation and configuration required, just download the package and extract it to the site Directory
Download Address:
Http://www.xajax (dynamic website static) project.org/

Third, the use of Xajax (dynamic website static) to do membership registration and Login
1. Database
Using MySQL (and PHP collocation of the best combination) 5.0, database name ZL table name Zl_user table structure
ID int (one) auto_increment
Zl_user varchar (50)
Zl_pwd varchar (50)
Email varchar (50)

http://blog.knowsky.com/

2, reg.php (as the current mainstream development language) registration document (with instructions)

Require_once ("Inc/xajax (dynamic website static). inc.php (as the mainstream development language Now)");
Using Xajax (dynamic site static) you must first introduce Xajax (dynamic site static). inc.php (as the mainstream development language now)
$xajax (dynamic website static) = new Xajax (dynamic website Static) ("inc/signup.php (as the mainstream development language Now)");
Create a Xajax (Dynamic Web site Static) object for singup.php (as the current mainstream development language)
$xajax (dynamic website Static)->registerfunction ("ProcessForm");
Using the ProcessForm function in singup.php (as the current mainstream development language)
?>



<title>Untitled Document</title>
Printjavascrīpt (inc/);?>

function Submitsignup ()
{
Xajax (dynamic website static). $ (Submitbutton). Disabled=true;
Xajax (dynamic website static). $ (Submitbutton). value= "Http://blogbeta.blueidea.com/wait ...";
To modify an attribute with ID Submitbutton
Xajax (dynamic website static) _ProcessForm (Xajax (dynamic website static). Getformvalues ("Signupform"));
Here Xajax (Dynamic site static) _ followed by which function to use here is ProcessForm, followed by the signupform of the form of the collection of the items
return false;
}




http://www.bkjia.com/PHPjc/508533.html www.bkjia.com true http://www.bkjia.com/PHPjc/508533.html techarticle Please enter the text box in PHP (as the current mainstream development language) Ajax (dynamic website static) framework Xajax (dynamic website static) get started with trial one, Xajax (dynamic website static ...

  • 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.