Questions tagged as 'javascript'

1
answer

Undo the parent element jQuery

How can I prevent a #b click from executing the #link click, I would like it to alert only "b" $("#link").on('click',function(){ alert('link') }); $("#b").on('click',function(){ alert('b') }); <script src="https://ajax.googleapis....
asked by 17.12.2015 / 14:21
2
answers

Finding an address by latitude and longitude

Since I can get the full address of a geolocation, ex: Lat. 37.386196601958 Lon. -121.964346639 (Such a street, Such a neighborhood, cep: tal)     
asked by 13.02.2016 / 20:07
2
answers

How do I disable Google Chrome Pop-Up to save passwords?

How would a method to disable Pop-Up:    Do you want Google Chrome to update your password for this site? Feelfreetochoosethelanguage,buttheanswerwithJavaScriptwillbetheacceptedanswer.Nota: AutoComplete='Off' indicates t...
asked by 07.08.2017 / 15:52
1
answer

Categories tree in MongoDB, how to model?

Good night, guys. As MongoDB changes a lot of our way of modeling a database, I came across a question that may be half-beast. I'm doing a Restful API using Lumen and MongoDB as a database, and I want to create a collection of product cate...
asked by 07.10.2015 / 04:49
1
answer

Simulate click with jQuery after inserting link via jQuery

I have to open another tab with a link that is returnable from PHP to jQuery. I've used window.open but it asks to release popup and the client does not like it at all. So I thought of doing, when jQuery receives the link, it chang...
asked by 25.11.2015 / 03:25
1
answer

What is $ scope.answer?

I'm new to AngularJS, I would like to understand what the $ scope.answer really is for, I did not find anything in the official documentation or the web, I just saw it in an example I took in a tutorial, but I did not understand the importance o...
asked by 14.10.2015 / 15:13
3
answers

Array value with the highest occurrence

In an array, example [1, 2, 3, 4, 5, 2, 2, 3] , which logic, methods and functions I can use to get the value with the highest occurrence, as in this example 2 .     
asked by 19.11.2015 / 14:00
1
answer

How to change filename for download?

I am generating a PDF file and use HTML5 to display it on the screen: $("#conteudo-pdf").append('<object data="' + meuData + '" type="application/pdf" style="width: 100%; height: 100%"></object>') Content is displayed correctly...
asked by 23.10.2015 / 14:26
1
answer

Resolution of equations

I created a Cartesian plan and I get the user an equation whatsoever. My goal is to draw this equation on the plane. I'm doing this using canvas. But here comes a problem, I can only do this if I separate each type of equation (circle, straight...
asked by 13.12.2014 / 02:30
3
answers

Calculate page load time

I'd like to measure the loading time of a page using JavaScript. What do you mean? When someone accesses my page I want to start measuring the loading time. If this load time exceeds, for example, 500 ms, I want to display a link suggestin...
asked by 04.11.2014 / 22:46