Questions tagged as 'javascript'

1
answer

JQuery masked input with regex?

I put the following script to put only month and year in the input, and set the regex to accept typing from 1 to 12 for months: $.mask.definitions['X'] = "^([0-1]|1[0-2])$"; jQuery(function($){ $("#masked...
asked by 04.11.2015 / 17:07
2
answers

What is the best way to reuse codes between modules

I'm developing a tool using AngularJS, but I'm constantly picking it up, I need to reuse code from different modules and files, but it's not working properly. With javascript pure, it is quiet to reuse other functions, even in different files, t...
asked by 21.10.2015 / 16:16
1
answer

Execute modal only if there is a call

I want to execute the modal only if the call exists. Because it's taking too long to open the page. Below is the modal used: <div class="modal fade" id="m_modal<?php echo $count ?>" tabindex="-1" role="dialog" aria-labelledby="...
asked by 03.06.2018 / 21:00
4
answers

Access JSON with multiple objects in JS

I have the following JSON [ { "id": 1, "nome": "Matheus Almeida Siccenna", "cpf": null, "matricula": { "id": 555, "empresa": 1, "unidade": 0, "descricaoUnidade": null, "curso": 1, "descric...
asked by 15.12.2015 / 18:27
2
answers

Is there a paid localhost server? [closed]

I searched the internet and found nothing related. I want to set up a localhost server to test my applications. I have already tested Xampp, Wampserver EasyPHP and others ... Is there a paid system? The correct way to speak is "Local...
asked by 30.12.2015 / 13:22
1
answer

Image loses effect of CamanJS when manipulating canvas

I own a canvas, in which I manipulate images drawn on it with the CamanJS plugin and works perfectly. However, if I manipulate the canvas manually (without the aid of the plugin) the image loses the effect. For example, I add a filter (Vintage...
asked by 04.01.2016 / 17:57
1
answer

Put header in ajax get method

Good afternoon, I have the following piece of code: function getData(){ var url = "http://teste.com"; var data = ""; $.get(url, function(response){ serverResponse = response; for(i in response.content){...
asked by 15.12.2015 / 17:18
1
answer

How to Place Image on the X Axis

I'm trying to put an image on this graphic that represents Labels, but since it's a canvas I do not know how to do that in ChartJs . JS myBarChart=newChart(chartBar,{type:'bar',data:{labels:dataLabel,datasets:[{data:dataValue,bac...
asked by 21.10.2016 / 17:24
2
answers

How to refresh after updating the new video?

In my vision, I have an old video, when I upload new video, I want to automatically reload a new video after "upload". View : <div id="embed_video" class="embed-responsive embed-responsive-16by9"> <video class="embed-responsiv...
asked by 24.10.2016 / 14:43
1
answer

document.querySelect in body

How to use the code session document.querySelector to change / change the background image of a page <body>...</body> Ex: var imagem_lista = [ "http://static.gamespot.com/uploads/original/1179/11799911/2324138-...
asked by 29.07.2015 / 23:10