Questions tagged as 'javascript'

1
answer

Template parse errors (Angular CLI)

I'm studying Angular by doc , but when I arrived in Add HeroService.getHero() , the application gave refresh and presented the following error :    compiler.js: 2547 Uncaught Error: Template parse errors:   Can not bind to 'hero' since...
asked by 09.11.2018 / 00:01
2
answers

How do I get my jQuery to scroll through this table correctly?

I created a script to go through the table and return a console.log of the content in it, but in the first few lines does not take the name of the Course, just the prices. I saw that in the table TD where it says RIGHT, it has a rowspan = 2 i...
asked by 08.11.2018 / 17:21
1
answer

Uncaught TypeError: Can not read property 'toLowerCase' of undefined

I try to get the values from a table and filter them, but for some reason the values are undefined and I have no idea how to solve them. <?php include_once("conexao.php"); if (isset($_GET["id"])) { $id = $_GET["id"]; $sql = "SEL...
asked by 09.11.2018 / 15:46
1
answer

Complete form without reloading the page

I'm trying to implement a page where the values of a table can be changed in the database of a system. When I select the name of the people listed, I call the function ola through onchange , which is working perfectly, but when t...
asked by 22.10.2018 / 15:30
1
answer

Getting information from a JSON and saving in SQL Server using JavaScript

I have this code, which returns the information I want and shows on the page. Now I would need to save this information in a SQL Server database, how would that be possible? It's been really hard for me since I've never worked with API, JS...
asked by 22.10.2018 / 23:40
1
answer

Extending javascript function with parameters

I would like to know if it is possible to extend a javascript function without having to repeat the parameters, as if it were a constructor, function DefaultRun(args1,args2) { } function Run(args1, args2){ DefaultRun.call(this, arg...
asked by 23.10.2018 / 21:01
1
answer

Ajax not populating select on second request

Hello, I have some ajax requests on my page that populate a select correctly, however, I need to do it again in a modal update, but the same ajax request returns nothing. This is the code for the first request: <div class="form-gro...
asked by 16.10.2018 / 18:01
1
answer

Can SSL certificate be by IP instead of Domain?

I'm developing a php / javascript application that makes use of the camera via browser to read bar code, in the tests I did locally it works in a good one, when I put it online it does not open the camera and does not ask to open, I agree it's b...
asked by 17.10.2018 / 22:37
1
answer

Add +1 min to the countdown timer - With timer already finalized or in progress

Each time I click a button, I want to add +1 min to the timer. <Button onPress={this.somarUmMinuto} title="Somar 1 minuto" color="#007FFF" accessibilityLabel="Somar 1 minuto" /> Code used to set the countdown: inicia...
asked by 17.10.2018 / 18:26
1
answer

How do I change a row in the data table when I select it?

In this code I can select it and in the console.log have access to the information, but I do not know how to change it: $(document).ready(function () { var oTable = $('#tableproduct').DataTable(); $('#tableproduct tbody').on('clic...
asked by 18.10.2018 / 22:12