Jquery. Post (URL, [data], [callback]) loads information through a remote http post request. This is a simple POST Request function to replace complex $. Ajax. You can call the callback function when the request is successful. To execute a function when an error occurs, use $. Ajax.
Return Value
XMLHttpRequest Parameters
URL(String): The sending request address.
Data(MAP): (optional) Key/value parameter to be sent.
Callback(Function): (o
First show you the effect of the picture, see if you want to achieve the effect, if you are satisfied with the details of this article, and you can download the source Oh.
Effect Chart:
Effect Display source Download
Code Description:
Imitation Baidu Encyclopedia Right navigation code jquery Plug-ins, this imitation encyclopedia right side of the navigation
-timeline. Events-content li.leave-right,. Cd-horizontal-timeline. events-content Li.leave-left {Anim
Ation-direction:reverse;
} @keyframes cd-enter-right {0% {opacity:0; Transform:translatex (100%);
} 100% {opacity:1;
Transform:translatex (0%);
}} @keyframes Cd-enter-left {0% {opacity:0;
Transform:translatex (-100%);
} 100% {opacity:1;
Transform:translatex (0%); }
}
Js
In Main.js, adjust the distance of two date nodes on the date navigation bar based on the length of interv
When we enter the form, such as to enter the mailbox, just enter the front of the mailbox, then the content will be automatically completed, will be commonly used in a few mailboxes listed, users can only choose to complete the form of input. such as the time of input, domain name input can be automatically completed, these are plug-ins completer to help you achieve.
The effect is shown in the following illustration:
Effect Display source Download
/html"; //Obtain the download file name for the client request stringDownfilename=context. request.querystring["name"]; if(!string . IsNullOrEmpty (Downfilename)) {//determine if a client requests a downloaded file on the server//get the full path of the file first stringFilePath =context. Server.MapPath (Downfilename); if(File.exists (FilePath)) {//to file love your path transcoding to prevent garbled when output to the c
JQuery multi-File DownloadFile downloading is a very common function in the Web, but you will encounter this problem if you are an internal management system or an Internet company oriented to the public, generally, users who have some practical development experience can solve this problem by themselves. The multi-File Download was completed last week. The business scenario is to provide a data detail. An
Ajax file download, is actually a mock form submission, the code is as Follows:
function download(url, data, method){
//url and data options required
if( url data ){
//data can be string of parameters or array/object
data =typeof data ==‘string‘? data : jQuery.param(data);
//split params into form inputs
var inputs =‘‘;
jQuery.each(data.split(‘‘), function(){
var pair =this.split(‘
First to show you the effect of the picture, like friends can download the source OH
effect demo source download
The above is a small series to introduce the JQuery custom dropdown box (DropDown) with the source code download, I hope to help you, if you have any questions please give me a message, small
The effect chart is as follows:
View Demo Source Download
HTML code:
JS Code
$ (function () {
$ ('. Pgwmenu '). Pgwmenu ({
dropdownlabel: ' Menu ',
viewmorelabel: ' More
The above content is this article introduces the jquery Adaptive window size navigation menu Entire content, hoped everybody likes.
Today encountered jquery return JSON data, ie browser prompts to download the problem, when the data submitted after the return of the original JSON data, in the fire arc test Normal, but the Internet Explorer is always prompted to save, search on the internet, most of it is said that the contenttype set to "text/ XML "I tested the bottom, the return value is undefined,
Original return value set: Context.
Example 1
The core code is as follows
The code is as follows
Copy Code
$.ajax ({Url:url,DataType: ' JSON ',Data:data,Success:callback});
You can refer to the jquery website Pai http://api.jquery.com/jQuery.getJSON/
The code is as follows
Copy Code
function Changepagination (pageid,liid) {$ (". Flash"). Show ();$ (". Flash"). FadeIn. html (' Loading ');var datastring = ' pageid= ' +
JS phone slideshow code make finger swipe mobile phone side picture Carousel codejquery Mobile side page side navigation menu slide out effect codeJquery.touchswipe.js Mobile Web making touch screen slide navigation display codejquery Responsive Slideshow plugin make picture pop-up phone slideshow codejquery mobiscroll Phone date control make phone end date controlJS finger swipe mobile phone side list loading animation effectjquery Phone navigation menu faux bottom menu codejquery HTML5 Mobile
They are:1. Basic usage: set verification rules through stylesCopy codeThe Code is as follows: When a form is submitted, an error occurs if no email is entered or the email is incorrect, as shown below:
The default prompt after the text box indicates that jquery can be modified. validate. min. js. Search for and replace the style with Chinese. The style can be changed through the css class style, as shown in. required ,. email, etc. Of course, the cla
Before you step into the body of the text, first put the effect map to see if you want the effect:
Online Demo Source Download
Drag the setup code based on the jquery Move end slider. This is a support mobile phone mobile end of the effect, you can drag the slider range selector, drag the slider value selector.
No more nonsense to say, directly to everyone paste code.
HTML code:
JS Code:
Generally used under the file
window.location.href= ' xxx ' But sometimes passing parameters to the background requires
window.location.href= ' xxx?name=123age=234 'It's a little unreasonable to have too many passes or too much length of argument.
jquery.download = function (URL, data, method) {//Get URL and data
if (URL data) {
//data is string or array/ Object
data = typeof data = = ' string '? Data:jQuery.param (data);//input
var inputs = ' To assemble parame
To be improved
1. The large image can be scaled automatically based on the browser resolution. Currently, it is displayed in a fixed width and height, and the excess part is hidden.
2. The large image is loaded directly into all images. If there are many images, the experience is poor. It can be changed to asynchronous loading or delayed loading. This can be implemented using the jquery control lazyload.
3. thumbnails are directly generated based on t
Http://www.jsfoot.com/jquery/demo/2011-09-20/192.htmlAll parameters:$ (obj). Sochange ({Thumbobj:null,Navigation object, default is emptyBotprev:null,button on a, default is emptyBotnext:null,//button next. The default is null thumbnowclass: ' Now ', //navigation object current class, default to ' Today ' thumboverevent:true,//when the mouse is thumbobj when the object is toggled, the default is true, False, only the mouse click on the thumbobj to
Today, when Jquery returns json data, the IE browser prompts you to download the data. After the data is submitted, the returned data is originally json data. The test is normal in the spark, but IE always prompts you to save the data, I searched for the content on the Internet. Most of them set ContentType to "text/xml" and tested it myself. The returned value is undefined,Original Return Value Setting: co
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.