Questions tagged as 'javascript'

2
answers

Retrieve latitude and longitude of marker (marker)

Follow the code: function initAutocomplete() { debugger; var map = new google.maps.Map(document.getElementById('map-create'), { center: { lat: -23.5505199, lng: -46.6333094 },...
asked by 04.01.2017 / 02:42
1
answer

Browser message after AJAX request

I have an ajax request responsible for sending a file to the servlet, it is performing the process correctly. But when I update the page the following message is displayed by the browser (When I give an f5):    The page you are looking for ha...
asked by 21.04.2016 / 17:33
1
answer

Force update of JavaScript file version

I'm developing an application in Angular2 and I'm facing a problem that is updating the JS files. When I update the version sometimes the browser does not load the new file, it uses the old one. I know if I put the version of the file at the...
asked by 15.04.2016 / 14:41
1
answer

How to identify exactly which record has changed from one list to another? By ID

Hello. I have 2 lists being assembled in javascript, based on the rule: Do you have flag Automatically DispatchedNotes as true in the database? Then it stays in the Array: clientsDownloadTrue Do you have flag queryNotesAddressed Automat...
asked by 25.02.2016 / 14:10
1
answer

How to disable field and button in angularJS?

I have a text field and button to send that text. You are having a small delay , after I click the send button until the message is sent. Then I need to disable the text field and the button until the message is sent and appears on the screen,...
asked by 25.02.2016 / 20:33
1
answer

What is the difference between .data () and JQuery.data ()?

I was reading the jquery documentation and I do not quite understand what the main difference between two is since they both serve to store data from an html tag.     
asked by 26.02.2016 / 23:22
1
answer

How to create button with function to export the DataTable to (.csv) in jQuery?

I have the following button: $(document).ready(function() { $('#example').DataTable({ "dom": 'T<"clear">lfrtip', "tableTools": { "sSwfPath": "/swf/copy_csv_xls_pdf.swf" } }); }); <script src="https:...
asked by 12.03.2016 / 21:03
1
answer

Difference in Socket.io statement

I'm starting to work with Socket.io on Node.js, the question for now is simple. Using my example below. What's the difference in using socket.emit () and chat.emit ()? PS: * I hope you have no kkk syntax error. var chat = io.of('/chat')...
asked by 27.02.2016 / 14:20
1
answer

Is there a performative difference between on-chained with on with multiple events?

I've always used on with multiple events with the thought that it would simplify my code and make it easier to understand, but from time to time I came across several plugins using the thread in a chained form. Example with multiple events:...
asked by 01.03.2016 / 19:25
2
answers

How to update $ scope.items after push execution?

JavaScript: var app = angular.module('app', []); app.controller('controlador', function($scope, $http) { $scope.user = {}; $scope.items = []; var sum = 1; $scope.submitForm = function() { $http({ method...
asked by 01.01.2017 / 20:55