Questions tagged as 'ajax'

2
answers

Multiple form ajax request, with javascript function

I'm having trouble sending forms correctly, I have several forms, each with its id, and a function that I call on all forms: <script> function enviaForm(id){ $(id).submit(function(){ var camp1 = $("input[name='a2']:checked")...
asked by 12.01.2018 / 19:55
1
answer

Problem in request via ajax

I have a JSP login page on my system, but when trying to perform a request via ajax to authenticate me, the form does not seem to be sending correctly, as it is redirected to the login page itself. Ajax Code: $( document ).ready( function...
asked by 26.11.2017 / 02:05
1
answer

Pass object by Ajax

I would like to know how to get through a ajax request, to bring to my site a list of elements, where these elements are the lines of an sql query. For example, I have a table of employees. In the form, when the user chooses an area, they must f...
asked by 15.11.2017 / 02:29
1
answer

Use jquery component inside a formData (fileupload)

Friends, I'm using the jquery fileupload plugin and using the following callback: jQuery("#fileupload").fileupload({ url: '/painel/uploads', dataType: 'json', formData: {_token: jQuery("#fileupload").data('token'), idpasta: jQuery(...
asked by 31.10.2017 / 03:34
2
answers

I wonder if I'm doing this ajax in the right way?

I have this ajax and a page called test.php that gets a value, I would like to know if my ajax is right and this value is being fetched inside the test.php page <script> $('input[name=valor]').click(function() { var campoRadio = $('...
asked by 01.11.2017 / 17:06
1
answer

Problems with ajax request

Well, I'm trying to perform a simple ajax request, but the called content is not being displayed. How can I resolve? var xmlhttp; function callContent(){ var mainContent = document.querySelector(".main-content"); xmlhttp = new XMLHtt...
asked by 01.12.2017 / 14:17
1
answer

Enter information in the bank with AJAX

I need to insert information into the database, but I need the page not to update. The problem is that I do not know anything about AJAX and even looking for the codes on the net, I could not solve How do I do: function setEpisodeComplet...
asked by 24.10.2017 / 22:24
1
answer

Parameter passing via AJAX

I am developing the customer registration part of my application and are registering in the database normally, but I would like that when I register and be redirected to page ConfirmacaoCadastro.jsp it would take the email that I passed b...
asked by 25.10.2017 / 00:42
1
answer

Execute Action Post by JQuery ASP.NET MVC

I would like to delete a record in a button click by Jquery, what is the best way to do it? The way I did it is not working.    Action I want to call by Jquery // POST: Pais/Delete/5 [HttpPost, ActionName("Delete")]...
asked by 25.10.2017 / 18:43
1
answer

Run cURL command in an HTML / JS application

I have zero experience in API, JSON, Ajax, cURL, the most I learned in college was basic HTML, CSS, JS and PHP, I already killed myself to search and watch video, but without anyone with experience to help it gets difficult , I'm almost giving u...
asked by 24.10.2017 / 19:32