Questions tagged as 'jquery'

5
answers

Disable click on the body for a period of time

I'd have some way to disable the click events of my body . When I call a function I would like to disable the events in the processing that is a bit time consuming and when I finish activating again. I've already used jQuery to add the...
asked by 15.12.2017 / 13:52
2
answers

Subtraction of arrays

I have two arrays : A E B A = [1,2,3...] B = [7,5,1...] When I do this subtraction it has the correct subtraction return: console.log(A[0] - B[0]); But when I play in the loop it does not work: while (i = 0) { A[i] - B[i] }    ...
asked by 23.11.2018 / 12:09
1
answer

How to identify that the user is in the page of my site with Jquery

I'm making a script to identify if the user is on the site or not, but I have no idea how to do this, could anyone help me? My question is the following, I want to know if the user is on my page, for example if the user goes to another tab as...
asked by 11.04.2015 / 16:10
1
answer

How do I know if the user is updating the page [closed]

The user is filling the cart with various items, and I have created a jQuery function where items are summed up instantly and presented to it. As soon as he finishes choosing the items and clicking the continue button, the items and value are sa...
asked by 16.03.2015 / 19:27
4
answers

How to access index of a javascript array

When I give console.log to the variable overlays , I have the following return: [Oh, 36: Oh, 37: Oh, 97: Oh, 98: Oh, 99: Oh, 100: Oh, 101: Oh] 0: Oh 36: Oh 37: Oh 97: Oh 98: Oh 99: Oh 100: Oh 101: Oh length: 102 __proto__: Array[0...
asked by 11.02.2015 / 14:41
1
answer

Freight calculation with WS post via javascript

I'm trying to make the freight calculation of the post via javascript, but when I do the test it does not pull the data and it returns the error to me    XMLHttpRequest can not load link ... & nVlDiametro = 0 & sCdMaoPropria = s & nVlVa...
asked by 28.07.2017 / 20:00
2
answers

How to undo a click event on the site

I use a jQuery plugin that generates a hidden side menu, and by clicking the button, the menu pops up, shifting the site content sideways. The problem is that site elements remain "clickable" and the menu does not close automatically if I...
asked by 09.10.2014 / 21:07
3
answers

Pass checkbox list to php

How can I pass a php page to a selected checkbox list, I have this that shows me the checkboxes, but I'm having trouble sending them to php. function SelecionaChecks() { var Check = document.getElementsByName("check");...
asked by 02.06.2014 / 22:38
2
answers

How to apply the DRY (Do not Repeat Yourself) strategy in this code?

I have several tables, one on each page of my application and all will have the same function of filtering a column, but the columns have different names and different orders. How to write this code without being repetitive? $(document).rea...
asked by 19.01.2015 / 16:01
3
answers

Count amount of LI within a UL

Show amount of LI within a UL. I have the following HTML: <ul class="rodapeUlCat margin-top-25"> <li><h3><a href="/paginaSYS">tituloMenuSYS</a></h3></li> <li><h3><a hr...
asked by 07.10.2014 / 16:45