Questions tagged as 'javascript'

2
answers

Doubt with passing php value to javascript

On the page that I show below I am calling a php to pass the value of a field to me. When I do onclick in a row of my table the process works correctly, it brings me the comment field. In an HTML segment I also have a button, which I need to...
asked by 13.08.2018 / 19:59
1
answer

problems with accessing properties of an object in a request graphQl

Hi, I'm working on a reactive project with apollographQL and I'm having problems accessing the properties of the object that comes to me from the graphQl server with the mongodb database. Declare a test object in the same component and if I can...
asked by 13.08.2018 / 18:04
2
answers

Does Array.forEach not work in javascript?

I tried to iterate an array like this: import { Vec2 } from './Math.js'; import Physics from "./Physics.js"; export default class Entity{ constructor(x, y, w, h) { this.pos = new Vec2(x, y); this.scale = new Vec2(w, h); this.vel...
asked by 12.08.2018 / 22:45
1
answer

Keep popup child ahead in firefox and chrome?

I'm seeing how to leave a child window on the parent so that you can not interact on the parent window without closing the child. I have tried with some scripts that check if the window has focus, that they use the SetIntervale etc but it doe...
asked by 29.08.2018 / 17:13
1
answer

Correct way to hide an HTML input using javascript

I have my html code has two input: payment and total I have implemented a script with the keyup method to verify that the payment is greater than the total and show the input of type submit. The input of type submit is shown only if the payme...
asked by 13.08.2018 / 00:22
1
answer

Change Column by Row when typing Excel with Java

I try to change a column to put it as the subject of the rest of the columns, this is the code I have so far, which generates excel. while (res.next()) { Row filaDatos = sheet.createRow(numfilaDatos); for (int...
asked by 29.08.2018 / 19:27
1
answer

Can not register through AJAX

Let's start with my file called "registro_test.php" <?php include_once 'header.php' ?> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(function()...
asked by 23.08.2018 / 15:21
1
answer

How to make an AJAX request to php? (With JavaScript Vanilla)

I'm trying to make an AJAX request to a method in my Brands driver. const filter = () => { let data = {marca:"a"}; fetch("www.algoalgo.com/marcas/marcas/filtro",{ method: "POST", body: JSON.stringify(data) , headers: { "...
asked by 23.08.2018 / 15:11
1
answer

Browse java script object

I had previously done this question, and their answers did work in the javascript console, but this is my complete example, and I am applying what they recommended, and I have not yet been able to access the numbers or the array data. What do I...
asked by 22.08.2018 / 18:31
1
answer

How to make ajax queries from a js file in a Wordpress widget?

I'm making a widget for wordpress and I need to make ajax queries to a file that is in the same folder. If I just put the name of the file look for it in the link where I put the widget, for example, if the widget I put it on the page www.mido...
asked by 23.08.2018 / 18:09