Questions tagged as 'ajax'

1
answer

How to create divs inside javaScript and use Json

I'm trying to create and fill in several html cards according to the Json return I have from a PHP file, I have Javascript that takes the Json array, my question is how do I create multiple cards within that javascript? Javascript $(functi...
asked by 18.10.2018 / 05:22
1
answer

Creating a product registration with javascript

I'm not able to register a book in an app I'm creating, is this validation with ajax correct? <b>var cadastrado = null;</b> <b> function ValidarLivro (){ var nome = $("#nomelivro").val(); var descricao = $("#descric...
asked by 18.10.2018 / 00:49
0
answers

What does callback.call mean in jQuery?

I searched everywhere but did not find an exact definition. Here's my function and the excerpt from my HTML where DropDownList is created: function carregaSubCategoria(valor) { $.ajax({ url: '/parceiros/subcategoria/lists-subcat...
asked by 18.10.2018 / 18:34
0
answers

Catch the id via URL in JS sent by PHP

I have a code that throws an ID in the HTML for a link: <a href="javascript:confirmacao(<?php echo $row['idfoto'] ?>)"> <i class="fas fa-trash"></i></a> In JavaScript I already have the code that calls the file...
asked by 23.10.2018 / 20:06
1
answer

Problem with MaxJsonLength when using ajax

Hello, I'm using ajax to build a table in an application, but when the event is triggered, javascript does not perform html construction, giving the following error: "Error during serialization or deserialization using JSON JavaScriptSeria...
asked by 23.10.2018 / 17:45
0
answers

Creating a record with AJAX

I'm trying to register a person in my app , but I can not. What's wrong? Below is index.js , html , API , and class users.php var api = "http://172.16.22.119/jdbook/api.php"; var identificado = null; function validar...
asked by 25.10.2018 / 03:54
0
answers

DWR - allowScriptTagRemoting is false

When executing a call to the DWR, it returns the following error: throw 'allowScriptTagRemoting is false.'; throw 'allowScriptTagRemoting is false.'; //#DWR-INSERT //#DWR-REPLY //#DWR-START# (function(){ if(!window.dwr)return; var dwr=windo...
asked by 25.10.2018 / 12:54
1
answer

How to put an if within append Javascript

I made a javascript to mount a card and fill with information from a json, I need to check if there is an image in the indexes of the json array so that if I do not have it I can set a default image, but I can not use if inside apprend to do thi...
asked by 19.10.2018 / 15:28
1
answer

delete record in dynamic table with php ajax

I have the following PivotTable and I want to delete the records via AJAX / PHP but I can not. I tried this way by passing the line id as the button id but it did not work ... include("dbconn.php"); <script src="jquery.min.224.js"><...
asked by 19.10.2018 / 16:36
0
answers

Uncaught TypeError: e.map is not a function

I'm getting the following error, could you help me? Uncaught TypeError: e.map is not a function at t.setResources (scheduler.min.js:8) at scheduler.min.js:8 at scheduler.min.js:8 at cal-init.js:218 at Object.success (cal-init.js:184) at i (jqu...
asked by 25.10.2018 / 21:51