Questions tagged as 'ajax'

1
answer

Server does not receive full JS fix

I'm developing an application in Laravel, at a certain point I had to use an array of objects to store the information that is going to be sent to the server, the problem I'm having is that I build my array but at a certain point that the array...
asked by 31.08.2018 / 09:07
1
answer

PROBLEM Jquery and Ajax, send data to the same FORM

I am making an order form, in which I include a button that says: "Add Additional", that displays a "Modal", when filling in these fields, a button that says, add to the order. What I try, is that when adding to the order the established data...
asked by 20.08.2018 / 17:33
2
answers

Searcher in JQuery, Ajax and PHP (Error)

I try to create a search form in the following way: By default, the order history appears: $(document).ready(function(){ $.ajax({ type: 'POST', url: 'php/cargar_historial.php' }) .done(function(listas_rep){ $('#historial...
asked by 28.08.2018 / 16:38
1
answer

Can not register through AJAX

Let's start with my file called "registro_test.php" <?php include_once 'header.php' ?> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(function()...
asked by 23.08.2018 / 17:21
1
answer

How to make an AJAX request to php? (With JavaScript Vanilla)

I'm trying to make an AJAX request to a method in my Brands driver. const filter = () => { let data = {marca:"a"}; fetch("www.algoalgo.com/marcas/marcas/filtro",{ method: "POST", body: JSON.stringify(data) , headers: { "...
asked by 23.08.2018 / 17:11
1
answer

how to accommodate AJAX JSON for search filtering?

What happens is that I grab a page already on the internet, and I want it to make a search in the box, a specific search within what is already filtered. //Filtracion $sWhere = "WHERE nomTipo ='Administrador'";//filtra los que solo son a...
asked by 15.08.2018 / 19:24
1
answer

Print on a href inside a modal the Id of a BD

How can I do the following: I am sending the data from a tr to a modal in the following way: <span id="Id<?php echo $res['id']; ?>" style="display: none;"><?php echo $res['id']; ?></span> I pick them up in the mod...
asked by 17.08.2018 / 19:19
1
answer

How to show values with AJAX when loading the page

at the moment of entering my index.php page <!DOCTYPE html> <html lang="en"> <head> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.highcharts.com/highcharts.js">...
asked by 08.08.2018 / 22:31
2
answers

Problem to validate a record already inserted in my BD with Ajax Laravel 5.2

I have a form and in which I enter 1 Email which in my BD I put the field as Unique the problem that arises is when reloading a record with the same email I get the SQL error that the field is already registered, but I would like to be able to v...
asked by 09.08.2018 / 18:00
2
answers

pass several php arrays to javascript

the following php code that generates two arrays <?php //los datos salen de una tabla mysql $last_year_sales = [2589, 2589, 1478, 2587, 7852, 9632]; $current_year_sales = [1250, 1480, 1156, 3589, 7521, 9632]; //enviar...
asked by 04.08.2018 / 18:01