Questions tagged as 'javascript'

1
answer

Assign cookies in GET order with XMLHttpRequest

I am trying to assign a cookie in a GET request, in an order XMLHttpRequest . My code is as follows: var pedido = new XMLHttpRequest() pedido.open("GET","https://www.google.com/complete/search") pedido.setRequestHeader("Cookie","SSI...
asked by 21.09.2018 / 18:32
1
answer

Save a browser cached image

I have several% tag img in my html, and the src is an external route to my server, every time I reload the page I must wait for the images to load, I know that the LocalStorage exists but I do not know how to save the image as such...
asked by 12.09.2018 / 03:41
1
answer

How to play an mp3 every x minutes when entering a page

I'm making a player where several music sounds and I want every x minutes, apart from the player, to play a single music without touching any button, only when entering the page, and in those x minutes the music sounds , right now...
asked by 09.11.2018 / 15:18
1
answer

How can I remove a field from a multidimensional array?

You see I have a multidimensional array and I need to remove a field from that array but I can not get it. I must clarify that I am using firestore firestore. That's my code: db.collection("database").doc("users").get().then(data => {...
asked by 01.11.2018 / 08:39
2
answers

Browse JavaScript object

<div id="container" style="height: 400px"></div> <script> var chart = Highcharts.chart('container', { title: { text: '' }, xAxis: { //ca...
asked by 22.08.2018 / 19:06
1
answer

Change color of border in Chartjs

I currently have this code to show a graphic and I want to change the color of the border. How can I do it? <canvas id="chart" width="200px" height="200px"></canvas> <script type="text/javascript"> $(document).ready(funct...
asked by 23.08.2018 / 17:49
1
answer

Passing variable from html form to nodejs

I am creating a webproxy with nodejs to be able to access "anonymously" to another site, so this is my server: const http = require("http"); const url = require("url"); const request = require("request"); const fs = require('fs') var server =...
asked by 23.08.2018 / 02:58
2
answers

I have some images saved in an array of objects and I want them to be the same size at the time of presenting them

I have my script like this: var imagenes={"leon":'<img src="imagenes/leon.gif" width="200" height="200"/>',"burro":'<img src="imagenes/burro.gif"/>', "ballena":'<img src="imagenes/ballena.gif"/>',"gato":'<img...
asked by 24.08.2018 / 00:49
1
answer

Vary the color of a range

Hello, I have the following range var $sliders = $("input.slider"); $.each($sliders, function(i, elemento){ tooltip: 'always'; console.log(elemento.id); var slider = new Slider('#'+elemento.id, { formatter:...
asked by 23.08.2018 / 18:42
1
answer

Delete the word selected by the user from a text

This is the only thing I need to finish my project, I need to know how I could remove a phrase that the user enters by keyboard, this by means of a function activated by a button. I know that a picture is worth a thousand words, so I'll leave...
asked by 26.09.2018 / 18:30