Questions tagged as 'javascript'

2
answers

Image gallery error, random back button

Hello, I have a js that makes a list of images move forward and backward based on a variable, it progresses perfectly, however to return it randomly. Can someone help me solve it? the code is below: var imgs = [ 'produtos/Slide92.png', 'pr...
asked by 28.11.2016 / 15:23
1
answer

Capture Scroll by scrollbar

User fills out a form and clicks register. The system opens a modal window with the "I agree" button disabled. Just by scrolling the scroll bar all the way down the button must be enabled to register. By scrolling the mouse or touchpad everythin...
asked by 27.11.2016 / 20:07
1
answer

Button to add new fields in a form, with pure JS

I want to create a form with a + button, which creates more fields so that the user can send as many forms as he wants. I tried this code, but without success: var coluna = 1; function plus() { document.write('<butt...
asked by 24.10.2016 / 04:03
1
answer

Navbar with problems

I am doing a project, and when I reduce the screen, navbar changes to the mobile standard, making it responsive, then when I click on the 3 scales of the navbar menu, it downloads the content and displays normally, but when I click again, it doe...
asked by 21.10.2016 / 19:25
1
answer

Execute an .js file

I'm doing a JS course and created an .js file in var/www/html/js/index.js . But when I try to run the file in the browser http://localhost/js/index.js it does not execute! Just show me the code I wrote in the browser. This is my...
asked by 10.10.2016 / 15:04
1
answer

Get names of all fields with the required tag

I want to get the name of all fields with the tag required and test one by one, if one of them is empty, I enter the name in an array. This question resembles some things with this old question mine, but the context is different....
asked by 10.10.2016 / 20:09
1
answer

problem using regular expression to validate e-mail

Hi, I'm using the following regular expression to validate an email field: var filtro = /^[a-zA-Z0-9.!#$%&'*+/=?^_'{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/; The functi...
asked by 27.02.2017 / 18:40
1
answer

Enable Hover by javascript

Hello everyone, it's the following: I've created an html that contains an image, a text and a button; The image has a transition that makes the image rise to some extent; Text has an opacity when I hover over it; What I need is that w...
asked by 14.11.2016 / 17:44
2
answers

Field mask input [duplicate]

Hello I have an input where I enter a value in currency $ 1,000.00, I want the field to have a mask to help the user in the fill, but I want the javascript does not take the value with the mascara, but without the mask is displayed on the c...
asked by 18.11.2016 / 20:05
1
answer

Creating reports with ASP.NET MVC and AngularJS [closed]

My backend is with C# / MVC , in frontend usage Angular , I got to a point in the project that I need to create reports. How to generate reports in web environment? Which tool do you use?     
asked by 23.01.2017 / 11:30