Questions tagged as 'javascript'

3
answers

Php as a function of javascript

Good evening, someone to guide me, I want to execute PHP code from a function in js, I can do that. I have tried and it just throws the result in an input text, but it does not send me the alert I can do this, Thanks in advance. function f...
asked by 12.06.2017 / 03:47
2
answers

How to order an area by means of your property in javascript?

var apartamentos = [{ fecha_ingreso: "10/10/11", tipo_inmueble:"En venta", precio: "1000", titulo: "Edificio", metraje: 3, ubicacion: '14 Avenida 16-01 Zona 10. Guatemala, Guatemala', zona: "Zona 3", habitaciones: 3, parqu...
asked by 08.06.2018 / 23:49
1
answer

Pass the html form structure to json

I'm trying to pass a html form structure to json and of course the idea is that the html form is dynamic since every time it can be different and I need a code that passes to me json the elements of the form and its characteristics of this For e...
asked by 31.05.2017 / 09:50
2
answers

Create buttons with jQuery and Javascript

If we want to create a button in HTML , we need a code similar to: <input type="submit" value="Numero parrafos" id="num_parrafos" name="Numero Parrafos"/> How would the code be moved to jQuery or Javascript? To avoid the need to mo...
asked by 03.06.2017 / 16:19
2
answers

Problems with the mozilla browser

I have a problem; I have a method to generate an excel from a table and it works but in Google Chrome, however I will try in mozilla and it does not work ... Any suggestions? CODE <title>Reportes Equipo</title> <meta chars...
asked by 17.05.2017 / 23:40
1
answer

How to make a correct if within a foreach?

I have an input of type text there is entered an id to verify if you existed or not. list.forEach(function(a) { if (b == a["id"]) { g["setstatus"](true, a["id"], f); return c(true) alert("Correcto!"); } g["s...
asked by 22.05.2017 / 23:52
1
answer

Error in Javascript ternary operator

// Write JavaScript here (function() { var contador = 0; document.getElementById('play').addEventListener("click", identificar); function identificar() { contador === 2 ? play.disabled = true : contador++ } }); <!DO...
asked by 23.05.2017 / 19:31
1
answer

Components are not displayed in ReactJS

Hi, I was testing the export by default in reactjs , but when using the server that brings npm , it does not visualize me the components, or anything like that. This is the code I use in index.js . var React = require('react'); var...
asked by 19.05.2017 / 15:20
1
answer

Block function call in parent div from a child div

It happens that I have a parent div which calls a function sending in this two parameters (one of these is 0 since it will be fixed) and within this div I have several divs which call the same function but with the two dynamic parameters : <...
asked by 22.05.2017 / 19:30
4
answers

How to order IF and ELSE IF to check values taking into account the order in which they obtain

I have three text boxes called DATO1 DATO2 DATO3 , I would like to check that they were not empty, the problem that arises is that I want to check whether they are filled in order or not. (DATA1 -> DATA2 -> DATA3) Since, since I have th...
asked by 15.03.2017 / 13:25