Questions tagged as 'javascript'

1
answer

Component Vue is not pushing on the props

I am creating a simple task list with Vue.js, doing this using separate components in files. One of the components has the function of adding an object to an array, which is a props, but there is the error, the component is not able to identify...
asked by 11.01.2018 / 22:17
1
answer

Change visibility of an INPUT with PHP?

Hello, I have the following code, in it a Javascript function causes that when selected a certain value, the display of the input tag is changed, leaving it visible. It also has a PHP code, so that when the user submits the data, with some...
asked by 12.01.2018 / 18:51
2
answers

Cast TypeScript (ERROR TypeError)

The problem is as follows, through a service ( ModeloService ), I get an array of Modelo , where Modelo is a class, I happen to be unable to access the methods of this class, since cast in the service is not being done...
asked by 12.01.2018 / 19:25
1
answer

Javascript does not load function

I have a javascript file ' cep '. where it has a method called displays (); but when I run this method in my current file that is on the page next to HTML, it does not work, why? cep.js $ (document).ready(function () {      function exibe...
asked by 12.01.2018 / 22:13
1
answer

Chartsjs export PNG automatically

I need to export a Chart and Chartjs (version 2.7) to PNG I got in: link The only problem I need to push the button. Would anyone know what to modify in javascript? In the end I'm going to generate a report with FPDF in PHP, so I n...
asked by 24.11.2017 / 12:46
1
answer

Round value JSON

In my code, I get a JSON with a value (Example: 6647), and I would like to round it to only 1 decimal place. In the code, I get the JSOn content by the call: render(){ return( <div className="container"> <div...
asked by 24.11.2017 / 11:27
1
answer

How to enable or disable select closest?

I'm using Materialize CSS, I have a screen where I would like the Switch to be activated, the closest select becomes active so the user can select an option, and if the Switch goes back to inactive the select also come back to the...
asked by 25.11.2017 / 19:32
1
answer

Rename when exporting XLS

I have a table and when I export it to xls, it automatically goes under the name of download.xls, how can I edit the file name before downloading? To use the following JS code to export the table: var tableToExcel = (function() { var...
asked by 26.11.2017 / 04:51
1
answer

Shopping List ionic [closed]

Good night, guys. I'm making an application by ionic that consists of a cash register. The customer selects the item that will buy and at the end the total value of the purchase appears, but I have no idea where it starts. Anyone have any ide...
asked by 26.11.2017 / 00:00
1
answer

Problem in request via ajax

I have a JSP login page on my system, but when trying to perform a request via ajax to authenticate me, the form does not seem to be sending correctly, as it is redirected to the login page itself. Ajax Code: $( document ).ready( function...
asked by 26.11.2017 / 02:05