Questions tagged as 'javascript'

1
answer

How to add the word "years" after calculating age

I have the following code: document.getElementById("data").addEventListener('change', function() { var data = new Date(this.value); if (isDate_(this.value) && data.getFullYear() > 1900) document.getElementById("idade"...
asked by 15.03.2017 / 02:43
1
answer

JavaScript function is only working with 1 or 2 variables

I'm using the following code to check if a radio is selected, if it is, perform such a function: <script language="javascript"> document.onclick = function setFries() { var apc = document.getElementById("10000_3").checked;...
asked by 18.02.2017 / 20:55
1
answer

Access denied for iframe printout in Firefox

I have a system where I need to print a PDF when I click the button. The url is constructed according to the shipping ID, so dynamically, I use an iframe that will load the data, and when loaded, I call a function to print what is in ifram...
asked by 20.02.2017 / 14:19
1
answer

Combo select does not work

There are days trying to solve this problem in the list of subcategories but, to no avail. Any solution ? Do not want to show subcategories in select NOTE: In PHP I made return $subcategorias->fetchAll(\PDO::FETCH_ASSOC); when I too...
asked by 19.02.2017 / 03:31
1
answer

Change the page gif

I'm creating a page where it will contain a gif that is looped, but I would like it as soon as I got to the end of the first loop to replace the gif with another and so on ... to do that with javascript or something the type? where do I find the...
asked by 17.02.2017 / 19:22
1
answer

Session getting open when I close the browser

I have a user control that stores a list of logged-in users on the system. Together with each user, I keep the id of the session that is logged in. Each session lasts around 20 without the user tinkering with the system. I do not allow the same...
asked by 07.04.2017 / 14:56
1
answer

Django formset, calculate total with JQuery

I have my order items being displayed with formset, the quantity and price columns are editable. I can not calculate the total after changing the price or quantity. I can identify the value typed by pressing enter, but how could I get the price...
asked by 07.04.2017 / 05:04
1
answer

How to hide a button on the Ionic / Angular after it is clicked with ng-click?

I have a button, normal, with an ng-click calling a function: <button class="button button-full button-balanced" ng-click="fechaPedido(pedido.observacao )"> FINALIZAR PEDIDO </button> I would like it to be disabled o...
asked by 06.04.2017 / 17:22
1
answer

Pass variable to Javascript for Controller SpringMVC

I would like to pass one (or more) variable to the SpringMVC controller    login.html <form id="form-login" method="post"> <div class="log-input"> <div class="log-input-left"> <inp...
asked by 06.04.2017 / 21:45
2
answers

How to call a javascript inside another?

Hello, how do I do the following javascript below, work on other .js hosted on my domain? I could simply copy the contents inside 5feaf8db752a6f16f5f860f0bc7c60.js and put in mine, but the same suffers frequent changes by the compa...
asked by 23.02.2017 / 03:20