Questions tagged as 'javascript'

1
answer

Load a .txt file with input type="file" ...

I use the input tag of html and I put the class "file". I edit this function in javascript: function LoadFile(){ var text = document.getElementById("inputFile").value; console.log(text); //"C:\fakepath\exito.txt" } and here goes my html:...
asked by 23.10.2018 / 07:27
1
answer

Specifying a path to load a .txt with javascript

I want to put the text of a .txt in a variable. I found the following code: var client = new XMLHttpRequest(); client.open('GET', '/foo.txt'); client.onreadystatechange = function() { alert(client.responseText); } client.send(); Now I am...
asked by 22.10.2018 / 12:02
2
answers

Problems saving src image in localStorage

This is my html page: <!DOCTYPE html> <html lang="es"> <head> <link rel="stylesheet" href="css/miestilos.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <...
asked by 22.10.2018 / 14:45
2
answers

Django, Do not send data to the bd with ajax

By pressing the submit button of the form. go to the error function of the script.js file, when looking at console " POST / HTTP / 1.1" 200 28518 , the database is postgres. is not saving the data, I have reviewed several pages online bu...
asked by 06.11.2018 / 13:51
2
answers

Send a variable of Javascript to Node.JS

I have the following in Node.JS: app.get('/datos/', (req, res)=>{ var dato1 = "Hola"; console.log(dato1) }); In my Javascript file, I have a variable that says var dato2="Mundo" . I would like to know how I can pass that value...
asked by 08.11.2018 / 00:01
1
answer

Get the text of a php

I have a php code where I print an'echo' at the end of my entire process ie: <?php /* aqui va todo el proceso... */ echo "Proceso teminado"; ?> I want to know if you can close the browser window once that text appears. I know...
asked by 20.10.2018 / 19:04
2
answers

I need to outline figure with color

As you can see, it goes from the outline I need to fix it. I leave the codes here: link     
asked by 04.11.2018 / 23:02
2
answers

Help to choose a chart or data chart

I would like you to advise me based on your experience to represent data through graphs or charts, what happens is that I have a database in sql server, it contains more than 30,000 records, when making certain queries, this can give me as a res...
asked by 12.10.2018 / 23:22
1
answer

How to create an illusion of orbital rotation with a series of images in javascript

Hello friends, I need to speed up my work with some javascript tool or program that helps me to give the illusion through a series of photos (frames) that are shown frame by frame and give the illusion that while the mouse is being rotated aroun...
asked by 12.10.2018 / 20:29
1
answer

How to change the colors of the columns of my graphics in High Charts

I have the following code, which is double Y axis ... but what I'm looking for is that when the columns are greater than 100, I change color, but I do not know how to introduce a color to a bar , since in the code of highcharts the color is the...
asked by 19.10.2018 / 17:53