Questions tagged as 'javascript'

3
answers

How to receive a pdf file via ajax?

I am using this method to return a PDF file. It works normal if I call this action directly via URL: public ActionResult GerarProva(int idEpo, int numero, bool existeProvaGerada) { try { var relatorioBll = n...
asked by 18.08.2015 / 18:51
1
answer

Arrange JavaScript files for a project [duplicate]

I'm working on a Web System with multiple screens and they have different functions in Javascript and several apply to only one page. How do I organize Javascript files? What is the best practice? Create a file for each page Create a ful...
asked by 19.08.2015 / 22:52
1
answer

Input Range that increases text size

I'm trying to create a <input type="range"> that increases and / or decreases the size of the text as we move it to the left or right. So far so good, I've been able to create this effect, but now I wanted to put a number to indi...
asked by 15.07.2015 / 10:37
2
answers

Gulp + Bower - How to import the components installed by Bower for my final project

I'm starting to manage my components with Bower and I have a question: I use Gulp to perform tasks such as compiling my less files, concatenating javascripts, but since the Bower components are inside the bower_components I do not know how...
asked by 19.07.2015 / 20:41
1
answer

How to calculate and display the sum of dates instantly?

Expensive, I have a situation where I need to create a lease. In the fields, the person who is entering the data has the options: * months / * start date / * end date I would like to know how to do this in JavaScript, with instant updat...
asked by 28.03.2016 / 22:28
2
answers

Variable undefined

If I put the variable contador out of function , the return on alert is undefined . But if I put it inside function , it returns the correct value but does not increase. What am I doing wrong? var qtdeCampos = 0; var c...
asked by 31.03.2016 / 23:00
2
answers

How can I get the value inside this td

Hello. I need to get the value inside a <td> through its selector. This <td> contains the total value of a purchase (within a checkout). Using the console: document.querySelector(".monetary") In this case I g...
asked by 30.03.2016 / 17:25
1
answer

Scroll to the next section

I already researched in several places but until now I have not found how to do this effect. What I need is for the scroll to look exactly like this site: link That is, whenever the user scrolls the site will go to the next section....
asked by 17.03.2016 / 17:26
1
answer

Create link to download an audio recording

I've taken a JavaScript net example that captures audio from the device and with a button on the page you can record audio and export it: In this code we have the buttons: <button onclick="startRecording(this);">record</button&...
asked by 24.11.2015 / 18:06
1
answer

DropDown Waterfall

My problem is to pass values to controller at the time of an update. I can make the cascading all right. Follow my code. First DropDown : @Html.DropDownList( "idCanalIndicadoresMassivo", ViewBag.idCanalIndicadoresMassi...
asked by 27.11.2015 / 15:27