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!
Questions tagged [ajaxsubmit]
34 questions
0
votes
1 answer
AJAX form submit doesn't work in IE11 and Edge
Can't solve a problem with form submittion. I use this code for my form:

pringlesday
- 45
- 5
0
votes
0 answers
Jquery Form sending data the wrong way
I'm using vue resource module to send POST requests, and jquery form plugin to send to the same routes, but with files.
This is my code
function sendWithoutFiles(data){
return this.$http.post(link, data)
}
function sendWithFiles(data){
…

John
- 1,081
- 1
- 9
- 34
0
votes
2 answers
Jquery ajaxform requires two clicks for dynamic form
I have a form that is dynamically loaded using ajax. Once it is loaded, I then am able to submit the form so that it reloads the page. I am trying to now ajaxify the form so that I don't have to reload the page. I am using ajaxform plugin by…

LearntoExcel
- 129
- 2
- 15
0
votes
1 answer
jQuery AjaxForm plugin have to submit twice
I am trying to use the ajaxForm plugin to submit a form via ajax. The problem I am having is that I need to submit the form twice to actually get the form to submit. See code below, and I appreciate any help.
$(document).on('click',…

LearntoExcel
- 129
- 2
- 15
0
votes
2 answers
Ajax form submit and textbox value caching
I have a form (autocomplete='on') that contains a text input
When this form is submitted using $.ajaxSubmit() from jQuery Form Plugin, the value of the textbox is not getting cached by browsers.
Is it possible to…

SkyFx
- 186
- 10
0
votes
2 answers
Why the control is not getting returned from PHP file to AJAX success function?
I'm using PHP, Javascript, AJAX for my website.
I'm putting below only the necessary code.
JS code(AJAX function code):
$("#btn_add_event").click(function(){
var strSeriaze = $( "#formAddEvent" ).serialize();
url = $( "#formAddEvent"…

PHPLover
- 1
- 51
- 158
- 311
0
votes
1 answer
How to get form Element back in success from AjaxForm?
I use AjaxForm to work with forms.
In the "success" I need to get back one of my form fields. The sucess sunction has this info on authors page:
success
Callback function to be invoked after the form has been submitted. If a 'success' callback…

Jerry2
- 2,955
- 5
- 30
- 39
0
votes
1 answer
what is worng in ajaxSubmit calling?
$scope.submitTheForm = function(htmlcode){
var idOfForm = "formOfCalCPDF";
var dataPassed = $.param({'htmlcode':htmlcode,'mode':'getpdf'});
alert("coming here");
$(idOfForm).ajaxSubmit({
url:…

Rishi
- 1,646
- 2
- 15
- 34
0
votes
1 answer
add json objects to ajaxsubmit call
I have a piece of code which goes as following:
var o_titular = {id:'01',fecha:'2014-01-01'};
var o_dependientes = [
{id:'02',fecha:'2014-02-02'},
{id:'03',fecha:'2014-03-03'}
];
var o_fecha = '2014-05-05';
…

jdlcgarcia
- 183
- 11
0
votes
0 answers
jQuery Form API not executing the Success Callback on ajaxSubmit
This is my success callback function but it doesn't execute:
function onComplete (responseText) {
alert(responseText);
$('#progressText').remove();
$('#uploadImg').show();
}
And here is My main code..
var options = {
target: …

ChanX
- 362
- 3
- 9
- 26
0
votes
2 answers
execute php mail function through ajaxsubmit for contact form without redirecting to php file
function contactForm(){
function e(e){
var t=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
return t.test(e)
}
$(".js-contact-form").submit(function(){
$(this).ajaxSubmit({
data:{
…

w2dm
- 1
0
votes
2 answers
Can I set the CHtml:::ajaxSubmitButton url, that follows to another website, not to current website's controller
I have smth like this:
echo CHtml::ajaxSubmitButton('Process','http://sm.widgetgen.com/api/send/s/859244cf9aaba64cbc50d1ffd1ee4620',
array('dataType' => 'json',
'type'=>'POST'),
array('type' => 'submit'));
But it…

Cy6erNinja
- 48
- 8
0
votes
0 answers
Calling jQuery Form ajaxSubmit more than once fails
I have a form that has a "Preview" button, which submits the form contents to a preview page using jQuery form ajaxSubmit and the success callback function shows the contents of that request in a fancybox, the "Continue" button is used to submit the…

Steve Ford
- 75
- 1
- 6
0
votes
2 answers
ajax calling another ajax in yii
I can access the registration form which appears in a model window via ajax on any page as coded in the menu layout .
I need some thing on click of submit button of registration form it should get display a thank you message which is also via ajaxin…

user3419342
- 35
- 1
- 8
0
votes
2 answers
jquery beforeSubmit not working
Im using html5 capacities to read image width and height before submitting...
Well, this is not happening exactly, it seems like the time needed for the functions:
reader.readAsDataURL();
reader.onload = function();
image.onload = function();
To…

user997593
- 423
- 5
- 16