Questions tagged as 'ajax'

2
answers

Problem with AJAX and jQuery

Hi, I'm new to AJAX and Jquery and obviously I'm practicing. It turns out that I have the following code. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="w...
asked by 21.01.2018 / 17:08
1
answer

How to execute a datepicker in an input I got with ajax?

I have a web page where in some parts I load content with ajax , in one of these parts, I load a form in which to have the focus a input , a datepicker opens. AND The problem is that when you bring it with ajax this...
asked by 12.01.2018 / 19:24
1
answer

error ajax function

I have this code in a php file: <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <?php //Tab...
asked by 16.11.2017 / 18:18
1
answer

Send checkbox as fix in ajax and process it codeigniter

My problem is that when sending the array with the selected checkboxes, the empty variable is received in my controller. For example, I have: <input type='checkbox' name='valores[]' value='1' /> <input type='checkbox' name='valores[]'...
asked by 01.12.2016 / 19:07
3
answers

does not send any kind of request when deleting record by ajax (jquery) and laravel

I've been trying to solve this for a few days and I do not get it, I am doing the logic to delete by ajax records but it does not work for me, if I go to the section of firefox for developers, in the network tab, once I make the request, it does...
asked by 30.11.2016 / 12:59
1
answer

Return an array of Objects with PHP

I have the following code in PHP: $output = ''; $output .= 'values: [{ '; $output .= 'arg: "N", '; $output .= 'val1: '.round($Val1N / $rowCount,2).', '; $output .= 'val2: '.round($Val2N / $rowCount,2).', '; $output .= 'val3: '.round($Val3N...
asked by 27.04.2018 / 14:22
1
answer

I do not enter the IF [duplicated]

Good I have a jsp that passes data to my servlet with ajax. This is my Script $(document).ready(function() { var dni = "00000r"; $.post('actionServlet', { }, function(responseText) { num: "1" $('#datos').html(resp...
asked by 08.08.2018 / 12:56
2
answers

How do you update a div in another div?

I have this code but it does not work for me, it does not update, I want to update a div in another div but I do not know how you can help me: <!doctype html> <html> <head> <title>Document Title</title>...
asked by 25.10.2017 / 16:43
2
answers

Is it possible to pass with PHP via GET / POST a token with AJAX and json without doing an echo?

I have a file called token.php that generates a token: token.php echo json_encode(Braintree_ClientToken::generate()); And I have a file that takes that token with AJAX and executes later codes: $.ajax ({ url: "token", type: "...
asked by 27.10.2017 / 20:06
4
answers

How to reuse the same modal window, but with a different title or heading? [duplicate]

I am implementing several modal windows through Bootstrap. One for each different thing. I have done the test to load different data in the same modal window. I explain ... I have one to pick up favorite users, another for followers and...
asked by 10.04.2017 / 22:21