Questions tagged as 'javascript'

1
answer

How to disable default value in kendo dropdownlist?

I have a kendo grid and I'm creating a template for editing the grid data, but I'm having problems with the code below ... Home This is part of my template code: <script id="popup_editor" type="text/x-kendo-template"> <div class="k-e...
asked by 01.06.2015 / 15:38
1
answer

Delphi XE8 and Firemonkey: Integration between webbrowser javascript and system

I'm using the TWebBrowser component of Delphi to create a system that interacts with the site. So far so good! I can execute the javascripts of the site correctly, the problem is when I need to get a response from the javascript function...
asked by 27.05.2015 / 16:32
0
answers

Different behavior inside and outside the function

Good afternoon! For example, I made a script to redirect all the people of my site to the Home of the site, because we will change the system and with that, sales have to stop so we can do that. I did a mini function just for the test and...
asked by 18.09.2018 / 20:53
0
answers

How to optimize the generation of combinations?

I have the following code: const montar = (volante, todos, posicao, restantes) => { if (restantes === 0) { return [volante]; } const tamanho = todos.length - (restantes - 1); let novos = []; for (let indice = pos...
asked by 20.11.2018 / 12:50
0
answers

How to implement a mansory grid and Infinite scroll together?

I'm developing a Pinterest style website but I'm not able to put these two features together. To do the infinite scroll, I used jQuery with AJAX to pull the database posts and append them to the body. I basically copied this formula here: li...
asked by 18.09.2018 / 22:06
1
answer

Is it possible to do Polyfill for Arrow function and Template String?

The functionality of Template String and Arrow Function are excellent for facilitating some operations in JavaScript. However, it seems that not all browsers still support it. In many cases of lack of support of new functions, such as...
asked by 31.10.2018 / 17:59
1
answer

Filter dates in array

Currently I use firebase as my database. I need to pick up a collection and bring the data for a specific month according to two fields in my collection. The firebase does not let us make querys with different fields so I have chosen to bring ev...
asked by 18.10.2018 / 01:58
4
answers

What's wrong with this Javascript code?

I wanted to add the class tab-active to all the span tag of the menuMobileTabs div. What's wrong? <div id='menuMobileTabs'> <span>Sidebar</span> <span>RedeSociais</span> <span>Menu...
asked by 30.11.2016 / 13:39
4
answers

Big integers and cousins

Is there a function that generates prime numbers and integers in considerably large sizes? If not, how do you do it using JavaScript?     
asked by 08.04.2015 / 22:09
3
answers

Function that writes the first 50 numbers whose sum of digits is 10

I have a question, I need to make a function in JavaScript that shows the 50 numbers that the sum of their digits equals 10, eg: Number 19, digits 1 and 9, sum of digits: 1 + 9 = 10. The function should show me the number 19, showing a total...
asked by 20.05.2014 / 20:05