Questions tagged as 'javascript'

3
answers

Demand pagination with Angular or JavaScript

How to make a paging on demand with AngularJS? I have 2 particularities: 1 - You can not use jQuery, just Angular or pure JavaScript. 2 - I have 2 methods the prevPage and nextPage . Here are some examples of the methods: $...
asked by 22.05.2014 / 20:06
1
answer

What is the difference of NodeList for HTMLCollection?

I was reading a code when I came across the following question, would you like to know if anyone could enlighten me?     
asked by 27.05.2014 / 13:14
1
answer

Retrieve position or name of a button with javascript

How do I retrieve the position of a button on the HTML page using Javascript ? The main idea is to add an eventListener to all the buttons that were created in HTML , and when I click the button chosen, it performs the function in it. S...
asked by 12.05.2015 / 21:13
1
answer

What is apply () - jquery

I would like to know what the apply() function in jquery is for. I'm creating a plugin where I'm using. By observation I see that it takes this and passes as argument in function init . Then I can use this instead o...
asked by 12.05.2015 / 22:20
1
answer

Position cursor

I have a function with JQuery that leaves the textbox in uppercase, the problem is that when I have a mask in the field, after typing any character, the cursor goes to the end of the textbox, then the user has to go back and type again, and the...
asked by 04.05.2015 / 22:37
1
answer

zoom function in javascript

I would like to create a zoom function inside an extension file js, I already have a canvas function, however in my drawing it is coming out too small depending on the initial coordinates, so I would like something that when I needed I could giv...
asked by 04.05.2015 / 03:12
1
answer

Connecting a local server to an external server with js and php

My intention is for the local server to query data on an external server. I wonder how I could get the external server to wait for the local connection, and depending on that local connection, make different decisions. Example: I have 2 clien...
asked by 13.05.2015 / 22:06
1
answer

innerHTML in a TR of a JavaScript table

Hello, I would like to generate a dynamic table in java script (only the tr and the td) so I am using innerHTML. I make the following code: objDiv1 = document.getElementById("tabela"); bloco += "<tr><td>"+ Campo+"</td>&l...
asked by 09.10.2018 / 01:15
2
answers

I am having trouble using the clearInterval function

a_103 = setInterval( function (){ alert('oi');},3000); id = 103; id = "a_" + id; clearInterval(id) I'm having problem with clearinterval . It can not perform the way I did, but if I by clearInterval (a_103); It usually goes. I have ch...
asked by 11.03.2014 / 19:38
2
answers

How to make same "new" Gmail notification?

Hello. I'm looking at how to make an equal "new" Gmail notification: Thatis,whenthereisanewiteminthelist,the"new" tag appears and only disappears after the person visualizes. It seems that gmail does not make a ajax request, I'm n...
asked by 10.03.2014 / 18:16