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 ');
}else{
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;
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.
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.