Questions tagged as 'javascript'

1
answer

Handle json with ajax and use your data separately

PHP: if (@mysql_num_rows($resultados) > 0){ while ($linha = mysql_fetch_array($sql)) $retorno = array($linha); // print_r(json_encode($retorno)); echo json_encode($retorno); } How to mani...
asked by 30.11.2015 / 01:17
2
answers

The function I'm calling does not appear, what's wrong?

HTML      <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="mostrarCreditos.js"></script> <meta charset="utf-8" /> <title>Créditos</title> <input onc...
asked by 01.12.2015 / 15:26
1
answer

AngularJS with Single Page and Ng-View does not work correctly

I am using the following material as a reference: link I have created the files with the structure shown in the material to learn about the routes that AngularJS makes available and I am putting the files in the Apache root directory and...
asked by 14.10.2015 / 01:36
1
answer

Javascript - Configuration steps

I have a problem that is: I need to start my application to make a series of settings. I tried to do using state machine, and I ended up finding this: link events: [ { name: 'start', from: ['none', 'getInformatio...
asked by 14.10.2015 / 14:50
2
answers

How to count the time the user takes on the page?

I'm doing a PHP, JavaScript, and MySQL question and answer program. Well, in that code I need to count the time it takes the user to answer the question and store it in a variable to use the value in another code. Also, is there any way to...
asked by 03.12.2015 / 00:19
1
answer

jquery inputmask does not accept quantifier in function "validator"

I'm trying to make a customAlias to use with jQuery Inputmask, but I'm facing the following problem: My input: <input id="input-field-nome" data-inputmask="'alias':'customAlias'" type="text" data-rule-required="true" class="form-co...
asked by 09.10.2015 / 17:18
1
answer

How to hide a component in emberjs 2.1 equal to ng-hide?

Non-Angular exists ng-hide and ng-show to display and hide page elements. How to do the same in EmberJS 2.1? This is a translation of my question on SOEN .     
asked by 05.11.2015 / 17:33
1
answer

How to load Google MAP Charts library

When trying to draw a chart of type MAP, I get the following error:    Uncaught TypeError: google.visualization.Map is not a function This happens only with this type of chart. <html> <head> <script type="text/jav...
asked by 04.11.2015 / 16:04
2
answers

Picking up top div ID to click

I need to get the ID of the DIV greater than the button is, for example: <div id="1"> <button id="1"></button> </div> <div id="2"> <button id="2"></button> </div> If I click the button 2 i...
asked by 04.11.2015 / 13:21
1
answer

how to leave the outer div invisible (hidden), but its visible interior?

link Javascript I'm doing a random numbering game: I would like to do something like a slot machine game. That is, only one number should appear inside a div and the numbers on the outside should be invisible. var array = [1,2,3,4,5,...
asked by 07.11.2015 / 19:50