Questions tagged as 'javascript'

2
answers

Why does the if statement not work with the getElementById?

What I try to do is that every time I click on the button it shows me the following image. However, it does not work. In some websites they say it does not work because the route (img.jpg) is not correct as a condition, but I do not understand...
asked by 30.12.2017 / 01:15
1
answer

How to take javascript data to a model in codeigniter?

I'm making an application using codeigniter and I would like to know how I could take the information I retrieved from a select tag in a javascript file to take it to a variable in my model     
asked by 30.12.2017 / 17:34
1
answer

Edit a css attribute "webkit-progress-bar" with javascript?

Hi, I want to know how to edit the "-webkit-progress-bar" component, which I have declared as follows: .form progress::-webkit-progress-value { background: #1EDC82; } And I have it in this part of the code: <div class="progress">...
asked by 30.12.2017 / 15:48
1
answer

Hover event that works in javascript and not in css

I have a div with a background image, inside that div I have a div with position:absolute . What I want to do is that when I pass the mouse for the div container the edge of the div that is insi...
asked by 10.01.2018 / 20:42
1
answer

Pass THIS into the [duplicate] function

Hi, I have a function in React and I would like to move this inside of it to be able to use the states, someone knows how? Thank you very much for your help constructor(props) { super(props); this.state = { message:...
asked by 10.01.2018 / 15:09
1
answer

JSON Object as Select value - Angular 2

Object export class Car { ID: String; dors: [{ number: Number, postion: { x: String, y: String, z: String, } }] } It is possible to define the value of a select as an object and not...
asked by 12.01.2018 / 11:50
1
answer

Contents of a tar.gz with nodejs

I have a file .tar.gz , which I have to decompress in a route, but I need to review what is inside it and then unzip it. I have the following code: const targz = require('targz'); targz.decompress({ src: 'archivo.tar.gz', dest:...
asked by 03.01.2018 / 14:44
2
answers

Help with a function that validates Letters - JavaScript

Hello, I have the following code that I got (It's in JavaScript) which validates the entry of only characters; and not special numbers or characters; within a input : Code: function SoloLetras(e) { key = e.keyCode || e.which; tecla...
asked by 27.12.2017 / 02:02
1
answer

Generate Report in PDF Using C # and Javascript [closed]

I need to generate a report in PDF. I currently use reportviewer as a tool but it is slow so I need to use another complement that I recommend?     
asked by 27.12.2017 / 17:34
1
answer

Stop settimeuout when being on div

I have this code: function Menuopciones(pagina,menu) { timeout = 600; var thread; $("#"+pagina).mousemove(function(){ $("#"+menu).removeClass('oculto').addClass('bounceIn'); clearTimeout(thread); thread = setTimeout(mousestopped,...
asked by 18.12.2017 / 20:42