Questions tagged as 'javascript'

0
answers

Callback in JS with API call

I'm new to APIs and I'm not able to implement a callback to add the elements of an array, ie make a post. I have a submit button that when clicked should read the array and add all the notes to the corresponding students. I have the array studen...
asked by 13.12.2018 / 23:25
2
answers

getJSON with parsererror

I am attempting to perform the deletion and an item, so in controller I send a code to view 0 or 1 , but the JS function responsible for dealing this return is always falling in fail with the following error.    error...
asked by 13.12.2018 / 19:04
0
answers

Loop within the submit button

I have the submit button that should submit the grade to a student class. But when I click the button, it only submits the note to the last student in the list. The list of students and the list of grades are stored in the students array and arr...
asked by 13.12.2018 / 18:04
1
answer

ERROR Uncaught SyntaxError: Unexpected token in JSON at position 0

I have the following JS script: jQuery(document).ready(function($) { $("#idSelect").change(function(event) { var valor = $(this).val(); //alert(valor); $.post( "ajaxSerie.php", { valorInput: valor }, function( data ) {...
asked by 13.12.2018 / 18:02
0
answers

Error to run task with gulp 4.0.0

I'm having trouble running the below task with gulp in version 4.0. The problem occurs when I'm trying to run dependencies. Would anyone know why? const gulp = require("gulp"), imagemin = require("gulp-imagemin"), clean = r...
asked by 13.12.2018 / 21:59
0
answers

I'm having trouble using ui.router from angularJS

Codefrommyindex-release.html        <title>DiaristaFácil</title><!--AngularJS--><scriptsrc="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script> <!-- Routes --> <script src="//un...
asked by 13.12.2018 / 20:44
2
answers

Creating HTML with JQuery and Json

I want to get the output of JSON from the page select.php and put each line in a <div id="estabelecimento"> with its attributes, I'm doing the following: $.getJSON('select.php', function(data) { $.e...
asked by 26.12.2018 / 18:16
0
answers

How to change an icon by jQuery [duplicate]

I have this HTML: <i class="material-icons">alarm_off</i> How do I change this alarm_off icon by another (for example, alarm_on ) by jQuery?     
asked by 26.12.2018 / 14:17
1
answer

Trigger function by pressing F5 (refresh)

I am making an application in PHP that by selecting a given the combobox regarding the vessel and a date field, do a SELECT in the bank returning some data that is entered in a table. I would like the user to select the boat (1) and by...
asked by 27.12.2018 / 00:52
0
answers

Clash Royale API request with pure JS

I'm trying to make a request from the Clash Royale API ( link ) Returns the following error: Access to fetch at 'https://api.clashroyale.com/v1/players/%23C8Q2QR08' from origin 'https://deckroyale.now.sh' has been blocked by CORS policy: Re...
asked by 27.12.2018 / 04:57