Questions tagged as 'javascript'

4
answers

What is the difference between declaring variables using let and var?

Since the word let was introduced in ECMAScript I have only heard about it, so far I have not seen any practical examples and to be honest I do not know very well what a let variable is and how it behaves. The only thing I unders...
asked by 16.01.2015 / 13:56
1
answer

Find nearby restaurants registered in the database through google maps

I need some help. I have a PHP system with a mysql database with several registered restaurants, with fields like: id, name, address, longitude and latitude and I'm creating an application with Ionic using AngularJS. In this application I had...
asked by 28.02.2016 / 05:57
1
answer

Doubt xss exercise

Galera wanted to understand the following logic of an xss challenge he was doing So because when I put <script>alert(1);</script> does not work but when I put </script><script>alert(1);</script> the...
asked by 13.02.2016 / 23:51
2
answers

Graph in Bars Char.js

Well folks I have a query of the Bank that returns an array of data. and wanted to put the values to be displayed in the graph in Bars. I tried this but with values coming from vector the graph does not load. while ($estoque = $estoques->...
asked by 22.01.2016 / 13:56
2
answers

Capture user name logged into the machine via Web Application

There are two applications, one in Java and one in ASP, and both can integrate with Active Directory without typing user name and network password. The application made using ASP, logs in automatically when accessing the url, however it does not...
asked by 18.12.2015 / 20:14
1
answer

Click on the Link and open a player below it

I have some links, for example: Link1 Link2 Link3 Link4 and I would like that when I click on Linkx it opens an "embed" just below it and that each Link brings its corresponding video. / p> I'm working on a t...
asked by 24.09.2015 / 19:08
1
answer

3D Viewing in Angular Google Maps

Preamble I use Angular Google Maps to indicate the location of several buildings in campus of a university. My initialization is as follows: $scope.map = { control: {}, center:...
asked by 20.07.2015 / 14:55
1
answer

jQuery plugin changing attributes with $ .extend

I created an object in a plugin above .fn . For they are usually created within the objects of which we do the following: (function( $ ){ $.fn.tooltip = function(options) { var defaults = { 'corDeFundo' : 'yellow'...
asked by 12.05.2015 / 23:14
1
answer

How to create and display a list of emails with json output with form information

The purpose of the project is to generate a list of "emails" coming from the contact form, to show in a list of type li with the following data:  - name  - subject matter  - shipping time I also need the user to click on a certain fiel...
asked by 24.06.2015 / 13:54
1
answer

Returning a Select option with Ajax

Hello everyone, well, everybody, I need your help humbly with the following problem: I have a scrpt Ajax with the states and cities of Brazil, and a select option where it lists the state and the other its respective cities, until then everyt...
asked by 21.10.2016 / 16:27