thinkphp Ajax Delivery

Source: Internet
Author: User
thinkphp Ajax Submission
I am a novice weak weak Ask a question
function aa () {
Thinkajax.sendform (Form Id,url, callback function, where information is displayed);
Thinkajax.sendform (' frm ', ' app/lib/modules/dealmodule/add ', WC);
function WC (data,status) {
if (status!=1) {
Alert (' send failed ');
Alert (' 2 ')

--------------------------------------------------------------------------------------------------------------- ----

function Tijiao ()
var name = document.getElementById ("Usernaem"). Value;
var Eamil=document.getelementbyid ("Eamil"). Value;
var Phone=document.getelementbyid ("Phone"). Value;
var Jiner=document.getelementbyid ("Jiner"). Value;

Jquery.ajax ({
URL: ' App/lib/modules/dealmodule/add ',
Type: ' POST ',
Data: {' Usernaem ': Name, ' Eamil ': Eamil, ' Phone ':P hone, ' Jiner ': Jiner},
Success:function (Result) {
Alert (Result)
Error:function (msg) {
Alert (' Error: ');

Two JS above the two reference JS has been prototype.js error uncaught typeerror:undefined is not a function This error does not know how to submit to the background
------to solve the idea----------------------
Jquery.ajax ({...
This is jquery.js.
What do you call a prototype.js?
------to solve the idea----------------------
This is jquery.
------to solve the idea----------------------
No reference to Jquery.min.js.
  • Related Article

    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: 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.