Questions tagged as 'javascript'

2
answers

Problem filtering items in a table in real time

I have to do a modal within which you have to perform a search and go completing the input that is generated. The information I look for in an API, here is the code: import React, { Component } from 'react'; import logo from './logo.svg'; i...
asked by 05.02.2017 / 17:44
2
answers

Help about an MVC playframework error. I am using Java, Scala, HTML Javascript

Help, I'm using MVC playframework I want to record data from a form using AJAX by sending it to a JAVA method, but at the time of saving it marks me the following error that is shown in the following . and it does not save the data. This is...
asked by 30.10.2017 / 15:51
2
answers

php enable table row

Good afternoon. the fact is that I have a table that is filled from a database and I need to place a checkbox that when I select it, I only enable that row, the php code of the table is: <?php $sql = "Select * FROM usuarios, estado, rol...
asked by 02.01.2018 / 19:10
2
answers

How do I read an array from JavaScript

I have an array generated from a MySql table through PHP, I want to use the script provided by Google to display on a map a marker from the latitude and longitude stored in the array. How would the procedure be, when I have the data of lat and l...
asked by 07.10.2017 / 17:18
1
answer

Avoid repeating the same functions JS / JQuery

How can I prevent the JS function from being repeated once per line? I mean, now there are three functions, but if there were 100 lines in the form I would like to have a single function for all and one line per line. $( function() {...
asked by 05.12.2017 / 22:45
2
answers

How to write a text in a file in order to make a chat?

My code is: <meta charset="UTF-8"> <style>body{width=100%;height=100%,margin=0,background-color=black,color=white}</style> <script> xhr=new XMLHttpRequest() name=prompt("Enter your nickname please.") new Fil...
asked by 02.11.2016 / 11:23
1
answer

How to add materializecss in react?

I have a project made with asp.net core with the template of react and redux, install the packages from npm of materializecss, which I am already pointing your files of .css but I have the problem that I do not know where to include or ca...
asked by 22.11.2018 / 12:27
1
answer

Add elements of an array and leave one

I have the following arrangement var cargos = [{ "TipoProducto": "Cargo", "Referencia": "IM", "Precio": 73710 }, { "TipoProducto": "Cargo", "Referencia": "IM", "Precio": 32856 }, {...
asked by 18.12.2017 / 15:08
0
answers

Pass text field value to php variable [closed]

How could I pass the value of a text field to a php variable without sending from a formulation I do not have much knowledge in ajax to say nothing     
asked by 31.10.2018 / 00:46
2
answers

Error "document.getElememtById is not a function" when trying to reference the value of a [closed] element

I do not get the result. function celsius() { var f = document.getElememtById("fahrenheit").value; var c = (f - 32) * 5 / 9; alert("La Temperatura: " + f + " Expresada en Celsius es: " + c); } <p> <input type...
asked by 01.12.2016 / 23:35