Questions tagged as 'ajax'

1
answer

How to "activate" / "deactivate" a record using Ajax

After several attempts and searches I turn to you for the following problem. In a table I have a field in the DB that gives me the possibility to Activate or Not a record (for example, so that it can not be seen). I have a form to update high, b...
asked by 22.01.2018 / 18:53
1
answer

The value of variable is deleted when passing it from js to php

I'm doing a shipment by ajax from js to php. I am sending an array of objects using angular, here my code. $scope.updateRecipe = function() { //Se hace petición ajax para agregar el producto $http( { //Se elige el metodo...
asked by 19.01.2018 / 23:35
2
answers

An ajax call per button?

I have on each page of 1 or more buttons and to send variables to the server I use ajax for each button, that is, each button has its ajax calling code because I have to send different variables $.ajax({ url: destination.url, data: "id="+b...
asked by 24.01.2018 / 01:38
1
answer

Error loading data with AJAX

Every time I give the button to load the AJAX, I load the start screen with everything (header, menu and footer) apart from not loading the data from the table I request. I get this error in the console: [Deprecation] Synchronous XMLHttpRequest...
asked by 18.11.2017 / 19:47
1
answer

Problem with value that Ajax returns when sending mail, even if it is successful

I raise this question at the suggestion of @CamiloVasquez that has helped me in another question. I have a form that collects some data from the user, and has the option of sending it by mail via Ajax. Then the code that processes the data to as...
asked by 21.12.2017 / 18:12
1
answer

Problem with jQuery Ajax and PHP

I am trying to make a record in the BD without recharging the page. The record is saved correctly, but when I want to capture the answer the PHP document is displayed. Code js $('#btnagregarO').click(function(){ var obs = $("#txtob").val(...
asked by 20.09.2017 / 20:19
2
answers

does not enter if in javascript - ajax

I have an ajax script which goes and queries a mysql DB in a php, if there is a record I return an echo "yes"; and if not "no"; here the file delete_radio_per_serial.php <?php //Configuracion de la conexion a base de datos $link = mysql_...
asked by 19.09.2017 / 23:35
1
answer

Ajax, Jquery and PHP: Can not read property 'length' of undefined

I've been trying to run this code all morning. One method loads several div, one inside another function renderPage(e){ var contPrincipalLastTwitter = '<div class="principalSeeTwitter">' +...
asked by 30.09.2017 / 19:23
2
answers

ASP.NET execute method through AJAX

Hi, I'm learning to use AJAX in ASP NET, I want to run a method through js, but I'm not sure how to reference it, the method I want is in my controller but when I give it the route it does not tell me it does not find anything . @model P...
asked by 29.09.2017 / 21:41
1
answer

I do not recharge the page ruby on rails

Hi, I want that when the boolean changes to true and I save it again and I recharge the page, but it turns out that I do not reload it, thanks for the help. auto is boolean MeetingsController def auto1 r = Reunion.find(params[:id]) r.au...
asked by 06.10.2017 / 05:08