Questions tagged as 'javascript'

1
answer

Unable to add header authorization: basic user: password (base16) vue-resource

I have an application in VUE in which I make requests to two APIs, one is mine and the other is from a third party, with mine I have no problems, I can authenticate and make requests correctly, in the main.js I put defect an interceptor that wil...
asked by 02.08.2018 / 21:27
1
answer

Problems with printing select with each

I am currently consuming a API , everything is fine but when I want to show the values in a select I do not print anything. La Api returns the following: { "producto": { "id": 1, "codigo": "PRO-0001", "nombre": "D...
asked by 03.08.2018 / 02:58
2
answers

Problem when merging two objects in JavaScript

I have to merge two objects into one, I put simple examples of what I need to do: var obj1 = [ { Prop1 : 'Valor 1A', Prop2 : 'Valor 2A' }, { Prop1 : 'Valor 1B', Prop2 : 'Valor 2A' }, { Prop1 : 'Valor 1C', Prop2 : 'Va...
asked by 02.08.2018 / 12:09
1
answer

When I make display that scrollie so that the element can be seen (without jquery)

Basically I would need your help so that when I press the question button and the answer opens scrollie so I can see the answer on the screen. Since what happens when I open the third question I can not see the answer and I have to go down scrol...
asked by 24.09.2016 / 19:56
1
answer

Add items in two lists at the same time

I have the following code that allows you to pass an element, in this case inputs, from one div to another by a button or drag and drop. The idea is that when an element of div1 is passed to div2, it remains in div1 but also passes to div2...
asked by 10.08.2018 / 16:37
1
answer

Attribute set to false comes out as true

I'm trying to create a function in Javascript with which to check the inputs with the required attribute in true. The problem is that although this is specified as false, the result it gives is true. Sample code: var serial_no = do...
asked by 09.08.2018 / 09:01
1
answer

Notification JS, can it be customized?

I have followed these steps to make a notification on my website: link link And this is what I have: $(document).ready(function() { theBody = "" + "<div style='background: #0055a0; color: #ffffff'>" +...
asked by 09.08.2018 / 17:43
1
answer

Problems when ordering an array in javascript and a chat that I am creating

I'm creating a chat with sockets on nodejs that say it's very good. Then I create an array: let nicknames = []; that will save the names of users so that later the frontend will be in charge of showing them in a list. That works perfect for...
asked by 23.07.2018 / 05:24
1
answer

What does ENOSPC error mean when running a server?

Hello when running an application on localhost I get the following error. Before it did not happen, I modified the file server.js where the port runs, but never before had this happened to me. The port runs as seen, passes build, gulp and the pa...
asked by 20.07.2018 / 20:51
1
answer

How do I double click on some html element and that I'm directed to a new page with javascript?

This helps me but what interests me is linking to a page in this case a form, but I would like to know how it can be done in javascript within the dblClick function <script type="text/javascript"> $(document).ready(function(){ $...
asked by 07.08.2018 / 07:06