Questions tagged as 'ajax'

4
answers

How to detect parity of a number without operator%?

I have a variable that the server gives me with a value, I need to know if the number is par or odd , but without using %2 : $.ajax({ url:'/numero', type:'POST', success:function(num){ // ¿Qué hago con num para sab...
asked by 14.12.2017 / 14:24
2
answers

Put php variable to ajax depending on the name of the class and the content

The title does not explain much, but I have a code that gives a number to the class, because it is in foreach , it would be <button class='accept ".$accept++."'>Accept</button> the $ accept ++ is added one for each time...
asked by 11.07.2018 / 03:26
3
answers

How can I pass data from one page to another using ajax

                   </head> <body> <form action="llega.php" method="post"> <input type="text" name="fecha" id="fecha"> <input type="text" name="direccion" id="direccion"> <input t...
asked by 11.07.2018 / 08:21
0
answers

Change the number of rows and columns in CakePhp view

In my company I had the requirement to decrease the number of columns to 3 and not show 5 rows but 16, the thing is that I do not understand how they are telling the code to only show that number of rows and columns, Here it happened to you as i...
asked by 09.07.2018 / 17:24
1
answer

help I have an error when consuming api from ajax

the browser throws me this error when trying to consume API, I do not know what it can be:    Failed to load    link : No   'Access-Control-Allow-Origin' header is present on the requested   resource. Origin 'null' is therefore not allowed ac...
asked by 09.07.2018 / 23:37
0
answers

Send two dates as a parameter from javascript ajax

I have the following button which sends to a JS function and enters correctly <button class="btn btn-primary" onclick="filtrar()"><i class="fa fa-filter"></i> Filtrar</button> This is my JS function...
asked by 09.07.2018 / 21:56
1
answer

Receive data sent by AJAX to Controller

Hello good afternoon, I have a problem getting data sent by AJAX to a Controller Data sent by AJAX var txtDateInicio = document.getElementById('date_inicio').value; var txtDateFin = document.getElementById('date_fin').value; var parametros...
asked by 09.07.2018 / 23:59
1
answer

as I do so that the form fields are not deleted without php

I have a form and I want that when the visitor enters their data and they "send" it will not be deleted if they are still there and can decide whether to send another email with the same data or start deleting them to write others, as achieveme...
asked by 08.07.2018 / 02:58
0
answers

create an error message with wp_login_form ()

I contact you because I am quite blocked with this problem: <?php if (!is_user_logged_in()) { // Display WordPress login form: $args = array( 'echo' => true, 'form_i...
asked by 11.07.2018 / 13:46
0
answers

Laravel - call ajax to an api

from a blade template I try to make an ajax call to an api the code I have is this @section('custom-js') <script type="text/javascript"> $(document).ready(function(){ alert('test'); $('#edit').on('submit...
asked by 11.07.2018 / 13:36