Questions tagged as 'javascript'

1
answer

Align vertically the data of a row in a DataTable

I have a DataTable in which the Header is built using HTML and the lines are loaded and constructed using JavaScript. If you look at the image, the "Actions" column has a group of buttons that are aligned vertically correctly. Other columns like...
asked by 07.07.2018 / 15:26
1
answer

Only one chart is displayed per page

I have a page where I should display two graphics, and although the two are working, only the second graphic appears. No error appears, simply one of the two graphs appears as if the other did not even exist. Chart 1: <?PHP...
asked by 10.07.2018 / 15:10
1
answer

Doubt to add values with for in Javascript

I have the following PHP / HTML page: <?php include_once("conexao.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="w...
asked by 13.07.2018 / 19:15
1
answer

How to instantiate objects using literal object syntax?

I have a question maybe a little stupid, but come on, in Javascript, I can create an instance of an object stating thus, let's go in an example of a game, where I have to install bullets to shoot at the enemy: var Bala = { myFunctionInit:...
asked by 14.07.2018 / 02:08
1
answer

Add a new page and continue the interaction

I am generating a PDF with jsPDF, but when it reaches a certain threshold of the for interaction, there is a need to add a new page so that you can increment the values to the PDF. I am able to add a new page, but my for loop does not continue t...
asked by 20.07.2018 / 16:52
2
answers

How to display and hide Toogle within ngfor correctly?

listNotas() { this.service.getList(this.idAluno).subscribe( data => { this.error = data.error; this.list = data.message; console.log(this.list); }, err => consol...
asked by 19.07.2018 / 00:49
1
answer

Button back to the top is not overlapping the footer

I'm having the following problem, I created a button back to the top, placed it in the lower right corner and gave it a position:fixed in it. I'm making use of the jQuery library. The problem occurred when the scroll bar reached the end,...
asked by 21.07.2018 / 18:53
1
answer

Remove items and change total value

Hello, I have a problem that I am breaking my head at times and I just can not understand why this occurs ... In my application I have a cart that until then inserts products normally, adds the sum of its values and adds to the total, however, w...
asked by 25.06.2018 / 00:31
2
answers

Compare two objects in JS / JQuery

In my application, you have several categories of an item, In each category is created blocks related to that category, so far so good, but every time I click to change the category and return to the category I was, the blocks are replicat...
asked by 25.06.2018 / 18:43