Questions tagged as 'javascript'

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
0
answers

Validate array JSON schema - using JS

I'm trying to run unit tests with this JSON schema: "Transactions":{ "$id": "http://example.com/example.json/items", "type": "object", "additionalProperties": false, "properties":...
asked by 25.10.2018 / 15:14
1
answer

How to update the Index of a field using JavaScript in Asp.net MVC

I am creating fields dynamically based on a List. When I remove a field, I need to reorder them using javascript, but I'm facing problems since all fields are reordered in the Indexes, except those using the "asp-validation-for" razor ... Would...
asked by 17.10.2018 / 19:55
1
answer

my question is about the error: Uncaught ReferenceError: createSlider is not defined

I'm making a flappy bird style game, but I'm having a problem with Slider, I think it's something with a library or the way I declare the variable or createSlider, but I tried to change and nothing solves the design is not original my it comes f...
asked by 25.10.2018 / 16:55
0
answers

How to make sweetalert for deletion confirmation of records?

Hello, I would like to make a sweetalert to delete the records from my website, but I do not know how to do it since I do not understand javascript ... Can anyone give me a light ? My class / crud.php page where the querys are (the part of d...
asked by 19.10.2018 / 15:56
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
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