Questions tagged as 'javascript'

1
answer

AJAX return JSON size

I am having doubts about using AJAX, I am making a function to build a list according to some filters. Everything is working perfectly, I return the JSON and I mount the table. The problem is when my return contains a lot of data. It seems...
asked by 06.07.2017 / 16:19
1
answer

How to make an alert in the browser, using node.js

I'm beginner in node.js , I know the main function of the node is not this, however I want to learn a little more about this event, another doubt that I also have is if I can use common javascript functions in the middle of my code node. I...
asked by 27.07.2017 / 06:19
1
answer

How to adapt a JSON to create a table in pdfMake?

I need to get a JSON that returns from MongoDB and through a forEach generate a table and create a PDF, however I am not able to adapt the JSON to the structure of pdfMake, follows JSON: { "_id" : ObjectId("5978e9f71277a5dae49db945"),...
asked by 27.07.2017 / 16:27
3
answers

Visited in table tr

I have a table that when a tr is clicked, a screen is generated in the page itself according to what was selected, I need a css code (if possible), that when the tr is clicked it will have a different background of the others, when another tr is...
asked by 26.07.2017 / 21:15
1
answer

Create table inside cell

Hello. I have a script where I need to add in a td created via javascript a new table. I tried to create the new table directly using something like: var newTable = cell3_prod.createElement("TABLE"); I thought it would work but it caused er...
asked by 27.07.2017 / 20:01
3
answers

Delete records without refreshing page

I'm trying to delete records without having to refresh the page, however I'm not having success, the records erase but the table only updates if I give an F5, I'm trying to do this via ajax but it's not rolling, can someone give me a light ? Her...
asked by 27.07.2017 / 02:34
1
answer

Generate table contents through click action

I'm having a web project that needs to implement functions to generate the contents of a table according to the chosen item. For example in my dashboard I have a tower icon, and just below I have a table with all the equipment listed. The questi...
asked by 27.07.2017 / 02:09
1
answer

Scroll up after changing view [closed]

I'm using angular on my system I'm changing views with the command $state.go('main.shops.cart.success'); But problem is that when changes the view scroll continues below. I would like it when it changed view scroll to...
asked by 27.07.2017 / 14:56
1
answer

How to create an event for multiple elements?

Function: document.getElementsById("nome").onblur = function(){ //algum código aqui } What I do not like is: <input type="text" onblur="nomedafuncao(this)">     
asked by 31.07.2017 / 21:08
1
answer

Get value or name of the button with JQuery

Does anyone know how I could get value of a button using JQuery ? What I want to do is to use this value in a textarea , so it does not necessarily have to be value , name would also work. I want it...
asked by 04.07.2017 / 22:47