Questions tagged as 'ajax'

0
answers

assign values to input from selected ID of a select2

I hope you can help me, I'm new to this. I need that when selecting an input from a select2, show me the cost and the unit of measurement of the selected input in their corresponding input, in this case the inputs "unidadI_P" and "costoI_P"....
asked by 08.11.2018 / 23:46
0
answers

I have problems with sending variables to my modal, I need urgent help

My problem is that I can not send variables to my modal to make a select for my table in that modal. I can send data with: ejm: In my PHP: <a href="#finalizarCliente" class="delete" data-toggle="modal" data-cod_base="<?php echo $cod_b...
asked by 04.11.2018 / 04:23
2
answers

Ajax stops working when HTML is reloaded with form

I have a Store on my page that corresponds to a wordpress plugin. To improve the user experience I decided to use AJAX in paging, which the plugin does not include (if it includes ajax for the add buttons to the cart). The issue is that when...
asked by 31.10.2018 / 15:03
0
answers

Loading one select from another

I'm trying to load a select from another with ajax and php the code I'm using is the following <?php include_once("configuracionbd.php"); $consultaPrograma = "SELECT * FROM programa ORDER BY id_programa"; $query = mys...
asked by 31.10.2018 / 14:25
0
answers

How to make redirect with request has ajax laravel

I have the following driver: public function store(HolRegRequest $request, RecHoliday $reghol) { $reghol->save(); if ($request->has('ajax_submit')) { $response = ['message' => trans('messages.holext') . ' ' . trans('mes...
asked by 31.10.2018 / 14:25
1
answer

How to receive an associative array?

What I want to do is to receive an associative array in response to an ajax request but what I get is the following message "commerce_brandconnected to databaseArray " I receive the array but at the end of the result what I want is to get only t...
asked by 30.10.2018 / 14:03
1
answer

How to Complete the Options of a Select with AJAX

I am trying to give options to my select by clicking on a button, but it does not show me. My index is as follows: <!DOCTYPE html> <html> <head> <title></title> <script type="text/javascript" src="http://aja...
asked by 31.10.2018 / 21:44
0
answers

Requested JSON parse failed

I am learning how to send and receive data in json format through ajax and jquery. Only that when sending and receiving them I always have parse error but I already tried to make many modifications and I still can not solve my problem, could you...
asked by 30.10.2018 / 01:19
0
answers

Problem when capturing a value which comes by POST

$(document).ready(function(){ let selectCards =$('#cards'); let idSelectCards = selectCards[0].id; let selectEstados = $('#estados'); let idSelectEstados = selectEstados[0].id; let selectDistritos = $('#distritos'); let idSel...
asked by 01.11.2018 / 16:08
0
answers

Access to an API Problem with CORS

I have a problem making calls to an API. The application is located inside the intranet, but the server does not have a standard server (there is no nodejs, or apache) where you can make changes, but it has been programmed, and it is an applicat...
asked by 26.10.2018 / 15:28