Questions tagged as 'ajax'

1
answer

Redirection with Ajax in ASP.NET MVC

I'm using Ajax to save the form data. The problem is that after saving the data they can not redirect to the "Action Index" where customers are listed registered, since the request was made in Ajax. I thought of creating a PartialView for this a...
asked by 01.12.2016 / 14:28
2
answers

Problems with Bootstrap modal and deletion of records

I have a page with n records, and for each of them there is their Delete button. When you press it, a bootstrap modal is opened asking whether to confirm the action or not. Upon confirmation, an ajax function is fired, deleting the record in que...
asked by 18.10.2016 / 21:29
1
answer

Send AJAX to a table

I have a database page inserted in a table: <div class="procurar"> <input type="text" id="search" onkeypress="mandar()"><i class="fa fa-search" aria-hidden="true"></i> </div> <div class="historico"> &l...
asked by 03.05.2016 / 18:07
2
answers

Checking if login already exists via AJAX

Alright? I'm hoping that when I lose focus, the login field goes to the bank and looks for an equal login. If there is, it means that the guy has to use another and for that the return must be a mistake. If there is not a login like his, nothing...
asked by 10.08.2016 / 16:43
1
answer

pull information via php ajax [closed]

Good afternoon, I'm studying ajax and I'm trying to make an input pass to a file via post, but nothing happens .. I'm tracking via chrome firebug and I always see the type: 'post' is in error. <script src="https://ajax.googleapis.com/a...
asked by 10.08.2016 / 20:41
3
answers

Second button replacing content of the first

With this code below when I click the mat button it brings me the data in a table. I would like that by clicking the sp button replace the contents of the table with another. Code: <button id="mat" class="button"><...
asked by 14.04.2016 / 16:30
1
answer

How to upload file via ajax with Rails 4?

I want to download a pdf file to process on my controller and then return it as it gets rendered in the backend , I would like a loading bar or circle to appear. However, I'm having trouble sending the file asynchronously. How do I send an asyn...
asked by 02.08.2016 / 06:03
1
answer

Sucess Ajax does not work with Controller Codeigniter

Good afternoon, I'm a beginner in development. I have a form that I do not want the page not to be reloaded when the user submits the form. I am using Ajax, I have been able to perform the inclusion in the database using codeigniter + ajax, b...
asked by 02.04.2016 / 21:05
2
answers

Convert date from bank in AJAX

I would like to convert the date from the bank (2012-02-10) to Brazilian standard (10/02/2012) in the AJAX success example: $.ajax({ type: 'POST', dataType: 'json', url: "crud/consulta.php", data: dados,...
asked by 07.07.2016 / 04:02
1
answer

Error ajax return when accent

I have a table that when I add some text that contains an accent adds all the other texts of that same condition. already tried several ways to use UTF-8 that I found on the net but none worked and I noticed in console.log () the following error...
asked by 18.12.2015 / 22:25