Questions tagged as 'javascript'

1
answer

AngularJS google chart with dynamic data

Example of how my code is http://plnkr.co/edit/hMnKAzjbkQzHWjL5p6KX?p=previewangularjs I get the data from the webService and I organize it this way. var avaliacoes_descTipo = []; var avaliacoes_quantidade = []; angular.forEach(data, fun...
asked by 15.08.2016 / 16:12
1
answer

Alert only once Session

I would like to know how to make an alert appear only once for the user in the session, in case the user Loga and appears a div with alert informed Logged in successfully, after closing this alert I want it not to appear any more while the sessi...
asked by 03.07.2016 / 07:02
1
answer

Is it possible to restart the NodeJS server when a modification occurs automatically?

Every time I try to do some modification in my app.js file I have to close and start the server for the modifications to take effect, would I have some way to restart automatically after a change? like in php. Example: var http = r...
asked by 12.07.2016 / 21:01
3
answers

Limit characters in div with contenteditable

I have a div with contenteditable="true" and I would like text that exceeds 10 characters to be taxed with background red, as in Twitter. My main question is how to only tax the surplus text, if you have to do this with only CSS...
asked by 30.07.2016 / 20:29
1
answer

Is it possible to have an html element expand up?

Ex: I have a paragraph inside a div, and I want whenever the text breaks a line, it expands up, rather than down (default). See the example: #content { width: 200px; height: 200px; background: yellow; } #texto {...
asked by 04.11.2016 / 11:53
2
answers

Upload upload files with AJAX

I am not able to send some upload files with AJAX. I need to send 3 files with dynamically generated inputs, so I did not use the multiple attribute. By firing the event, I get to the xhr.send (files), which does not "play" the PHP file. C...
asked by 14.10.2016 / 23:54
1
answer

Help with Javascript comparison operators

Good afternoon, I'm doing a job, of which I'm going to have several forms with a minimum and maximum number and I'm trying to create a check function and avoid inserting numbers out of range through the keyboard, my function was this way $...
asked by 20.11.2016 / 17:31
1
answer

Makers google maps javascript. What's wrong?

I'm creating a script to add the values of a vector on a map (positions 0 and 1 only), but nothing happens. in the console there are no errors. Script: function marcar(){ var marcacao = function(position){ // Gravar dados da...
asked by 30.11.2015 / 20:02
3
answers

Global function for plugin

I am creating a simple plugin with jQuery and Bootstrap, and in my JavaScript I have the following excerpt: $.fn.myPlugin = function(options) { var element = this; var settings = $.extend({ param1: null, param2: null,...
asked by 29.12.2016 / 13:53
1
answer

C # Receiving Serialized Objects in a WebMethod

Good afternoon, I am passing a list of objects from JS to C #, to a WebMethod, as a function parameter, what kind of parameters should this be? I created a class to receive the data: public class serializeItens { //Dados de itens pub...
asked by 09.04.2014 / 20:04