Questions tagged as 'javascript'

1
answer

How to use attributes getElementsByTagName and setAttribute

I have a form of two fields with I want that when I press a button both fields are placed in red background, until now I have this code but it does not work function validacion(){ var valor = document.getElementsByTagName("input"); val...
asked by 04.01.2018 / 19:48
2
answers

Angular data model2

Good morning, I have the following JSON: { "tempext": [ { "attrName": "tempext", "attrValue": "17.054.495", "recvTime": "2017-11-26T18:45:00.000Z" }, { "attrName":...
asked by 12.01.2018 / 16:05
1
answer

Question about classes in javascript

Hello, I do not understand Invoice that is exactly ... I know that it is a template for all others that I can create with new, but Invoice itself is a object or a function with constructor method, get and set, because if I do console.log tell...
asked by 12.01.2018 / 20:27
1
answer

Problem with if statement

Hi, I'm good at this and I do not know how to do it or by hitting enter or clicking START, the code works, enter but not click = > if (e.keyCode == 32 || document.getElementById ('validate MatchForm'). onclick) { let body = document....
asked by 10.01.2018 / 15:55
1
answer

output orders insert several inputs and send to the controller LARAVEL

I need a little help with this, I'm a little new in laravel and js, what I want to achieve is to insert several inputs (products) to an output order (or detail) and send it to the controller. I have the js to insert several records of inputs (th...
asked by 10.01.2018 / 14:12
0
answers

Call Ajax my project slows me down

I have the following call ajax; function notificacion_json(){ /* Cargar notificaciones_respuesta_solicitudes */ var resultado = document.getElementById("span_numero_notificaciones"); var xmlhttp; if(window.XMLHttpRequest){...
asked by 10.01.2018 / 16:08
1
answer

How can I group and add this type of array?

I have a question for hours trying to solve it but I have not found any solution. I have an arrangement that comes from a bd which is dynamic between months and quantities, which is to use it to show some graphs, what I need is to group the m...
asked by 10.01.2018 / 15:29
1
answer

Do not take css form

I have a problem with my page, it turns out that I'm trying to apply a style and all the elements take less the select I do not know what happens someone could help me with this, I tell you this error I get when I run it from the apache server,...
asked by 27.12.2017 / 14:45
1
answer

How to send a res.json () that is inside a for loop, using node (express) and ajax

I am working with NodeJS using express with this I have the routes such as POST and GET I connect to bd and make queries in the < strong> app , but I have a question about the following code: function getAllDatabas...
asked by 21.12.2017 / 14:20
1
answer

Does Vue.js always load all the templates on the client side?

Recently, I am venturing into the world of vue.js and although I understand all the components and things well, there is something I do not quite understand. When handling all the frontend from the client side, does this mean that...
asked by 21.12.2017 / 15:42