Original article: Native Ajax basic explanation and compatibility Processing Ajax = Asynchronous JavaScript and XML (Asynchronous JavaScript and XML ). Ajax is not a new technology, but a hot technology. It can interact with the server and update
Generally, we will judge the logon status in the filter. If we do not log on, we will jump to the logon page. The core Java code of the filter is as follows: Useritem loginuser = (useritem) request. getsession (). getattribute ("loginuser"); If
I. Ajax stands for Asynchronous JavaScript and XML. Asynchronous is asynchronous, which is different from the synchronous method used in traditional web development.
II:About synchronous and asynchronous
Asynchronous transmission is
Windows Communication Foundation is released as. NET Framework 3.0. Therefore, only version 2008 and later can be used to create a WCF application.
WCF is an integration of existing distributed communication technologies, including COM/DCOM,. Net
Ii. Prototype library details
1. Use of prototype Library
// Import the downloaded prototype. JS File
// Directly use the prototype object in your own JS
2. Use the $ () function and $ () function to access HTML elements in the document.
$
I wrote a small article to commemorate the 7th event.
Submit is generally used to submit a form. However, if you want to use Ajax for submission, you also want to press the "enter" trigger button.
In this case, the form submission event is blocked
(1)
JSON format of client request text: received in JSON format, and then parsed by JS (Eval is an object first, and then)
var text = this.responseText;var book = eval('('+ text +')');document.getElementById('btitle').value =
1. Design of shopping cart
ShoppingCartItem: encapsulation of a book, including three attributes: title, quantity, and price, and corresponding getter and setter methods.
ShoppingCart: the shopping cart encapsulation class. The items is Map , and
Right-click the menu today. When you click Rename to make an Ajax request, the page will jump directly to the homepage instead of sending data to the background. Bai Si cannot solve the problem. Later, he found a problem on the front-end page:Copy
In fact, Ajax has been in use for a long time, but it has never been time to look for the book system seriously. It has been quite time-consuming recently. This series is based on the combination of Ajax and PHP, mainly to share experiences with
Before reading this article, specify a common variable xhr and xhr code ajax object. Test Browser: ie is ie6, firefox is 2, and others are not tested. Ie6 is Internet Explorer and firefox2 is ff.The most classic problem is the cache problem in
The setTimeout function is mainly a timing function in js. We often use it as a timer. Next I will explain the usage of setTimeout in js in depth.
A few days ago, I just published an article that uses setTimeout to improve the ui response speed. I
I have seen a foreign user using console. table () to debug javascript code. I feel this is very good. Next I will introduce you to using console. table () to debug javascript instances.
Maybe you are used to console. log () to debug js, very easy
JSON data format is a lightweight data storage format that is faster than xml for real-time interaction. Below I will give you some pieces of my understanding about JSON data format, I hope this tutorial will be helpful to you.
1. What is JSON
JSON
This article introduces how to solve the incompatibility problem between onkeydown and onkeyup on Firefox and Google. I hope this tutorial will help you.
Under normal circumstances, we usually capture the onkeydown or onkeyup event in the input to
Sometimes we will <> this type of characters in html, and we need to convert it into html character encoding for ease of use. Let's look at an example below.
An html string is a string with special html characters such as ' aklsdjfklsjdfl , we
AJAX Chinese problems fall into two categories: 1) the parameters in the sending path are in Chinese, and the received parameter values in the server segment are garbled. For example:Var url = "a. jsp? Name = Xiao Li ";XmlHTTP. open ("post", url,
We all know that using the general method, we cannot copy the content across browsers, and there is no way to copy the content to the clipboard under ff, next, I will introduce a Zero Clipboard plug-in to implement cross-Browser IE copying content
Jquery to verify the user name (ajax to verify whether the user name exists) Below we will provide a jquery plug-in to verify the user name. Here we use jquery ajax to verify whether the user name exists.
Jquery verifies the user name (ajax verifies
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