Questions tagged as 'javascript'

2
answers

I need to use javascript call functions from an append

The question is this: I have a <div> (content) that when doing a HOVER send a javascript function to show other <div> hidden. Also, those <div> hidden when you click on them also make a function....
asked by 26.05.2017 / 23:12
2
answers

how can I set the checked value to a checkbox by clicking on my button

$(document).on("ready", function() { mostrar2(); }); var mostrar2 = function() { var table = $("#tabla").DataTable({ "ajax": { "method": "POST", "url": "conection.php" }, "columns": [{ "data":...
asked by 07.06.2017 / 00:09
4
answers

How to call an api with JavaScript

I must make a Landingpage , and in this I must include 4 lines of 5 API products. How do I call that API from JavaScript and how do I just put 4 lines of 5 products? I have a page that is an API, and that contains some product...
asked by 13.06.2017 / 16:53
2
answers

Change color to a single element

What I want to do is that, when I move the mouse over a div between several with the same class, it changes color and the others stay with their initial style values. .cunitario{position:relative;float:left;margin:0.5% 1.5%;height:250px;...
asked by 04.06.2017 / 09:51
1
answer

My promise does not call then () on a karma test

I have a problem making mocks with promises for a test with karma: When I execute the "resolve (value)" of my promise, it does not jump to the then , does nothing, does not go to the "error", does not go to the "resolve" and the test is it r...
asked by 06.06.2018 / 17:22
1
answer

Problem with conditional

I have a problem with this code. It is a game of pasapalabra. It consists in guessing the words. I have two buttons, one to validate (valid if the answer is correct or not) and another that passes the turn. At the end, when he asks again the una...
asked by 09.06.2018 / 00:10
1
answer

Why do I change the time when I insert?

Hello, I am handling a graph where the date and time are displayed and the parameters are clear, but at the moment of inserting the time and date, the time is advanced by 5 hours. To insert I take the time and date of the current equipment an...
asked by 19.07.2017 / 23:00
1
answer

How do I know which date range I am in?

I have a calendar made with the fullcalendar , I would like to know if there is an event that helps me to detect in what date range I am, that this event is executed every time I change the date, or if I click on the list of "week", "month...
asked by 10.03.2017 / 22:48
2
answers

Difference in Java and JS when creating a class and instantiating it?

I am using JS to perform an API and as much as I try I can not understand why, when making a POST request to create a user, it tells me that User is not a constructor. I am "new" in JS and I have in mind the creation of classes / constructors...
asked by 18.03.2017 / 13:24
1
answer

Show an image for an order GET Ajax (axios) of vue js 2 and show it by html 5

This is my code I want to make a call get of axios by vue and that after having the image that shows it in html getImage(param) { axios.get(param) .then((resp) => { return this.image = resp.d...
asked by 23.06.2017 / 02:23