Questions tagged as 'javascript'

1
answer

How to add class when adding file

I want to add an ok icon when the person adds a photo to the form, to show her that the photo was added, the problem is that I have an image that I must follow and then the file name does not appear, I want to facilitate the user to know that th...
asked by 24.07.2014 / 15:28
2
answers

Query using Mongoose in Nodejs always returns null even within asynchronous method

I'm trying to retrieve a document in my Database using Mongoose in Node.js but it always returns Null. My problem before was the asynchronous method, but now everything is running inside it. And I'm just trying to print the recovered document fr...
asked by 23.07.2014 / 17:01
1
answer

How to change validation text according to each type of validation in the Initial Date field

I have a code that does a validation with jquery validate and is 100% functional. When validation occurs, jQuery Validate always displays what is written in the title of input field. How do I have different validations for some...
asked by 26.05.2014 / 17:57
1
answer

How to limit the 1 keydown event in JQuery?

I made a code that when starting my event, it makes a block make a move from top to bottom. If he presses the "3" key between the pixels set during the animation, he causes the animation to be removed and received "1 hit". But if I keep typin...
asked by 27.05.2014 / 20:32
2
answers

Array in JavaScript does not work on pie chart highcharts

var conteudodoGrafico = new Array();//cris gráfico for(x in data['linha']) { conteudodoGrafico.push('["'+data['linha'][x].nome+'", '+ data['linha'][x].enviado+']'); //cris grafico } conteudodoGrafico = ("...
asked by 15.05.2014 / 18:14
1
answer

Redirect with jQuery / Javascript click

I have a Home page in which when I click on a menu item, redirect the other page and a click in a certain service in an "accordion / accordion" menu. I have something like this: var index = $(this).parent().attr('index'); $(w...
asked by 12.05.2014 / 16:24
1
answer

Problem with scope of internal loop variables for JavaScript

My function gerarContatosChamado returns an HTML table formatted with the values it receives from parameter records , this works correctly the table is all formatted with the correct data of all the contacts. The problem happens...
asked by 15.05.2014 / 16:01
1
answer

jQuery Mobile: page events

I can not fully understand the jQuery Mobile page events hierarchy. How do I assemble the entire contents of an HTML page (and its modifications) and only present it to the user end when the page is ready? For example: I use a JS funct...
asked by 10.05.2014 / 04:42
1
answer

Problem in simple accordion effect in paragraphs

Is this feasible? Or do they have any suggestions without jQuery UI plugins? HTML CODE: <div class="minhaclasse"> <p class="titulo">Título<br>resumo<br></p> <p class="outros"> texto de descrição </p>...
asked by 28.03.2014 / 20:51
1
answer

How to make a popup with youtube text and video?

I need to make a pop-up that contains both text and YouTube video, the problem is that pop-up is much larger than the height of the screen. In the home page of the site before clicking the link to open the pop-up , the space that the pop-up...
asked by 28.03.2014 / 18:59