Questions tagged as 'javascript'

1
answer

define a function of an object in typescript

Good morning, I am new to Typescript and would like to know how I can pass my JavaScript code to Typescript, since I am rewriting my code in Angular 2. Example: var o = geotab.addin.addinangular= function () { 'use strict'; return...
asked by 11.04.2017 / 23:50
1
answer

load html element with id

I have to change a list html from javascript . my code is document.getElementById("my_element").innerHTML = "<li id="my_li">...</li>"; Apparently it works correctly and the block loads perfectly, but without the id....
asked by 10.04.2017 / 01:06
2
answers

I do not paint Google Map on the Web

I am trying to use the API of Google Maps so that I can paint a map according to the coordinates that happened to it, I do it with the method geolocation of HTML5 , but nothing appears on the web. I have tried the parameters...
asked by 15.08.2016 / 13:24
1
answer

Save the webcam video on the live server

I want to upload the video that records the webcam to the server. Now what I do is record the video and once the recording is finished upload it whole, to record it use RecordRTC, in addition to HTML5 and Javascript. What I want is to upload it...
asked by 27.07.2016 / 12:33
1
answer

Can an element be added inside the title / title tag with an append?

I want to add the css styles that an application has with
asked by 02.08.2016 / 21:03
2
answers

Create select with html using ajax

I try to create a select in HTML5 by bringing the data from a .js file that has a $.ajax that calls a URL that has data in JSON. But always throws for error: function(data) and I do not know why, the url is fine for what...
asked by 15.11.2016 / 14:09
2
answers

Events in node js

I want to use a function when a button is pressed. In the jade file, I have already put the path where the file with the function is located, but clicking the button tells me that the method is not defined. What is the folder wher...
asked by 16.11.2016 / 03:24
1
answer

Subtraction problems with decimals in javascript [duplicate]

I want to do a subtraction with javascript, but I have problems subtracting with Decimal numbers for example: Float: function () {                     var One = parseFloat (1);                     var Dos = parseFloat (0.65);               ...
asked by 10.11.2016 / 07:39
1
answer

Correct way to use event listener to be able to add many radio buttons?

I wanted to know if there would be any way that my script can handle the amount of radio buttons that I put to it and not have to refactor my code js. Could someone give me a hand? I have an idea to put an event listener to all the radio buttons...
asked by 12.09.2016 / 16:01
1
answer

Next and previous function with js

I have been working for some time on a javascript function that makes the next div when I click on the background image, or for time. Well this function and I got it, the problem is that now I can not do that by clicking on the right side go...
asked by 19.09.2016 / 09:50