Questions tagged as 'ajax'

1
answer

How to remove a field already added to a 'FormData'?

The following code inserts files from a file field, into a FormData : var filedata = event.target; // FileList object var i = 0, len = filedata.files.length, file; for (; i < len; i++) { file = filedata.files[i]; //...
asked by 05.01.2014 / 00:29
1
answer

Error rendering with jQuery Ajax

Quick information on how this code should work: Ajax takes an html, compiles with Handlebars, the same ajax takes a json from an api, packages everything and renders an index with an append. var orderTemplate takes a template from index.hb...
asked by 19.05.2018 / 05:33
1
answer

Dependency injection in the controller with Ajax

Good afternoon, I'm using ASP.NET MVC 5 with Windsor and when an Ajax request calls a method in the controller, the error saying that the controller has unmet dependencies. How do I make the request work because the dependencies are resolved in...
asked by 17.09.2015 / 22:33
1
answer

How to find an HTML component in the DOM after using the .append () function?

I am making a request for my server with $.get of Jquery, and populating my table with the method below: $.get(/*[[@{/empregados/salariosMinimos.json}]]*/ 'consultaEstadoSalario', {uf : uf,data : data}) .done(function(sa...
asked by 14.09.2015 / 14:06
1
answer

How to Fill Only Selected Input

I'm having a problem popping up a field inside a table that is within a loop For , and one of the titles in this table is a modal, button as it is clicked opens a selection of units of measure . And when the user selects the drive,...
asked by 27.11.2017 / 20:46
3
answers

receive ajax json POST in php and return on success

What am I doing wrong? <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script><script>$(document).ready(function(){$('#btn1').click(function(){vartmp={"Proc":32...
asked by 13.05.2014 / 15:35
1
answer

Jquery / Ajax Duplicating

Good afternoon, I've already researched this problem here in the forum and tried some solutions but I do not know what I'm doing wrong. I have this function that calls my Modal. function verificarSenha() { var fo...
asked by 13.01.2017 / 18:12
2
answers

AJAX and WeakMaps requests

While I was putting into practice what I have learned so far about the ES2015 with Babel. specifically on WeakMaps, I came up with a problem that I do not know why it happens and I do not know how to solve it. I have a WeakMap set to store in...
asked by 26.01.2017 / 11:36
1
answer

pass variable javascript to catch with post in php

Good afternoon, I found numerous ways to pass javascript to php but no way worked. I thought of a way but I do not know how to effect it, I saw that with ajax would be the only way I think, what I thought was. I have an information in localst...
asked by 05.04.2016 / 18:40
1
answer

Ajax call webmethod with friendly URL

I do not know if it's a frequent question, or something that is not possible. During my studies I realized that it was possible to do this with PHP, but I did not see anything with ASP.NET Web Forms. I made a URL from the same page: routes...
asked by 03.03.2016 / 14:50