Questions tagged as 'javascript'

1
answer

Create a Read More with jQuery

Hello, I have a problem. I have the following code in jsfiddle: link for creating a "read more" button with jQuery. I do not know where it is wrong, but when the text is too large, it does not show everything by clicking "Read More". Hav...
asked by 23.10.2015 / 05:59
1
answer

Dependency injection in service

Can I do dependency injection on services? for example, I tried this: service 1 var crypto = angular.module('crypto',['ngRoute']); service 2 var teste = angular.module('userlog',['crypto']); teste.service('userlogService','cryp...
asked by 20.10.2015 / 21:20
1
answer

Json does not return data to Javascript

I have the following code in PHP, but it does not return the data to JAVASCRIPT. It does not return any information: <?php require_once("conexao.php"); $sql_nao_lidas = @mysql_query("SELECT tituloRealizacao, descricaoRealizacao, nomeFoto F...
asked by 26.08.2015 / 22:54
1
answer

How to add onclick event to play audio on canvas?

When clicking on an image I want to play a sound. How can I do this function using the onclick event? Code: window.onload = function myCanvas() { var c = document.getElementById("myCanvas"); var ctx = c....
asked by 18.10.2015 / 22:55
1
answer

Requests array

I have a list of contacts, each contact has its agency reference and I can only access the data of this agency by making a request. For each contact I have to access the agency to return the complete data. Contact Agencyforthiscontact Ho...
asked by 24.07.2015 / 15:43
2
answers

Edit NodeJs data

I have a Crud NodeJs where I can add data to the database, but now I wanted to edit this data and the tutorial I follow is a bit old, in this tutorial editing is done by PUT my JADE page looks like this: extends ../layout block content...
asked by 03.07.2015 / 20:27
4
answers

Fix div at the bottom of the page

I would like to know how I leave a <div> fixed at the bottom of the page, like I made it down with margin-top , but only in Firefox and one thing when I open Chrome a <div> is not in the footer.    ...
asked by 05.07.2015 / 19:21
2
answers

problems creating event listeners dynamically

link JQUERY / Javascript verificaCamposRepetidos(".teste", array1); verificaCamposRepetidos(".teste1", array2); HTML: <p id="parte1"> <span>VALORES de 1 a 3</span><BR/> <input type="text" class="tes...
asked by 28.10.2015 / 01:18
1
answer

How to split an image into pieces using javascript and put in their respective divs

I would like to know how this separation of the image in smaller divs within the div itself is done following the example of this link: link     
asked by 02.10.2015 / 02:49
1
answer

Strict Mode in JavaScript works in frameworks?

I'm studying JavaScript and I came across Strict Mode ( use strict ). I would like to know if it works with JavaScript frameworks if I put this command in a .js file, or if it only works with pure JavaScript? Because it is support...
asked by 04.10.2015 / 22:03