Questions tagged as 'javascript'

1
answer

How do I filter Google Maps results for a specific region?

I have a route system that captures user data and maps routes on the map: geocoder.geocode({ 'address': endereco + ', Brasil', 'region': 'BR' }, function (results, status) {} The problem is that it is returning addresses from all...
asked by 04.05.2015 / 20:09
2
answers

Percentage calculation with JS

I am setting up a function to do the calculation using percentage. In my online test it works. link $(document).ready(function () { valorTotaldaNota = "1.000,00"; valorTotaldaNota = valorTotaldaNota.replace(",", "");...
asked by 15.05.2015 / 02:05
2
answers

Calculate value according to selected dates

I have to make a code that calculates Reais according to 2 dates informed. I have 2 inputs of type text to report a data in dd/mm/yyyy format. The A input is data inicial and the B is the data fin...
asked by 19.05.2015 / 20:59
1
answer

Execute function in scroll event of a div

I have two divs, the two have the same id, target1 . I need to get two divs in JavaScript and apply a function in the scroll event of div1 . This function will be responsible for getting the scroll value of div1 and apply i...
asked by 28.08.2018 / 20:11
1
answer

Is it possible to configure a Jquery Effect?

Is it possible to change the options in Toggle Explode ? For example: it has nine divisions by default, is it possible to modify the number of parts it explodes and the size of those parts? I also wanted to know if JQuery allows cha...
asked by 24.08.2014 / 21:04
1
answer

Function running directly

When I click on the 'new' button calling the function to check the data, inside it I call another function to check the date it was informed! function f_veri_dados() { // existem outros dados // Data da Garantia f_veri_data(tx_dt_gt...
asked by 15.08.2014 / 16:16
2
answers

How to convert milliseconds to date

I would like to know how I can do a millisecond to date conversion within a field in a json. For example $http.get("http://teste").success(function (dados) { ng.locations = $.map(dados, function(job) { return job.j...
asked by 14.08.2014 / 20:30
1
answer

What is the difference between function declarations (React)?

I'm learning react and I came across this example (which works normally): import React, { Component } from 'react' import './Teste.css'; class Teste extends Component { constructor(props) { super(props); this.state = { message: 'H...
asked by 21.09.2018 / 18:13
1
answer

Delete web firebase folder

How to delete a folder from storage? To delete a file I use: firebase.storage().ref('pasta/arquivo.png').delete() But it does not work if I use it directly in the folder: firebase.storage().ref('pasta').delete()     
asked by 03.03.2018 / 03:44
2
answers

CRUD with AngularJS

I have a single-page and need to save the value of a variable in the database. How to do this using angular js? This variable receives the title from my single-page. This title will be customized by the customer. Would anyone have a clue h...
asked by 10.11.2014 / 19:21