Questions tagged as 'javascript'

1
answer

Validating dynamic fields with Jquery.validate ()

I'm having trouble validating fields in a PivotTable using the jquery.validate () plugin where input are sequential. JS $("#addLinha").on("click", function () { // ADD QTD DE LINHAS INFORMADAS NO INPUP var n_prod = $("#n_p...
asked by 06.03.2018 / 14:52
2
answers

Update PHP function every second

I'm using a function to get the server load: function get_server_cpu_usage(){ $load = sys_getloadavg(); return $load[1]; } I call it with: <div id="load"><?= get_server_cpu_usage(); ?></div> I need to implemen...
asked by 05.03.2018 / 21:28
3
answers

Scroll array until you find a certain index

I have the following code JS : var botao = document.querySelector('input[type="submit"]'); botao.addEventListener('click', function(e) { let form = document.querySelector('form'); let ipt = { nome: form...
asked by 05.03.2018 / 16:57
1
answer

Show preloader icon on site

I have a login page that calls a page to confirm the registration, in case the person has to open the email, get the code received and go to the confirmation page. The problem is that it takes a significant amount of time to call the screen to c...
asked by 21.02.2018 / 20:04
1
answer

How to mount the page data received via get

I have this line which is a part of the code I am using to send the data through the URL: <a href="curso.html?id=' + item.id +'&descriacao=' + item.descricao + '" class="a-item">'+ item.nome +'</a></div> It's happ...
asked by 20.02.2018 / 18:11
1
answer

How to pause and continue after an event?

To with this code here: function aparecer(){ const array1 = [1,2,3,4,5,6,8,9,10]; for (let i=0; i < array1.length;i++){ const lugar = document.getElementById('local'); const ul = document.createElement('UL');...
asked by 19.02.2018 / 19:30
1
answer

Returning Ajax request undefined

I'm studying a bit of Ajax and testing your requests. My question is because of the return, it is coming back undefined. This is the function: function recarregar() { var jsonData = $.ajax({ url: "http://xxxxxxx/o/Ano/1235",...
asked by 21.02.2018 / 15:25
2
answers

How to change the default name of the bootbox OK button?

I am using the bootbox in my application and would like to know how to do to change the default alert name that is OK, below my script: @section Scripts{ <script src="~/Scripts/bootbox.min.js"></script> <script> $...
asked by 01.02.2018 / 10:58
1
answer

Which combo box was selected inside a form

Hello, Within a form I have 4 combos <select name="combo1" ><option value="combo1">Combo 1</option> </select> <select name="combo2" ><option value="combo2">Combo 2</option> </select> <select n...
asked by 31.01.2018 / 17:37
2
answers

How to make 'appear' in an element according to page scrolling?

I watched this video (link below) and would like to build an element that only appears when the scroll reaches the "touch point". I believe it should be javascript. If anyone knew I would be very grateful: D I tried to link the files and add the...
asked by 31.01.2018 / 01:25