Questions tagged as 'javascript'

2
answers

Move task - AngularJS

Hello, could someone explain to me how I can when I check the "Incomplete" activity checkbox to be sent to the "Completed" activity list? angular.module('TarefApp', []); // Code goes here angular.module('TarefApp') .controller('Ta...
asked by 02.09.2015 / 04:28
1
answer

Return list for ajax

I have this function to load some data, however the need to load a list and include in a table the function was this way: [HttpPost] public ActionResult CarregaProduto(string id) { try { var it...
asked by 19.11.2018 / 12:30
1
answer

I can not create a new client on the server

Good evening, I'm a student at JS, html. I'm trying to learn how I can do an inclusion on the server (I apologize if I describe with the incorrect word or term some step). I have to create a website to do a CRUD on the server. I have to implemen...
asked by 18.11.2018 / 01:05
1
answer

Generate new Error and get this error in the catch of the controller

In my API made in Node , I create the user from a service: exports.create = async(data) => { try { let verifica = await UsuarioModel.findByUsername(data.username); if(verifica) throw new Error('Já existe um usuár...
asked by 18.11.2018 / 23:01
1
answer

How to get data from a dynamic HTML table to make a record?

I have the following situation: I'm trying to register data from the Protocol Checklist , but this data is inside an HTML PivotTable, as shown in the following image: Whentryingtosavethisdata,onlythelastrecord(item4)ispassedintherequest...
asked by 19.11.2018 / 15:26
1
answer

How to return data from a json file in a growing way, different from the root of the objects? [closed]

I want to return data from a json file, however I want them to be printed on the page from the bottom up, ie the most recent data, which by default of the root are written from top to bottom in json, always appear at the top of the page, as a ne...
asked by 28.11.2018 / 17:18
1
answer

How to get the specific data of a JSON with Angle 2x?

I have an answer that I transform into JSON this way: const resposta = JSON.stringify(response); console.log(resposta); Give me feedback on console.log like this: [{"nome":"Ramos Janones","email":"[email protected]...
asked by 28.11.2018 / 17:08
3
answers

Give form submit with empty field validations

I have this code that does validation to a form if it has fields fields if it does not have it submit form: $("#btnAdd").click(function (e) { e.preventDefault(); var erros = 0; $("#formAdd input").each(function () { $(t...
asked by 27.11.2018 / 12:37
1
answer

Focus on a field with maskedinput

Good morning, guys ... I have a text field with recursive entries in my form. How do I after posting a typed value, clean it and leave it ready for the next entry? As soon as I type the first character of the next entry it displays the previo...
asked by 27.11.2018 / 13:57
1
answer

Select TD javascript

I'm developing a routine with a pivot table using javascript, where when I open the routine a button 'ADD TABLE' appears Whentheuserclicks'ADDTABLE'thetableheaderappearsandan'ADD'buttonthatisresponsibleforaddingrowstothetable. Theproblemisth...
asked by 13.11.2018 / 13:06