Questions tagged as 'javascript'

1
answer

Date.UTC configure javascript time zone

I am entering data to a graph, what happens when I bring the data and enter it in the Date.UTC function it adds me one more month giving me an erroneous date example: Date.UTC(parseInt(val.year),parseInt(val.month),parseInt(val.day), parseInt(...
asked by 08.10.2018 / 15:57
1
answer

How can I access the attributes of this object in javascript?

I am rendering configurations in an app, so from ajax I get this object. When I try to read it I can not because I do not know what the syntax is for doing it. res.data.0-MenuComponent res.data.'0-MenuComponent' try with those two...
asked by 27.09.2018 / 23:40
3
answers

How can I read a key that is formed by id _ name in javascript?

I try to read a variable from a json. But this variable has the following syntax. "id_nombre":{ Variables, } Looking at a serious example: 0_seccion:{ variables } My problem is that I do not know how to access this json. already try wi...
asked by 27.09.2018 / 23:00
1
answer

Load data in a table without ajax

This is the first question I ask in this medium, I am new in terms of WEB programming and I am costing certain things. I have a problem when loading data, to see if I can explain myself: I'm using php and javascrip for a university projec...
asked by 09.10.2018 / 21:58
2
answers

Eliminating cross repeated elements in an array of objects

tHola capos del JS I have a terrible doubt and I would like you to guide me so that I can resolve it. I have the following arrangement of objects where I must eliminate the crossed elements between "from" and "to", which are repeated. In what...
asked by 11.10.2018 / 23:50
2
answers

Table hours JavaScript

I have a problem generating the hours in a JavaScript table, I use a for to add the hours in pairs but I do not add anything, the same number is repeated again and again, and another problem would be like writing the days of the week in the top...
asked by 13.10.2018 / 20:07
1
answer

Obtain repositories of a GitHub user with Javascript

How about? I wanted to make a query because I'm wanting to show the repositories of a GitHub user and I do not know what is not right ... In the console is not pulling any error. The Javascript code is this: function getRepositorie() { va...
asked by 03.11.2018 / 21:35
2
answers

Wait for Server response in Javascript

I want my <script> not to continue running until I get the server's response and do what it has to do, I'm using native browser Javascript, that is, without frameworks or libraries or anything. <script> function run(...
asked by 05.11.2018 / 17:33
1
answer

Execute script with InnerHtml without using eval ();

I'm inserting a <script> at the end of the body with an innerHtml, but the script is not executed. I can not use the eval () function, because it will not pass the fortify. How do I make the script run? This is my main problem .....
asked by 05.11.2018 / 12:32
1
answer

HELP WITH CONDITIONERS (IF ELSE)

I am learning JS online and they ask me to do a program where the following is done: Ask at least five questions Maintain a record of the number of questions the user answered correctly Provide a final message after the test so that the...
asked by 03.11.2018 / 00:48