Questions tagged [ajaxform]

A HTML form that is submitted by using an AJAX request

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

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.

678 questions
438
votes
19 answers

axios post request to send form data

axios POST request is hitting the url on the controller but setting null values to my POJO class, when I go through developer tools in chrome, the payload contains data. What am I doing wrong? Axios POST Request: var body = { userName: 'Fred', …
Srikanth Gowda
  • 6,163
  • 7
  • 19
  • 34
16
votes
3 answers

AjaxForm and app engine blobstore

I'm having some difficulties with AjaxForm file upload and the app engine blobstore. I suspect the difficulty is because the blobstore upload handler (subclass of blobstore_handlers.BlobstoreUploadHandler) mandates a redirect response, rather than…
hawkett
  • 3,053
  • 5
  • 29
  • 39
16
votes
3 answers

move_uploaded_file() Unable to move file from tmp to dir

I've been searching for the solution but I can't find the answer. I created a image upload form. It runs with ajaxform plugin. But still it doesn't upload to the directory. The error_log says move_uploaded_file() Unable to move file from [tmp] to…
Wadapmerth
  • 271
  • 1
  • 2
  • 6
16
votes
4 answers

jquery form not working as expected. ajaxForm is not a function

I am trying to use jquery form but it sais in the concole ajaxForm is not a function. The jquery.form.js is properly included and the code is in a document ready function... This is the script: $("#apply-form").ajaxForm({ …
Beniamin Szabo
  • 1,909
  • 4
  • 17
  • 26
12
votes
1 answer

Changing the data in before submit

I am using the ajaxForm plugin found here Now i have a form with username & password My requirement is to change the value of password field to its md5 so for that I am using the plugin found here so for that I am using like this :…
Ankur Verma
  • 5,793
  • 12
  • 57
  • 93
12
votes
1 answer

Ajax.BeginForm with OnComplete always updates page

I have simple ajax form in MVC. In AjaxOptions there is OnComplete set to simple javascript function which does one thing - returns false. @using (Ajax.BeginForm("Action", "Controller", new AjaxOptions { UpdateTargetId = "DivFormId", HttpMethod =…
Jozef Mera
  • 615
  • 1
  • 6
  • 20
11
votes
8 answers

jQuery ajaxForm returning .json file

I've got a model creation form in rails which I also have returning JSON through ajax. My code so far look like: $('#new_stem').ajaxForm({ //#new_stem is my form dataType: 'json', success: formSuccess }); function formSuccess(stemObj) { …
Lowgain
  • 3,254
  • 5
  • 27
  • 30
9
votes
2 answers

XMLHttpRequest cannot load Origin null is not allowed by Access-Control-Allow-Origin

I have a code.html file containing the following code. $.ajax({ type: "POST", datatype: "JSONP", url: "path", success: function(msg){ var e = document.createElement("div"); e.id = "ads"; document.body.appendChild(e); …
9
votes
1 answer

Rails 4 not using Remotipart to remotely submit form

It looks like Remotipart isn't actually being used to submit my form, so the image is completely left out when I look at the params where the form gets submitted to. remotipart_submitted? returns false params: {"utf8"=>"✓",…
Tom Prats
  • 7,364
  • 9
  • 47
  • 77
9
votes
1 answer

Unobtrusive Ajax Form for partial view

I'm having trouble using unobtrusive ajax to post data from a contact us form. My Partial View is like this: @model site.ViewModel.Home.ContactUsViewModel @using (Ajax.BeginForm("_ContactUsPartial", "Home", new AjaxOptions…
mezoid
  • 28,090
  • 37
  • 107
  • 148
8
votes
3 answers

how to perform some action before submit form via .ajaxForm()?

i am using ajaxForm() frame work to send my data without reloading my page. $('#ReplayForm').ajaxForm({ success : function(data){ alert("Success"); } }); now, i want to check some condition before submitting…
Uday A. Navapara
  • 1,237
  • 5
  • 20
  • 40
7
votes
5 answers

jquery is undefined in the partial view loaded via ajax in IE

I have a web page consisting a JQuery UI Tabs widget. Tab widget loads the tabs via AJAX. In one of the tab pages (name it DescriptionPage), I have a form which will be submitted via ajaxForm plugin.
SadullahCeran
  • 2,425
  • 4
  • 20
  • 34
7
votes
8 answers

ajaxForm plugin keeps redirecting to action page ignoring the return false;

I have a simple form that gets submitted when a user clicks open in the file browse window once they have completed selecting an image. My HTML looks like something below.
BaconJuice
  • 3,739
  • 13
  • 56
  • 88
6
votes
3 answers

AJAX Form Submission in jQuery Mobile

I'm trying to submit a simple login form via ajax on a jQuery Mobile site but I'm having trouble. It seems that when I submit the form (via POST), the form parameters are getting added to the url. Not only that, they erase the anchored page I was at…
Gerard
  • 4,818
  • 5
  • 51
  • 80
6
votes
1 answer

IE iframe doesn't handle application/json response properly

I am currently upgrading parts of an ASP.NET MVC website to be more RESTful, using ASP.NET Web API. One of the features we are moving to a more RESTful design is file upload. For the client, we are using a jquery plugin, ajaxForm, to wrap the…
1
2 3
45 46