Questions tagged [ajaxsubmit]

The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX. The main methods, ajaxForm and ajaxSubmit, gather information from the form element to determine how to manage the submit process. Both of these methods support numerous options which allows you to have full control over how the data is submitted. Submitting a form with AJAX doesn't get any easier than this!

http://malsup.com/jquery/form/

34 questions
8
votes
9 answers

Fire off alerts on button click

When I click the button, alerts aren't performed. What am I doing wrong? Maybe I need to include some js files in my header section? Here is my login form view:
Rafael Sedrakyan
  • 2,541
  • 10
  • 34
  • 42
3
votes
2 answers

How to prevent redirect to new page on form submit

I am trying to upload a form containing multiple files to my server, request is going to correct Action and I am also getting some data but all the files are coming with null values. var file = function(){ this.submitForm = function () { …
Manjeet Singh
  • 4,382
  • 4
  • 26
  • 39
1
vote
1 answer

Not receive callback in success block of ajax submit options

I have an piece of code here, it's just an ajax options which I use to pass to my $(form).ajaxSubmit(submit_ajax_options) var submit_ajax_options = { url: init_param.server_url, type: 'POST', data: { agents_data :…
Alex
  • 11
  • 2
1
vote
0 answers

using AjaxSubmit(), is there a way to send data without using a form element?

While using the $.AjaxSubmit(), $.AjaxForm().... there are several advantages like for example having a cross-browser uploadProgress which is the main attraction. I have tried several codes, for hours now, I really cannot get a way to reach the…
Universal Grasp
  • 1,835
  • 3
  • 20
  • 29
1
vote
0 answers

submitting a form works in some instances, but returns error 403 in other instances

I have an mvc3 application which makes use of an ajaxsubmit to a controller action. The
opening tag in my page appears like this:
Notaras
  • 611
  • 1
  • 14
  • 44
1
vote
1 answer

Filling div with partial view from ajax submit result

What I want to do: submit a form via ajax and return a partial view into an existing div in the page (without navigating away from the current page) I learned that ajaxSubmit allows form submission without redirection to other pages. So, I have got…
chiapa
  • 4,362
  • 11
  • 66
  • 106
1
vote
2 answers

Upload Progress when upload multiple files

I want to upload multi-file (more than 1000 files, with total more than 2GB). In PHP, i use function if (move_uploaded_file($_FILES['files']['tmp_name'][$i], $original_file)) { $stamp =…
Hueston Rido
  • 809
  • 1
  • 11
  • 16
1
vote
0 answers

ajaxSubmit not working IE9. All other browsers seem fine

I have a simple (naked) MailChimp email signup form that I can't get to work in IE9. Every other browser seems fine. I know this question has been asked before but in various different circumstances. We are using JQuery Form Plugin.
Kerry Smyth
  • 165
  • 1
  • 9
1
vote
0 answers

How to style ajaxSubmitButton, place icon instead of label

I'm new to Yii and I need to use ajaxSubmitButton to get the $_POST variable from the controller and pass it to the next view/page. Now the problem is how do I make it look like the normal button which is:
Compaq LE2202x
  • 2,030
  • 9
  • 45
  • 62
0
votes
1 answer

JQuery ajaxSubmit function is not working for a form in an AngularJS HTML page

I am trying to patch up a legacy image upload code with AngularJS. I have an HTML page which contains a form. Following is the HTML part of the code.
0
votes
1 answer

I have one ajax within submit function, I just want the data of this Ajax and second Ajax data and submit it together Just Combine data on submit

First AJAX makes a post to upload file now I just want this same AJAX when submitted to grab the data from second AJAX and post it together basically I want to post the Id back to the database, everything works just do not know how to combine the…
Azib Haque
  • 19
  • 5
0
votes
1 answer

Response function not working sometimes for .ajaxSubmit()

I have called .ajaxSubmit() to submit data and after saving data successfully, upon response from server, I am redirecting user to next page using JavaScript. Issue is this redirect works most of the time but for 5 to 10 percent times it just…
Umair Malhi
  • 565
  • 1
  • 5
  • 16
0
votes
0 answers

why ajax submit is not working with jquery validations?

My view page code/controller/model for form submission with jquery validations and ajax submit.jquery validations are working but ajax submission function is not working. I want to submit my form details in to db using jquery validations through…
0
votes
0 answers

ajaxSubmit / function(data) call happening twice

I am trying to upload a large file and having issues of submit happening twice. But not for small file sizes. The $("#fileform").ajaxSubmit({ call seems to be happening twice or multiple times instead of once. Or the submit 'success :…
0
votes
1 answer

Prevent return to client's ajaxSubmitHandler

On the front end ejs page, I have a ajaxSubmit handler function like this. $('#submitDetails').submit(function() { $(this).ajaxSubmit({ error: function(xhr) { alert('Error: ' + xhr.status); }, success:…
SamT
  • 165
  • 1
  • 2
  • 11
1
2 3