Ajax Matte Instance

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.