Questions tagged as 'javascript'

1
answer

JavaScript function doubling data when loaded dynamically

I have a function called a calculator to which the page loads dynamically several times (whenever the user calls the calculator page). When you load the first time it is normal, but the more you load the page, the more values multiply. Ex:...
asked by 06.12.2017 / 15:30
1
answer

Page bottom of page

I have a system that shows 8 data per page, my problem is that the pagination when only has a data on the page or 2 is on the data side, type: data 1 - data 2 - Page 1, I wanted it to stay at the end of the page as it happens when you have 8 dat...
asked by 06.12.2017 / 13:34
1
answer

Why does this green ball get back in animation using this conditional?

I have a javascript code that makes an animation of a green ball that moves until it reaches the limit of the width of the window, causing the ball to return, make the opposite way, until it reaches the other side of the window, and then come ba...
asked by 08.12.2017 / 22:58
1
answer

Fit file exported from html to pdf

I have taken an example of internet here: JS Fiddle to generate PDF from data that is in HTML . However, in my case, the data was very misaligned .. let's see; MyHTML:<divclass="panel-body"> <table id="idTabela" cla...
asked by 09.12.2017 / 21:56
1
answer

added text with append does not respect div

I have a list that its elements are added with the jquery append and the added text does not respect div and nor list boundaries: css:#list_arquivos{list-style:none;}#list_arquivos.arquivo{display:inline-block;margin-left:20px;margin-bottom:...
asked by 10.12.2017 / 23:39
1
answer

Add data in a single Json

Hello I have a problem and I'm having a hard time solving it .. come on I have 4 JSON files exactly the same with 22,000 product records, same parameters and everything, the only difference between them is that each has a different stock...
asked by 25.11.2017 / 05:31
2
answers

maskMoney does not work in input inside table

Here I call the mask using class $(function($){ $(".dinheiro").maskMoney(); }); In the form's input it works normal, but inside table does not work. function addProd(obj) { $('#add_prod').val(''); var id = $(obj).attr('data-id'); var...
asked by 30.11.2017 / 03:53
2
answers

Exchanging contents of a div by an html file

I'm doing a simple portfolio that will not need any Framework like angled or react, which I would like and do something so I could create the separate html files and a main just by swapping the page content with JavaScript. Something like that,...
asked by 21.02.2018 / 14:18
2
answers

Button does not point to another page

I have a button that when clicked on it, localStorage takes its id, there it plays the id to the other page, but when I click on the button it is not pointing to the other page, it is only changing the url to the name of the page that is more "b...
asked by 27.02.2018 / 19:27
1
answer

Event when user closed the tab / page

I need to know how to execute a function the moment I close the page , for example I want to send an alert to the user as soon as he leaves Searching here on the site I found this code: window.onunload = function() { alert('Valeu, fa...
asked by 10.02.2018 / 00:25