Questions tagged as 'javascript'

2
answers

Real-time Google Maps update

I'm using Google map to show objects in real time. I made a function in Javascript which is refreshed every 3 seconds and in that it updates those marked on the Google map. Something like: vmarcador[value.Id] = new google.maps.Mark...
asked by 12.08.2016 / 20:22
2
answers

How to drag an element freely on page with pure javascript? [duplicate]

I would like to know how to move an element on the page freely with javascript without frameworks, it would just drag and drop anywhere on the page     
asked by 10.08.2016 / 17:43
1
answer

How to use Try / Catch in reading files

I have a method called readFileCredentials that has the purpose of opening a file and returning the data that was inside that file, it follows the code of this method: readFileCredentials = function(file, cb){ var _path = 'data-sour...
asked by 05.05.2016 / 15:20
2
answers

ViaCEP does not populate user address data (Website on .NET platform)

I'm developing a web application on the .NET platform and thought of having the user type the zip of their address and automatically populate the textboxes with street, neighborhood, city, and state data. But in my code it does not work, I do no...
asked by 17.05.2016 / 01:46
1
answer

Object Id Deletion

I have the following object: objTeste = [ { "id": "03", "nome": "teste03", "pai": { "id": "02", "nome": "teste02", "pai": { "id": "01", "nome": "teste01" } } } ] I want to remove a...
asked by 21.04.2016 / 20:19
2
answers

How to fire functions outside the scope of the Plugin?

I'm making a plugin that at some stage runs a function. Example: <button class="btn btn-warning btn-lg" id="act"> Action </button> (function($) { $.fn.foo = function(options) { var opts = $.extend({}, $.fn.foo.defaults,...
asked by 02.05.2016 / 19:50
4
answers

How do I replace with the '\' character with RegExp?

I need the character '\' (Reverse Solidus) to be included with the value of the captured group. Example: In the sentence assets / pdf / regulation_demais_ddds_ Hi Mod.pdf , I need the excerpt    / pdf be replaced by \/pdf\/ f...
asked by 13.04.2018 / 17:37
1
answer

How to force Highcharts to show all points?

I use the highcharts API to generate graphs from information collected in a database, the problem is that when it comes to many points in your series, it HIDES and GENERATES a Mean in periods. . See the example in this jsfiddle . The highe...
asked by 20.04.2018 / 16:25
3
answers

Date 01 day of month returns as last

When I enter day 01 as the date, it returns me the last day of the previous month. What is the reason? function myFunction() { var fromdate = new Date(document.getElementById('data_venc').value); alert(fromdate); var dd =...
asked by 10.07.2015 / 22:55
2
answers

Retrieve Google Maps address reporting Long and Lat

I have the latitude and longitude of a location in Google Maps, obtained from a marker and its own function, I would like to know if anyone has an idea or function that returns the complete address of the location based on these two param...
asked by 10.07.2015 / 19:13