Example send POST data and obtain returned results Garbled data submitted by ajax postThe tests in firefox are normal, and both chrome and ie kernel have this problem,When the page attribute is set to UTF-8, only firefox is the character set = UTF-8
The full format of the call load method is: Load (URL, [data], [callback]), where
URL: Refers to the address of the file to be imported.Data: Optional parameters, because load can not only import static HTML files, but also import dynamic scripts,
First look at the success of the effect of the chart
Before clicking
After clicking
A friend will say this effect with JS can also be achieved, but I do not understand JS so it is only in this way
HTML page (note the ID in the page)
Let's start with the simplest way of looking at a complex AJAX request, which jquery uses the Jquery.ajax () method for processing. There are some simple methods in jquery that encapsulate the Jquery.ajax () method so that we do not need to use the
First, some basic knowledge of JSON.
The objects in JSON are identified by "{}", and a "{}" represents an object, such as {"Areaid": "123"}, and the object's value is the form of a key-value pair (key:value).
"[]", identifies an array, and splits
Ajax asynchronously invokes a data instance
Through Ajax in the client call back code, through the background code changes, repair, query data, and return the results to the client, in the client to get the data returned by the server to do the
The first applications xmlhttp Microsoft, IE (IE5), by allowing developers to extend their functionality within a Web page using XMLHTTP ActiveX components, developers can transfer data directly to or from the server without navigating from the
My back end is a PHP tutorial, the following code is mainly implemented a function is to provide an appointment registration interface, need to pass the data are: User name, contact telephone number and address
View Sourceprint?......
On the realization method and principle mechanism of Ajax
The name Ajax is said to be a shorthand for asynchronous Web page effects + XML, in fact, it is a combination of the following several technologies.
1. Use CSS Tutorials and XHTML for
function getreturnajax{$.ajax ({Type: "Post",http://www.111cn.net/userexist.asp Tutorial X ",Data: "Username=" +vusername.value,Success:function (msg) {if (msg== "OK") {Showtipex (Vusername.id, " The username can be used ", false)return
Problems with Get encountered:
1. Question one. Caching: When each access URL is the same, the client directly reads the contents of the local cache, even if the background data changes the foreground will not change;
Solution: In? The following
What is Ajax?
Ajax here is not a Greek myth hero, nor detergent brand, not a language, but asynchronous JavaScript and XML (asynchronous JavaScript and XML), where the XML (data format) can also be plain text (Plain Text) or JSON. Simply put, use
Because of the discovery of Ajax currently cross-domain a little problem, only in IE can be set to use, so I wrote a simple ASP webservice, in fact, the role is a thief program, Yahoo caught the weather, and then generate XML. Let's start here and
Domain: Domain is the security boundary of the Win2K network system. We know that the most basic unit of a computer network is "domain", which is not unique to Win2K, but the Active Directory can run through one or more domains. On a stand-alone
It's easier to use the Smarty template here
The main technology of this article: Ajax,php,smarty, and also encapsulates a very simple class
Class:
(function () {function $ (id) {return document.getElementById (ID);} $.init=function ()
Learning Ajax In fact has a very important application, is to perform several other sites of ASP, return the results.
Really use up, found 2 problems, always do Delphi, contact ASP Not many of me, indeed a lot of problems.
First question:
VBS
Start studying Ajax. First dayFirst of all, I am not suitable for the study program of the person, also do not like, because I am very careless, every time will write a lot of code wrong. But out of love for Dom,js,css, I started to study Ajax.What
The examples in this article describe Ajax techniques in JavaScript and jquery. Share to everyone for your reference, specific as follows:
1. What is Ajax?
Ajax, "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), refers to a web
Here we mainly use jquery to implement the ajax form submission method. If you need it, you can refer to it. The code is as follows:Copy code // Add$ (". BaseWorkSaveAdd"). click (function (e ){$. Ajax ({Type: 'post ',Url:
When jquery and ajax are used together, they should be $. get and $. post. The usage is simple: url + parameter + callback function + return value type.Before that, summarize the differences between. load and $. get $. post:. Load: local effect ,.
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