Questions tagged as 'javascript'

1
answer

Fields as checked or not, always have the same value

Expensive, good morning. I am with a certain problem, where I must make the choice of 3 fields of verification, if all 3 fields are unchecked, return the empty field message, otherwise, bring the values of the certain fields. What happens is t...
asked by 23.08.2018 / 15:57
0
answers

What does this two mean for this expression? [duplicate]

I have this code: Math.floor((this.currentTime/1000/60)<<0); I do not understand what these two << is for.     
asked by 26.07.2018 / 02:23
0
answers

Save values in Javascript elements - Good practices

I wonder if it's a good practice to store values directly in the elements so you do not have to recalculate. For example: function scrollfunc(e){ var el = e.currentTarget; var deltaY = (el.deltaY !== undefined)? (el.deltaY + e.y) : e.y...
asked by 25.07.2018 / 16:52
0
answers

Dynamize HTML with JQUERY [closed]

Hello, I'm having trouble with a JS activity, I should make the last posting to be displayed first, I already tried sort, tried sort with function and nothing solves, I can change the order of objects in the array more I can not change the order...
asked by 26.07.2018 / 18:18
0
answers

Javascript - Remove the click event of a button

Good people, I have the following problem: As the following image shows, I have a set of buttons to fast-forward and rewind the process sequence. However,exactlyinthispart,Ineedtoclickonbotãonextpageexpectsxsegundosbeforemovingforward.Iha...
asked by 10.09.2018 / 19:32
0
answers

Downloading data from a paged table

I have this script that downloads the data from an entire table in .xls format, I happen to make an entire listing on a single page and it does not get usual because it has a list that goes over 2000 lines. I made a paged table that shows 10 res...
asked by 11.09.2018 / 13:59
0
answers

Javascript - Get Filepath from Google Docs

Good afternoon everyone! Maybe someone has already worked with Google docs (g-suite) and can give an idea with this problem. The company will migrate from office to g-suite, so all documents and spreadsheets will be online. We have a pr...
asked by 20.07.2018 / 19:46
1
answer

How to swap contents of a div using javascript?

I'm trying to create a script to replace everything inside a div with something predefined, I'm new to javascript and I'm having trouble finding a solution for this, I've looked in various places, but I have not achieved anything. I am callin...
asked by 20.07.2018 / 17:34
1
answer

Composing objects in javascript

I'm studying a little more javascript here and I came to a problem: I have an object called player: let Player = function () { this.name = 'player'; } Player.prototype = new Sprite(); Player.prototype = new Shape2D(); That's what I...
asked by 20.07.2018 / 21:23
0
answers

Send post parameter to restify

I'm trying to send parameter to nodejs with restify, but it's always getting undefined I'm sending more or less like this: $.ajax({ url : 'http://localhost:8080/api', type: 'post', dataType: 'json', data:...
asked by 20.07.2018 / 20:52