Questions tagged as 'javascript'

3
answers

Javascript / Nodejs setInterval with scheduled start, simple cron style

For JavaScript and NodeJS, there are n libraries that are robust in Cron style, such as node-cron . But they are complex for simple situations, they are heavy to download in the browser or require additional dependency on NodeJS, which make...
asked by 09.02.2014 / 13:25
2
answers

div stops being updated in IE11

In a project I'm developing, I need to update some fields on the page every 50ms (this is adjustable). The problem is that when I test in IE, the fields are no longer updated from time to time, with no explanation whatsoever. Usually it w...
asked by 17.02.2014 / 00:07
2
answers

How to change the text of the OK button for Alert?

Personal I need an Alert with the "Confirm" button instead of the "OK" button. How do I do this?     
asked by 27.03.2014 / 13:05
4
answers

Writing effect using javascript, setInterval does not work

I'm trying to use the setInterval function to write 1 letter every second, but it did not work: partText = ""; function escrever(text) { for (i = 0; i < text.length; i++) { partText += (text.charAt(i)); document.g...
asked by 21.05.2016 / 04:59
1
answer

Validate CPF with JavaScript Regular Expression

Well, I'm trying to validate CPF with regular expressions only. I have already been able to validate the format ... 000.000.000-10 ^([0-9]){3}\.([0-9]){3}\.([0-9]){3}-([0-9]){2}$ Now, is there a way to validate if the CPF is valid in relati...
asked by 16.04.2016 / 07:00
3
answers

Fill in a text field and the same text appears in another field [closed]

I have three text fields containing the following information: Name, Email, and Phone. How would I do that by filling in one of the fields, the same information would appear in the other field? So what happens here when we enter our doubts. T...
asked by 16.09.2015 / 19:02
1
answer

IDE / Text editors for Node.js [closed]

What are the best IDE options or Text Editors for NodeJS development? My need is to develop large projects with JavaScript / Node.js , here are some of the options below. If possible cite the advantages of using the indicated software. Nod...
asked by 24.08.2015 / 01:10
2
answers

Logic to group data in array javascript

I'm having trouble grouping some data using JavaScript . I have the following array of objects that return from the database and send it to view : var object = [ { data: 1, categories: "Branca", name: "Feminino" }, { data: 1, ca...
asked by 09.11.2018 / 00:59
2
answers

How do you know if the scroll position is on top of a section?

I do not know if it was clear, but I'll explain, I have several sections on my site, and when I scroll I wanted to do some Javascript effects, as I do to know when exactly the user will be viewing the div, as in Scroll Spy Boostrap? I tried the...
asked by 02.06.2017 / 14:23
1
answer

How getTime works

I have 1 cookie script and it has a system of course of course .. I would like to understand this count: date.setTime(date.getTime()+(days*2*60*60*1000)); How much time do I have on this count? How much would this amount give? * 2 * 60 * 60...
asked by 04.12.2016 / 01:32