Questions tagged as 'ajax'

1
answer

How to modify a global variable from a Scroll function?

Friends, I would like you to help me by guiding me, I need to modify a global variable at the moment of scrolling, to load data through Ajax. The code that I wrote works the first time when the scroll reaches the end of the page, but then whe...
asked by 09.11.2017 / 19:12
2
answers

question about ajax show individual results

I want to show the result of an AJAX query in different parts of my website. That is, in my query I have two echo within the PHP that I want to print in my HTML document. The problem is that he shows them both together. For example:...
asked by 25.03.2018 / 09:18
1
answer

How to refresh a dependent select from another select

I have a select dependent on another, in the first select the Department where a user works and in the second select the users that work in that department are loaded, this works well the first time a department is chosen, but if another departm...
asked by 30.05.2018 / 23:54
1
answer

Refresh datatables table (jquery)

I'm using this table.ajax.reload(); instruction to refresh a DaTables table but the refresh does not work. It does not give any kind of error.     
asked by 11.09.2018 / 12:39
1
answer

Send Parameters and Redirect to another page with Ajax or Jquery

Good friends I have a huge doubt when send the parameters and redirect to another page here is my code Page Example1.php <?php $var1=1; $var2=2; echo "<a id='anclka'> <input type='text' name='var1...
asked by 28.07.2017 / 00:35
1
answer

send data http angularjs error [duplicated]

someone could guide me I'm sending data from a service to an api I'm doing it with slim and angularjs but somehow the api does not take the values I sent and probe the api with postman and it works then I imagine it is in the way in which I...
asked by 22.09.2017 / 19:57
2
answers

Pass hidden values from a form to ajax

I'm trying to pass the values of several input to a function in ajax, but it does not pick them up. <input type="hidden" name="rooms" value="<?php echo $room ?>"> <input type="hidden" name="destination" value="<?php echo $id_...
asked by 06.12.2016 / 03:47
2
answers

as I print a custom message from a variable that I have my php file in ajax

This is my AJAX .. <!-- CREATE AJAX --> <script type="text/javascript"> $(document).ready(function(){ $('#create').click(function(event){ event.preventDefault(); $.ajax...
asked by 13.04.2018 / 23:28
2
answers

Meet with ajax and php

I'm trying to make an app in which the clients bring me the data. The app is made in html, phonegap, and I want to try to understand a bit ajax to be able, through it, to bring the data of my php. <?php try { $conn = new PDO("mysql:host=$se...
asked by 09.04.2018 / 22:09
1
answer

get value from a field in a table with JavaScrip

I'm trying to get the value of a specific field within a table, the data is brought with AJAX from an API. I tried with .value but I think it only works for inputs.     
asked by 09.05.2018 / 17:08