I am new to jQuery and Ajax and am having a problem. Im getting an error on my console that:
NS_ERROR_XPC_BAD_CONVERT_JS: Could not convert JavaScript argument @ http:
/jquery.js:7065
Why am I getting this error?
this is Im code Usage:
function upload_file(){
var file = document.form1.file_upload;
var date = document.form1.date_added;
var author = document.form1.author;
var user = document.form1.user;
var semester = document.form1.semester;
var class1 = document.form1.class;
var subject = document.form1.subject;
$.ajax({
type:"get",
url:"upload_file.php",
data:{
"file":file,
"date":date,
"author":author,
"user":user,
"semester":semester,
"class":class1,
"subject":subject
},
success:function(result){
$("#result").html(result);
}
});
}
Im waiting for your answers.
PS: I was looking for a forum, but did not get what I want, so if I missed something, sorry in advance.
source
share