Jquery smart UI is a jquery-based Ajax development framework that implements pre-and back-end separation, function and data separation. The UI Layer uses HTM + JS + JSON to complete all tasks, exchange data with the server through a unified data
When I use $. Get (URL, Data, callback) to obtain an HTML segment and add it to the container issuereportiner iner, my callback is written as follows:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Learning MVC series (repository mode, LINQ, EF, IOC framework Castle, jquery, Ajax) (1) Database ModelingMVC series (repository mode, LINQ, EF, IOC framework Castle, jquery, Ajax) (3) models (ORM, repository mode, paging)
We will focus on
The autocompleteextender control is used to populate the textbox with prompts. Like Google suggest. Here is a small example.
Example: Enter characters in the text box. Some optional lists are randomly displayed in the text box.
1) Create an
The modalpopupextender control is used to set the text style on the webpage. The following is an example: 1) Create an ASP. NET Ajax-enabeld web project in vs2005 and name it modalpopupextender1. 2) Add a text section to the label of default.
The filtertextboxextender control is used to filter the text box, so that the text box can only enter the set value. The input types include numbers, lowercaseletters, uppercaseletters, and customer.
First, let's look at an example:
1) Create
Ratingextender is used to evaluate a thing. It allows you to customize the level. The following is an example:1) Create an ASP. NET Ajax-enabled web project in vs2005 and name it ratingextender1. 2) drag and drop an updatepanel on the default.
The collapsiblepanel control is used to implement a foldable panel function similar to that in XP. First, let's look at an example:1) Create an ASP. NET Ajax-enabled web project named collapsiblepanel1. 2) drag and drop two panels in default.
There is nothing left to worry about. I wrote a small function for refreshing new data queries to display the information. It is similar to Baidu and Google's search prompt functions. Hoho
Implementation principle: When a value is input in the
Step 1
Similar to onkeyup = "usernamechecker (this. Value); call a written JS Function
Step 2
In the JS function, execute a call similar to pagemethods. isuseravailable (username, onsucceeded );
Step 3
The system will automatically
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
The autocompleteextender control can help you automatically enter the Textbox Control (search in the database ).Attribute:Targetcontrolid: Specifies
VaR XMLHTTP;
Function createxmlhttprequest (){
If (window. activexobject ){
XMLHTTP = new activexobject ("Microsoft. XMLHTTP ");
}
Else if (window. XMLHttpRequest ){
XMLHTTP = new XMLHttpRequest ();
}
}
Function validemail (e ){
Createxmlhttprequest
// Add async: false. That is, modify it to synchronize. // After Ajax assigns a value to the Bol, execute the following JS part. In asynchronous mode, the value has been returned before it can be assigned. Function vyes () {var Bol = false; $. ajax (
1. // to allow ASP. Net ajax to call this web service from a script, cancel the comments to the downstream.[System. Web. Script. Services. scriptservice]
This error has clearly been prompted, and the chance of making a mistake is not very high.
2.
What Is Ajax?
Ajax Definition
Ajax is not a technology. It is actually several technologies, each of which has its own unique characteristics. Together, Ajax becomes a powerful new technology. Ajax includes:
XHTML and CSS
Use Document Object Model
Database field: ID (primary key, auto-increment), name (commodity name), price (commodity unit price)
Add a dataset datasetproducts. Add method: getdatabyname ()
-----> Corresponding SQL:Select ID, name, price from DBO. t_product
Where name = @ name
The use of xhr objects is the core of Ajax. For ease of learning, there is no server-side development in the code writing process. The combination of Web Front-end development and server-side development lies in "response data" (such as XML ). I
In the previous article, I practiced how to use IFRAME to refresh Part of the page. However, when I clicked the button, I asked the server to refresh the IFRAME source code page, which is ugly.
What we need is to send refresh requests, receive data,
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