Questions tagged as 'javascript'

1
answer

I need to color randomly a figure

For the figure to change color every time it is generated again, it is suggested to create a "var color" arrangement with at least 5 colors. Then create a variable that allows you to generate a random number between 0 and the length of the array...
asked by 01.11.2017 / 18:11
0
answers

Data-image-src attribute of library parallax.js

Hello good afternoon, I'm using the parallax.js library for my effects on the background images of my website. I have a problem when I want to change an image with a jquery event using attr ... <div id="imageChange" class="backgrounds paral...
asked by 24.10.2017 / 16:54
3
answers

Delete object in javascript

I'm making a table that creates an object, but I do not know how to remove it <html> <head> <meta charset="utf-8"/> <script type="text/javascript"> var i = 0; function Añadir() { i = i + 1; var it = docum...
asked by 01.11.2017 / 15:14
1
answer

JSON invalidated in DataTable

Code for Datable $('#alumno').dataTable( { "ajax": { "url": "aprendizaje/alumnos/select", "dataSrc": "", "columns": [ { "data": "id" }, { "data": "matricula" }, { "data": "nombre" },...
asked by 20.10.2017 / 12:53
1
answer

Error Implementing JavaScript to display Modal

Good morning everyone, I am new with JavaScript and I am trying to implement a modal of this page " link " and implement the CSS but the JavaScript is giving problems, try placing the JS internally and with a .js file but it gives me the same er...
asked by 04.12.2017 / 13:21
1
answer

How can I add a link in the information window? google-maps-V3

I need to create a link inside the information window and click on it, so that it redirects me to a window (div) that would be displayed on the right, how can I do it? function initMap() { var map = new google.maps.Map(document.getElem...
asked by 06.11.2017 / 11:35
1
answer

How to display a query variable in ajax

I want to show in my teacher variable data in the value the teacher's id, and in between the tags Name and surname I let you capture my console and my code. - > male teacher = ''; What's in my Console My java script code $(funct...
asked by 07.11.2017 / 00:09
1
answer

How to save a callback from an ajax in a variable

Good evening I am doing 2 requests ajax to 2 services which I managed to get the information in 2 functions as I do to unify the 2 functions since each one has a different data or how to save each of those functions in a variable thanks of befor...
asked by 07.11.2017 / 03:50
2
answers

Angular share Information

Good morning, I have the following code Angular var aplicacion = angular.module('app',[]) aplicacion.factory('datosCompartidos', function (){ var datosCompartidos = {} datosCompartidos.contador = 0 datosCompartidos.getContador = func...
asked by 28.10.2017 / 14:50
3
answers

Remove $ and R $ in a string

I try to eliminate $ and R$ of a string. What I've tried is $scope.TotalOwed.replace(/\$\R$/g, ''); but it did not work for me.     
asked by 19.10.2017 / 17:02