jQuery load() Method

jQuery load() The method is simple but powerful AJAX Method .

load() Method to load data from the server , And put the returned data into the selected elements .

grammar :

$(selector).load(URL,data,callback);
$("button").click(function(){
$("#div1").load("demo_test.txt",function(responseTxt,statusTxt,xhr){
if(statusTxt=="success")
alert(" External content loaded successfully !");
if(statusTxt=="error")
alert("Error: "+xhr.status+": "+xhr.statusText);
});
});

jquery ajax load More articles about

  1. jQuery ajax Load How to turn off the cache

    [ Reading guide ]  stay jQuery ajax Load The way to turn off the cache is simple , All we have to do is $ ajaxSetup Zhongba cache: false I was stunned , Of course, we can also use a random parameter as an example . Brief introduction load(url ...

  2. jQuery Ajax(load,post,get,ajax) Usage and detailed explanation

    Today, I saw that some netizens in the group asked Jquery Ajax Of (load,post,get,ajax) The difference between , Now I've sorted out an article , Hope to help netizens , First, let's look at some simple methods , These methods are all right jQue ...

  3. jQuery – AJAX load() Method

    jQuery load() Method jQuery load() The method is simple but powerful AJAX Method . load() Method to load data from the server , And put the returned data into the selected elements . grammar : $(selector). ...

  4. jQuery Ajax(load,post,get,ajax)

    1.load(url, [data], [callback]) Load remote HTML File code and insert into DOM in . By default GET The way - Automatically convert to when additional parameters are passed POST The way .jQuery ...

  5. Let browser support jquery ajax load Forward 、 back off function

    BEGIN; Generally doing ajax load When , A lot of people don't think about the need for browsers to support the forward and backward functions , Because most people don't know how to achieve . I've come across this problem recently , After a little bit of research , Find out github There are already ready-made open source workers ...

  6. jQuery AJAX load() Method

    jQuery load() Method jQuery load() The method is simple but powerful AJAX Method . load() Method to load data from the server , And put the returned data into the selected elements . grammar : $(selector). ...

  7. Jquery ajax load(),get(),post()

    //load() Used to load html Code snippets in the document , Add to the inside of the specified element // If you only add some of the selected elements, you can .load("url Selectors ") <!DOCTYPE html>&l ...

  8. Ajax load html page

    jQuery ajax - load() Method jQuery Ajax Reference manual example Use AJAX Ask to change div The text of the element : $("button").click(fun ...

  9. Jquery in $.load(),$.get(),$.post(),$.ajax(),$.getJSON() It's different from

    These five are all ways to get pages or data .. It's all based on Ajax Agreed ..   $.get(url,[data],[callback])     // describe :  Load data from server , The request method is GET.  url   ...

Random recommendation

  1. Cocos2d introduction --3-- The application of vectors

    *:first-child { margin-top: 0 !important; } body > *:last-child { margin-bottom: 0 !important; } ...

  2. Linux Process control block under ——task_struct

    stay Linux The concrete implementation of PCB Yes. task_struct data structure , The following implementation is taken from github I want to say it's really, really long ...... ↓ struct task_struct { volatile long ...

  3. opencart Modify the background folder name

    In the use of opencart During the secondary development , If you need to modify the folder name of the background directory, you can operate . The specific steps are as follows : 1. Change the name of the site background folder to opencartadmin 2. Find... Under this folder config.php The document is as shown in the figure ...

  4. js isArray Summary

    original text :[ Reprint ]js isArray Summary In daily development , We often need to determine whether an object is of array type , stay js There are several common ways to detect object types in : 1.typeof The operator . about Function.String.N ...

  5. MySQL Parameters - Innodb_File_Per_Table( Independent table space )

    Innodb The storage engine can store all data in ibdata* Shared tablespaces for , Each table can also be stored in a separate .ibd Independent tablespaces for files . Shared table space and independent table space are all for the storage of data . Share all of a database in a table space ...

  6. 3.BIND From server and cache server configuration

    One . Domain slave server The slave server of a domain (slave) It is usually used for backup and load balancing , All the information of this domain is controlled by the master server of the domain , Domain slave When the server starts, it starts from the primary server of the domain (master) Grab the zone Configuration document ...

  7. ICMP Ping The template realizes the monitoring of the client's network state

    Zabbix Use external commands fping Handle ICMP ping Request ,fping Not included in zabbix In the release of , Need extra to download and install fping Program , After installation, you need zabinx_server.conf Reference in ...

  8. agent (Proxy) Model introduction

    One . agent (Proxy) Model introduction Agent mode is structural mode . The proxy pattern provides a proxy object for an object , The proxy object controls the reference to the original object . Proxy objects are inherited from abstract topics , And control the reference of the original object Two . A simple example Abstract theme class ...

  9. tencent QQ Spatial super resolution technology TSR

    tencent QQ Spatial super resolution technology TSR: Save... For users 3/4 Traffic , The processing effect and speed surpass Google RAISR Lei feng network AI Technology Review : As the screen resolution of mobile terminal becomes higher and higher , Even like iPhone More so-called “ Retina screen ”, People's demand for high-definition pictures ...

  10. Huawei switch STP root ID Priority settings

    http://m.blog.csdn.net/flyfish5/article/details/50224537 STP(Spanning Tree Protocol) Spanning tree protocol .  Redundant links Current traffic ...