Questions tagged as 'ajax'

0
answers

Checklist attached to a category to later store it in another table

I have the following situation, I need to bring in my view the checklist (tbl_sistema_categoria_atendimento_checklist) that the user has registered for a certain category, the checklist should only be shown on the screen if the user selects a ca...
asked by 05.05.2018 / 22:04
1
answer

Putting PHP via Ajax to edit input fields

I have a screen of product counts in which is a page with several inputs with values in it, however I am having problems updating the value contained in the input, since it only changes the first line, could anyone help me with that, I've been b...
asked by 16.05.2018 / 21:40
0
answers

Options Selectize.js using Ajax

I'm developing an application using selectize.js, and would like the values that appear in the input or select to be imported from the BD (Mysql). I would like to import them using ajax, because when selecting an option in select, other fields m...
asked by 03.05.2018 / 16:39
1
answer

Object .length property json returning number out of reality

I have a json array with two property objects, an id and an email, and it has only three objects within that array, but the number returned from the length property is 152. Can anyone help me? /*JSON*/ [{"id_cli":"1","em_cli":"email@out...
asked by 09.05.2018 / 17:57
1
answer

Send information without completing the form (submit)

I have a form in html and I need to fill in the fields and click the "Next" button to send the form by email without the person noticing, since the form continues in the next steps ... <div class="form-group"> <input id="texto...
asked by 10.05.2018 / 22:18
0
answers

Condition the selection of an ID

I have the following AJAX function: function exibeUltimaAula(){ let montaAula = { idUsuario: document.querySelector('#id').textContent, token: document.querySelector('#token').textContent, id: document.querySelector('#ultima-a...
asked by 11.05.2018 / 00:09
0
answers

How to receive an array after ajax in a php file

I would like to send an array after a success return from ajax to a php file Event: $('#btn-boleto').on('click', function(){ $.ajax({ url:'/controlegeracao/gerarboleto', type: 'POST', dataType: 'json', data: { id: $(...
asked by 09.05.2018 / 20:13
1
answer

Seriealize () Aajax with problem

I have several forms in an html, and I want to send with Ajax every form, I'm using serialize (). More is not working, where am I going wrong? <div class="resultado_<?php $i++; echo $i ?>"> <span class="bom"><br>Cada...
asked by 02.05.2018 / 23:45
1
answer

Sort the date on the grid chronologically?

$.fn.dataTable.ext.search.push( function( settings, data, dataIndex ) { var min = $('#min-date').val() ? $('#min-date').val().split('/') : null; var max = $('#max-date').val() ? $('#max-date').val().split('/') : null;...
asked by 02.05.2018 / 14:36
0
answers

Ajax returning error message (Access-Control-Allow-Origin) [duplicate]

I'm trying to access the post api and I'm getting an access error not allowed, it follows the screenshot of the error: Andthecodethatdoesajax:functionfreteeprazo(){varparams={'nCdEmpresa':'','sDsSenha':'','nCdServico':'04014','sCepOrigem':'03...
asked by 08.05.2018 / 23:36