Questions tagged as 'javascript'

2
answers

Discover the location that the user accesses my page [duplicated]

I have a domain, www.domain.com and www.domain.com, the content is the same as the difference in the configuration file with the messages that will be loaded. What is the best technique for finding the location that the user is accessing? s...
asked by 17.04.2017 / 22:00
1
answer

How to remove KmlLayers increment in Google Maps?

I have a list of items (in the code below two buttons) in which to click on each one and opens a modal with a map with its particular KML. When you click on the first item, the polygon for the item appears, but when you click on the next item, i...
asked by 06.05.2017 / 21:47
1
answer

Calculate the total value of an order with jQuery

I'm new to jQuery and wanted to do a simple sum operation, however as I'm learning the syntax I still have difficulties. I was able to generate the total value of the requests, however, I can not generate total value: the rate has the fixed v...
asked by 06.05.2017 / 23:00
1
answer

How to make an HTML function stop working with JavaScript?

I'd like that if allowSubmit is false, it would not execute the action of form ( action="logintest.php" ). How can I do this? function check_if_capcha_is_filled (e) { if(allowSubmit) return true; else{...
asked by 10.05.2017 / 04:03
1
answer

How to invoke countdown timer with each click on the button?

I want to develop something simple, but that's making me frustrated. I will try to express myself in the best way possible. To make things simpler here, I'm just bringing as a example a randomized Photo Gallery, which, by clicking on the "...
asked by 21.03.2017 / 23:16
2
answers

Improving site hover scheme

I'm trying to develop an evaluation scheme for files that are hosted on my client's website. Each file gains beyond the access link a DIV with the five rating options, which appear as gray stars. Here is the code: <div style="margin-top: -2...
asked by 22.03.2017 / 18:32
1
answer

hide / show div

I am creating a website for a travel agency, and at the beginning of the site I have created 3 prominent sites. When the user passes the mouse on the images, the image should darken and appear "more details" . The problem is that not being abl...
asked by 20.03.2017 / 21:43
1
answer

Problems with the time interval in a carousel

Well, I'm having some problems with a carousel created by myself, more specifically in the transition order of the items. var carouselBannerHolder = document.getElementById("banners-slider"); var itemsCarousel = document.querySelectorAll(".ban...
asked by 21.03.2017 / 13:23
1
answer

How to set Height of the DIV Son, through the depth of the Scroll of the Father DIV

I'm having a bit of trouble applying the depth size of the% dynamic% of the first scroll to the second div overlapped. Code: // Vamos criar a segunda Div, no qual ficará sobreposta a primeira Div var sobrepor = document.c...
asked by 05.04.2017 / 21:17
2
answers

How do I upload content to a page based on a previously clicked element?

I have a simple gallery where each image leads to a new page with its description. It turns out that the page layout for the descriptions is the same, just changing the content. How do I make only a few fields on this page change based on the it...
asked by 04.04.2017 / 14:18