Questions tagged as 'javascript'

1
answer

Jquery Validate max according to condition

I'm making a jquery.validate , can get the max to be dynamically, something like: ... max: function () { return $('#QtdEstoqueHidden').val(); ... Okay, it worked! (I store the max value in a hidden field that is dynamically re...
asked by 03.03.2017 / 21:47
2
answers

Because when I click the button to execute the function of showing an invisible form it shows the form but then it disappears?

I'm new to web development and I use xampp v5.6.28 I made a javascript function that when I load the page, form1 is visible and form2 is display: none but when I click the button to leave form1 invisible and show form2, it shows form2 fast and t...
asked by 10.01.2017 / 22:28
2
answers

Handle error: "Uncaught TypeError: Can not read property of 'value' undefined"

Hello, When making an AJAX request, I get the following error: Uncaught TypeError: Cannot read property of 'rede' undefined. I even understand the reason, I do not have the following value on account of the filter made by the user not re...
asked by 20.01.2017 / 19:35
2
answers

How to zoom in / out?

Hello, I'm trying to make Javascript a function that gives zoom slow in my image, that is, increasing my background-size slowly, to give impression of movement in the image. I tried to do this function, but when running the site...
asked by 16.01.2017 / 05:26
2
answers

Subtract days from an input date with javascript

I need to get a data from a type number field and add it to a date of input date. I already have, but I must now take the result of that date and subtract 14 days, but I can not do it. I'm a beginner and I need to do this, please help me....
asked by 11.01.2017 / 17:29
2
answers

Regular expression in JavaScript to validate username size

I need a JavaScript regular expression that meets the following rules: Have between 2 and 255 characters In lower case Only contain alphanumeric, underline (_), period (.) or hyphen (-).
asked by 11.01.2017 / 18:55
1
answer

Scroll bottom in click event

I need the page to go down to the footer when it is clicked on a input . In fact when the user clicks on input and starts typing, the jQuery autocomplete is hidden by the cellphone keypad, so when clicked on input and the...
asked by 17.01.2017 / 14:12
1
answer

Problem with onload event

I would like to ask someone who is knowledgeable in pure javascript, why this is happening. I have a code that should only show the image when it is loaded (onload), but the function only fires when I wrap the onload directly in the img tag,...
asked by 04.10.2016 / 00:20
1
answer

How to write this java program using javascript and node? [closed]

public class Principal { private static int x = 0; private static int y = 0; public static void sum() { x = y + 1; y = x + 1; } public static void main(String[] args) { for (int i = 1; i <= 10; i++) { Thread a = new Th...
asked by 06.10.2016 / 20:04
1
answer

Preloader with Materialize

I'm making a request via ajax: $(function () { $('#loader').hide(); $('#formSend').on('submit', function (e) { e.preventDefault(); $.ajax({ type: 'post', url: 'proc_pedidos.php', data: $('form'...
asked by 28.07.2017 / 04:34