Skip to content

Instantly share code, notes, and snippets.

💭
success never comes from comfort zone

Dinesh R Pithiya dineshpithiya

💭
success never comes from comfort zone
Block or report user

Report or block dineshpithiya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View send.js
var form = $(this.submitButton).parents("form")
var formdata = false;
if(window.FormData)
{
formdata = new FormData(form[0]);
}
var formAction = form.attr('action');
submit_form(formAction,formdata,form,function(result)
{
console.log(result);
View form-submit.js
function submit_form(formAction,formdata,form,callback,async=true)
{
$.ajax({
url : formAction,
data : formdata ? formdata : form.serialize(),
cache : false,
contentType : false,
processData : false,
type : 'POST',
async : async,
You can’t perform that action at this time.