While it is convenient to get fully formatted HTML by request, it also means that you must transfer a lot of HTML tags while transferring text content. Sometimes, we want to be able to transfer as little data as possible and then process that data
This type of submission must match Multipartresolver,$ ("Button:submit"). Click (function() {$.ajax ({type:' POST ', URL:' ${sys_config.root_path}/login.html ', Cache:false, ProcessData:false, ContentType:false, Data:NewFormData ($ (' #login_form ')
such as visiting StackOverflow,More like flexerasoftware.com (causes Visual Studio Packager InstallShield Limited Edition cannot register and download)The reason is that StackOverflow-loaded jquery files are placed on Google's servers, while
Come straight to the dry.The program works under a single IIS, and the domain name (load balancer) opens up various cross-domains. Under the study, a solution can be generally used as long as the following conditions are met:Conditions are:1. HTTP
1. the most classic problem is the cache problem in IE. If get is used, a cache problem occurs in IE. The code is executed only once. The solution is to add a timestamp or random number to make the URL unique so that no IEOr change to post for
In Ajax, we often use get and post requests. When will get requests and post requests be used? Before answering the questions, we must first understand the difference between get and post.1. Get adds the parameter data queue to the URL referred to
Use ajax to operate JavaScript objects, ajaxjavascript
Although it is convenient to obtain fully formatted HTML through a request, it also means that many HTML tags must be transmitted while the text content is transmitted. Sometimes we want to
In the past, we often saw a website with the webpage skin replacement function. Today I will introduce how to skin the webpage. Here we mainly use the css + js cookies for operations, the following is a detailed introduction.
Preparations required
The replace method is a commonly used character replacement method in Javascript. It can directly replace a specified string or write multiple regular expression rules in the replace method to replace, the following describes how to use the replace
Sometimes we need to dynamically Add the select option. Below I will separate my work records for you. Here we include jquery and js implementation code.
Js version
The Code is as follows:
Copy code
// Create an optionVar
This article focuses on the seamless scrolling of marquee and js (javascript) images. If you need it, you can try it for reference.
The following is a simple method I found on the Internet that combines marquee and js to solve seamless image
Document. location this object contains information about the current URLLocation. host get port numberLocation. hostname set or get Host NameLocation. href set or get the whole URLLocation. port: set or obtain the port number of the URL.Location.
FckEditor's articles have been introduced before. Today, let's talk about how to use PHP to call the FCK editor. The Code of fckeditor can be written as a function or category and called directly, you don't have to write so much code every time! I
As the namespace changes, the following GM_getValue and GM_setValue cannot be called in unsafeWindow:
// Normal use
GM_setValue ('foo', true );
GM_etValue ('foo ');
// The value of GM cannot be accessed.
$ ("# BtnPost"). click (function (){
GM_
This is the JS Code based on the cookie. It is collected from the Internet and is not tested in multiple browsers. The webpage window in IE is only displayed once.
Usage:
1. Add the following code to the head section of the webpage.
2. Put the red
June May 23 news: Yesterday Google launched a LOGO game on every homepage around the world to commemorate the 30th anniversary of the toy game. I found today that Google's LOGO is still a toy game, many friends asked the fire about the
This article mainly introduces the usage of $. post and $. ajax in Jquery.
$. Ajax usage of Jquery:
JQuery. ajax (options): loads remote data through HTTP requests. This is jQuery's underlying AJAX implementation. For easy-to-use high-level
This article will introduce you to the full-site AJAX case details of jQuery Address. In order to improve user experience and improve the front-end page effect, more and more Web applications and websites of enterprises or individual groups are
Today, when I requested data from the backend server without refreshing the ajax page, I encountered Ajax cache in IE. Both FF and Chrome are normal, because I didn't know that IE had this bad problem at the beginning, finally solve the problem.
By
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.