Questions tagged as 'javascript'

3
answers

How to create the javascript alert function for a specific page menu?

I have a page in PHP where I want to implement a JavaScript alert for when the user clicks the "Create a call" menu to return a message to the user. I did the implementation using the alert (), however the alert returns when the page is updated...
asked by 19.11.2016 / 16:30
2
answers

Zero variable in javascript

//Nosso time var nomeTime = prompt("Qual o nome do seu time ?"); var vitorias = parseInt(prompt("Quantas vitórias seu time teve ?")); var empates = parseInt(prompt("Quantos empates seu time teve ?")); var derrotas = parseInt(prompt("Quantas derro...
asked by 22.11.2016 / 17:30
2
answers

Picking the Name and Dropdown ID

I have this JavaScript that points the values to DropDown: $('#Estado').change(function () { var id = $(Estado).val(); $(function buscarCidade() { //alert(id); var url = '@Url.Action("SelecaoCidade", "Chamada")';//url do c...
asked by 22.11.2016 / 13:36
1
answer

What is the "return" JavaScript function for?

One of the functions I hate the most is "return" because I do not understand what it does or does not do, I'll give you an example: var quarter = function(number){ number / 4; } if (quarter(12) % 3 === 0 ) { console.log("A declaração é verda...
asked by 19.06.2016 / 23:44
1
answer

* ngFor with angular2

I would like to create a loop of repetition, but in this loop I already have the amount of times it will execute. Below is an example of the expected result using javascript. for(i = 0; i < 5; i++) { console.log( i + 'estrelas!'); }...
asked by 27.04.2016 / 18:54
1
answer

Center Map with Multiple Markers

Good afternoon everyone! I'm developing a system, but I need to use Geolocation to get the location of the user, and show the points close to him, so long, but when I put a marker in another state, it zooms too wide to pick up all markers, I...
asked by 26.04.2016 / 20:03
1
answer

$ injector: modulerr

I get the following error: angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module contato due to: Error: [$injector:nomod] Module 'contato' is not available! You either misspelled the module name or forgot to load i...
asked by 24.04.2016 / 23:30
2
answers

Add CSS class to Input while loading page

I want to add class="cpf_cnpj" to a input with id input-custom-field2 when loading the page, follow the html and javascript that I tried to use but to no avail: <input type="text" name="custom_field[account][2]" value="...
asked by 08.08.2016 / 14:53
1
answer

A problem with variables in JS and PHP

I'm building a book registration system, it's quite easy actually, it only involves a bit of PHP and MySQL, but my problem is at the time of the display. See, it's a lot of information, so I wanted to make a button that would hide the selected b...
asked by 08.08.2016 / 20:56
1
answer

How to decide what and how to perform the css structure of a responsive menu [closed]

I would like to know how you create responsive menus, what is the best structure in your opinion both pro html and pro css , and whether or not they use javascript . can be either a user's own menu when logged in, or a menu...
asked by 10.08.2016 / 23:44