Questions tagged [ajax-forms]

Use this tag for questions relating to the method of submitting forms via AJAX, or in relation to problems with creating forms submitted by AJAX.

A HTML form that is submitted by using an AJAX request.

31 questions
12
votes
5 answers

Rails: submit (via AJAX) when drop-down option clicked

What is the easiest and most graceful way to auto-submit an AJAX form when a drop-down box's option is selected? I'm creating an administration page where the admin can modify user permissions (where "permissions" is stored as an integer), and I…
Adam Rezich
  • 3,122
  • 6
  • 31
  • 39
6
votes
3 answers

Scala lift framework, ajax form that submits multiple values?

I am just getting started with lift and I am now trying to change a normal form to an ajax form but the method processEntryAdd is never called. def addUser(xhtml : Group) : NodeSeq = { var firstName = "" var lastName = "" def…
ivans
  • 405
  • 1
  • 5
  • 12
2
votes
2 answers

JQuery AJAX sending files array from form

I got this code somewhere to upload pics without refreshing the browser. However I didn't like the uploader file so I decided to use the old one I used to work with. The problem is that it is sending an array instead of a string from the javascript…
Claudio
  • 3,814
  • 7
  • 28
  • 34
2
votes
0 answers

Error in encoding when using ajaxSubmit

Hi I have a html page defined with: In a text field I type any latin alphabet character and in submit I receive the correct information in server. Example: in field I type…
Jonny Piazzi
  • 3,684
  • 4
  • 34
  • 81
1
vote
2 answers

Is it possible to fill in an Ajax form programatically?

I'm doing some automation work and can make my way around a site & post to HTML forms okay, but now I'm up against a new challenge, Ajax forms. Since there's no source to read, I'm left wondering if it's possible to fill in an Ajax form…
MrGreggles
  • 6,113
  • 9
  • 42
  • 48
1
vote
1 answer

CakePHP fails loading $ajax->form with Error 503 Service Unavailable

When I try to make an $ajax->form() call within my view, the server responds with: Error 503 Service Unavailable. I have loaded: App::Import('Ajax'); $ajax = new AjaxHelper(); (Within my view) And then: $ajax->form(array('type' => 'post', …
Olive
  • 3,516
  • 7
  • 24
  • 32
1
vote
1 answer

SailsJs ajax-form validation

Is there a way I can run a function on the built-in vue component "ajax-form" in SailsJs? I want it to run when the form is submitted and do some validation, but take place before the data is sent to the back end.
streleck
  • 459
  • 1
  • 3
  • 11
1
vote
2 answers

Why does an ajax form inside of an if statement submit twice if it is submitted after first failing the condition?

Consider the code below. If myField1 does NOT equal myField2, then the alert appears. When I click okay on the alert pop up my form is still there, with all of the fields still populated with the data I had previously entered. However, when I modify…
Nancy Collier
  • 1,469
  • 4
  • 17
  • 21
1
vote
1 answer

Rails and ajaxForm - how to detect exception

I made a standard Rails form and then wrapped it into JQ ajaxForm. Now the success callback is called in any case - whether an Rails exception occured while submitting or not. How to make ajaxForm detect Rails exception? I want in case of error to…
Paul
  • 25,812
  • 38
  • 124
  • 247
1
vote
2 answers

Jquery Validation Engine : Form submitting Without Validation

i am using Jquery Validation Engine (https://github.com/posabsolute/jQuery-Validation-Engine) for one of my forms. The Validation works well but is not able to stop the form from getting submitted even when the field values are not complying with…
Amyth
  • 32,527
  • 26
  • 93
  • 135
0
votes
2 answers

Ajax Form Submission Response

I am having trouble with the function ShowResponse action on my Ajax Form. I am trying to show a simple message in the #show div once the form has been submitted. The Ajax submission is working okay and I can get an alert to work but I cant get the…
0
votes
1 answer

SAILS - How to close modal with ajax-form after receiving "notFound" error from action

So, I am using Sailsjs - and I am using a modal form to confirm deletion of an item. What I want to do is to detect a double deletion (someone deleted an item - while it was in someone else's page - and the second person tries to delete it too). I…
AleAssis
  • 376
  • 3
  • 7
0
votes
1 answer

Codeigniter form_open_multipart showing 403 Forbidden (CSRF)

I am trying to post data though ajax post but somehow unable to post . am getting 403 forbidden. Fortunately my other ajax posts are submitting properly as they are getting right re-generated token. But in form_open_multipart it's not working. CI…
0
votes
1 answer

Add fields dynamically in drupal depending on selected option using ajax/jquery

I'm trying to create/add textfields dynamically in drupal depending on the selected option for a select list. if Jack is selected, then create textfield with "Jack" as content. What I have done so far using Drupal's #ajax property, I managed to…
Ragnr
  • 1
  • 1
0
votes
3 answers

Ajax form Submit in Spring MVC with Spring Security - 405 Error

Step1: In Spring Mvc submitting the form using ajax,worked fine. Step2: Integrating same spring MVC project with spring security(without ajax form submit in spring mvc) also worked fine. But now when tried to integrate same (step2 project) spring…
Noorus Khan
  • 1,342
  • 3
  • 15
  • 33
1
2 3