Doing Web applications often requires uploading.
So, Ajax uploads are often used.
Share a jquery Ajax upload component Ajaxfileupload.
The usage is simple:
The code is as follows
Copy Code
/upload.html is
Ajax is all called "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), a Web development technology that creates interactive Web applications. It contains the following kinds of technologies organically:
Definition of Ajax
Example 1. jquery+ajax/"target=" _blank ">jquery Ajax sync Way
The code is as follows
Copy Code
$.ajax ({URL: ' test.php ',Type: ' Post ',Async:false,//Using synchronous method, True is asynchronousData: {' act ': '
Add a cache switch for $.getscript ()
The code is as follows
Copy Code
Add cache control to Getscript method(function ($) {$.getscript = function (URL, callback, cache) {$.ajax ({type: ' Get ', Url:url,
Jquery.post (URL, [data], [callback], [type])
Load information through a remote HTTP POST request and use Post to make asynchronous requests.
This is a simple POST request function to replace the complex $.ajax. Callback functions can be invoked
Recently, many of the old students in Shuo-asp.net asked me: "In the development of the Web site, how to let the Ajax page to be included in the search engine?" ”As we all know, in Ajax all onclick action direct contact Hair JavaScript events, the
UpdatePanel
a very important control in Atlas, powerful and easy to use, allows us to add Ajax to an existing ASP.net site with little change. With the advice of dflying, I am also a world of UpdatePanel into Atlas. This article will add UpdatePanel
1, in the service side (such as PHP) plus "header (" Cache-control:no-cache,must-revalidate ");" ;
2, in the AJAX send the request before adding "Anyajaxobj.setrequestheader" ("If-modified-since", "0"); ;
3, in the AJAX send the request before
Because XMLHTTP in the processing of the return of the Responsttext Responstbody by the UTF-8 encoding decoding, if the server-side sent the data stream is really UTF-8 code, then the Chinese text will be correctly displayed, However, this is the
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
This article provides the tutorial is a JS Ajax solution browser "forward" "Back" button invalidation problem oh, in AJAX development, the forward back page is a difficult problem, now we provide a complete solution to deal with this matter.
new
Www.forasp.cn the $.ajax (options) is used to implement Jqueryajax. The submission is set in type, and this Ajax is directly marked with a get way to submit the data. (1) Syntax: $.get (Url,data,fun,type); The URL represents the page on which
Pure Ajax image upload, Ajax to post pictures streaming to the server.
FormData can change post data to stream transfer.
Ajax upload$ ("#upload"). Click (function () {var url = "http://mm.com/ajaxupload.php";var formData = new FormData ($ ("#frm")
Jquery's tool functions encapsulate the processing methods of commonly used strings, numbers, arrays, and objects. Below are some of the commonly used methods:String operation The code is as follows:Copy code Var str = 'www.111cn.net ';Console.
We have always used the string sharding method to process the data returned by AJAX. Today, baidu finds that eval () can be used.For example: eval (http_request.responseText );Eval () functionJavaScript has many tips to make programming easier.One
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.