Could you tell me some questions about my code? ajax + php (CodeIgniter)

Source: Internet
Author: User
Ask the question in my code: ajax + php (CodeIgniter) I use ajax to pass the page value to the background, but it cannot be obtained. how can I write this? This is troublesome. My page code is: & lt; script & nbsp; type = "text/javascript" & g ask questions in my code ajax + php (CodeIgniter)
I used ajax to pass the page value to the background, but it was not available. could you tell me how to write this? This is troublesome.

My page code is:

$ (Function (){
$ ("Form [name = 'estime']"). submit (function (e ){
E. preventDefault ();
Var btn = $ ("form [name = 'estime']"). find ("input [type = 'submit ']"),
Price = $ (this). find (". price ");
Btn. button ('loading ');
Price.html ("");
$. Ajax ({
Type: "POST ",
Url :' Index. php? Module = testprice & view = getprice ',
Data: $ (this). serializeArray (),
Success: function (data ){
Price.html ("$" + data + "RMB" + "");
Btn. button ('reset ');
},
Error: function (){
Alert ("Service Unavailable ");
}
});
});

Script





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.