functionChecksite () {varsite_list=$ ("Textarea[name= ' oldsite ')"). Val (); if(site_list== "") {alert (' IT cannot be empty! '); return false; } Ajaxstar ("Searching ..."); $.ajax ({type:"POST", URL:"Transip.asp", data:{"Search": "Check_site", "Site_list": Escape (site_list)}, Error:function() {ajaxclose (); Alert ("SYSTEM error!"); }, Success:function(msg) {ajaxclose (); varMsgarr=msg.split ("-|-") if(msgarr[0]== "413") { $("Textarea[name= ' Oldip ']"). HTML (msgarr[1]); } Else{alert (msgarr[1]); } //alert (msg[1]); } } )}functionTransferip () {varsite_list=$ ("Textarea[name= ' oldsite ')"). Val (); varip_list=$ ("Textarea[name= ' Oldip ')"). Val (); varip_new=$ ("Input[name= ' Newip ')"). Val (); /*var del_go=$ ("Input[name= ' Deloldsite '][checked]"). Val (); var check_go=$ ("Input[name= ' Checksiteinfo '][checked]"). Val ();*/ if(ip_list== "" | | ip_new== "") {alert (' IT cannot be empty! '); return false; } Ajaxstar ("LOADING ..."); $.ajax ({type:"POST", URL:"Transip.asp", data:{"Search": "Check_ip", "Ip_list": Escape (Ip_list), "ip_new": Ip_new, "Site_list": Escape (site_list)}, Error:function() {ajaxclose (); Alert ("SYSTEM error!"); }, Success:function(msg) {ajaxclose (); //alert (msg); varMsgarr=msg.split ("-|-") if(msgarr[0]== "413") {alert (msgarr[1]); } Else{alert (msgarr[1]); } //alert (msg[1]); //location.reload (); } } )}/**div Loading Ajax effects * **/functionAjaxstar (str,e) {//STR hint message e:iframe box visit varHtml= ""; HTML+ = "<div id= ' Ajaxloaddiv ' ></div>"; HTML+ = "<div class= ' Ajaxloadicon ' >"; HTML+ = "<span class= ' Ajaxicon ' ></span>"; if(str) HTML+ = "<span class= ' Ajaxinfo ' >" +str+ "</span>"; HTML+ = "</div>"; $("Body"). append (HTML); vardivh=$ (document). Height ();//-$ ("#admin_topbj"). Height ();$ ("#ajaxLoadDiv"). CSS ({"Height":d ivh, "top": 0, "opacity": 0.5}); varicontop=$ (window). Height ()/2; icontop=icontop+$ (document). ScrollTop (); $(". Ajaxloadicon"). CSS ({"Top": icontop+ "px")});}/** * * Close AJAX Matte * * * **/functionAjaxclose () {$ ("#ajaxLoadDiv"). Remove (); $(". Ajaxloadicon"). Remove (); }functionLook_seven () {window.location.href= "/setinmanager/winhost/migratejob/record.asp";}
Image address: Working with code----Ajax->images in micro Cloud
Ajax Matte Instance