Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.22.242.169
var $host_url =
"http://" +
window.location.host +
"/" +
window.location.pathname.split("/")[1] +
"/" +
window.location.pathname.split("/")[2] +
"/app.php?a=";
console.log($host_url);
var filename = "";
function saveJobApp() {
var idFname = $("#idFname").val();
var idMobile = $("#idMobile").val();
var idEmail = $("#idEmail").val();
var TSR = $("#TSR").val();
var preferloc = "";
if (document.getElementById("Bengaluru").checked == true)
preferloc += "Bengaluru*";
if (document.getElementById("Shivamogga").checked == true)
preferloc += "Shivamogga*";
if (document.getElementById("Ballari").checked == true)
preferloc += "Ballari*";
if (document.getElementById("Belagavi").checked == true)
preferloc += "Belagavi*";
if (document.getElementById("Bijapur").checked == true)
preferloc += "Bijapur*";
if (document.getElementById("Gulbarga").checked == true)
preferloc += "Gulbarga*";
file_file = "file";
var file_name = $("#" + file_file).val();
console.log("data", idFname, idEmail, idMobile, file_name);
var file_size = $("#" + file_file)[0].files[0].size;
var file_extn = file_name.split(".").pop();
var file_extn = file_extn.toLowerCase();
if (file_extn == "pdf" || file_extn == "doc") {
} else {
alert("Pdf, doc files are allowed!");
return false;
}
if (file_size >= 2000000) {
alert("Upload files with size less then 2MB!");
return false;
}
var file_data = $("#" + file_file).prop("files")[0];
var form_data = new FormData();
form_data.append("file", file_data);
console.log(form_data);
var parameters =
"&idFname=" +
idFname +
"&idMobile=" +
idMobile +
"&idEmail=" +
idEmail +
"&file=" +
filename +
"&preferloc=" +
preferloc +
"&TSR=" +
TSR;
console.log(parameters);
// $.blockUI({ message: "<h1 class='h1' style='font-size:12px'><img src='../images/ajax-loader.gif' border='0'></h1>" });
$.ajax({
type: "POST",
url: $host_url + "jobAppDet",
data: parameters,
success: function(data) {
// $.unblockUI()()
$("#personal_det").hide();
$("#success_card").show();
// console.log(data);
},
error: function(data) {
alert(data);
}
});
}
function UploadResume() {
var file_file = "file";
var file_name = $("#" + file_file).val();
var file_size = $("#" + file_file)[0].files[0].size;
var file_extn = file_name.split(".").pop();
var file_extn = file_extn.toLowerCase();
if (file_extn == "pdf" || file_extn == "docx" || file_extn == "doc") {
} else {
alert("DOC, DOCX, PDF files are allowed!");
return false;
}
if (file_size >= 2000000) {
alert("Upload files with size less then 2MB!");
return false;
}
var file_data = $("#" + file_file).prop("files")[0];
var form_data = new FormData();
form_data.append("file", file_data);
$.blockUI({
message:
"<h1 class='h1' style='font-size:12px'><img src='../images/ajax-loader.gif' border='0'></h1>"
});
$.ajax({
type: "POST",
url: "upload_file.php",
data: form_data,
cache: false,
contentType: false,
processData: false,
success: function(data) {
$.unblockUI();
filename = data;
},
error: function(data) {
alert(data);
}
});
}
|