Questions tagged as 'javascript'

1
answer

How to make edit button work in a modal window?

I'm not understanding how to make the "Edit" button work within modal ... Screen (clicking on details opens this mode where you have the edit button): Mymodal: informationcontainedwithinthemodal:     
asked by 27.08.2018 / 16:00
2
answers

Calling functions in ngClass

I would like to call functions in ngClass. I can only call the function, and if I want to call other classes it does not catch, its just put the function in the class it can call (ng-class="styleClass (5)"), but I want some classes always and ot...
asked by 30.07.2018 / 20:20
1
answer

How to read to the end of the file with JavaScript - Uri Online Judge

In% with% I'm using the uri online judge platform, however, I did not find anything about reading up to the EOF (End of File) in javascript. Could anyone tell me how to read up to the EOF with javascript?     
asked by 31.07.2018 / 17:20
1
answer

How to make a column with always fixed data in a DataTable? MVC JS

Hello. I have a DataTable that is returning BD values, however I need only one column to always have fixed values that will not come from the DB (in this case, it is a column with the months of the year). However, I can not change the structure...
asked by 31.07.2018 / 17:51
1
answer

Get attribute within an array in MongoDB

Hello, friends. Good night! I'm having a problem in developing an api, I need to query some attributes within an array of a Schema in MongoDB to add them to an email in a request. Can anyone help me? follows the Schema model below: I need...
asked by 31.07.2018 / 02:46
1
answer

Property Value Access

I have a method where I need to get the number of each table, but, the return is always the length of the property and not its value. If I leave only one table the method correctly returns the value of the property, however if I add more tables...
asked by 30.07.2018 / 23:08
1
answer

Return chosen label when clicking on any column of chart - Chart.Js

I have a Dashboard made in PHP and I use the Chart.js library. In the Dashboard, I have some graphics that are fed into PHP, like in this example: AndI'mhavingaquestion,whenIclickonsomecolumnofthegraph,IwanttogetitsnameanddisplayitinanJ...
asked by 24.07.2018 / 16:48
2
answers

Mouse Event on Two Screens [duplicate]

I have a screen with red background, clicking on it opens a new one with blue background. This blue background screen should trigger an alert when clicking on it, but it is not happening. Could someone tell me? NOTE: This is just a simpli...
asked by 31.07.2018 / 18:16
2
answers

Calculation Error in JavaScript

In a calculation made in javaScript I am having the following problem, I have tried to solve in several ways without success, I need to do a simple math operation and in javascript it gives a difference of 1 cent. The calculation would be = (...
asked by 31.07.2018 / 16:39
1
answer

appendChild is not working

I'm trying to pass the array elements with for (of) to the html elements I created by js. The problem is that when I try to put the created in the js inside, using appendChild, the error code. Home This is the javascript: var listElement = d...
asked by 19.07.2018 / 19:43