How Ajax passes multiple parameters

Source: Internet
Author: User
Tags erro

1.

var str=$ ("AP"). Find (' Resp_code '). html (); Gets the value that the rich friend returns inside the XML data
var contract_no=$ ("AP"). Find (' Contract_no '). html ();//Contract number
Assigns the value of the contract number to the hidden field
$ ("#contract_no"). Val (contract_no);
var user_name=$ ("#user_name"). Val ();
var mchnt_txn_ssn=$ ("#mchnt_txn_ssn"). Val ();
var height= $ (document). Height ();
var $L =document.documentelement.clientwidth;
var $H =document.documentelement.clientheight; Use JS to get the current client's high
var $CW =math.ceil ($ ('. Zzc-erro '). CSS (' width '). substr (0,3));
var $CH =math.ceil ($ ('. Zzc-erro '). CSS (' height '). substr (0,3));
if (str== "0000") {

$.ajax({
Type: "Post",
URL: ' 3.php?action=ok ',
Async:false,
data: {contract_no:contract_no, User_name:user_name, mchnt_txn_ssn:mchnt_txn_ssn},
Success:function (data) {


}
});

How Ajax passes multiple parameters

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.