Questions tagged as 'html'

3
answers

How to convert a JSON file to a table with dynamic columns in HTML

What happens is that I want to read a JSON file and that as soon as I read it, I created a table from the file with its respective fields. As for example: { "nombre":"Ana", "edad":20, "Hobbie":"Cantar" } And the table is created: Name Age H...
asked by 10.03.2018 / 17:53
2
answers

Select field with javascript (no value)

Good to all I would like that when loading a page with its form, a certain text field is selected without having to click on it, this in order to try to avoid using the mouse, I have googled but in everywhere comes the typical document.getElemen...
asked by 26.01.2018 / 16:14
1
answer

btn.eventListener is not a function!

When I want to add an event listener to an html object, the eventlistener is not a function error appears in the browser console, the code is as follows. This script is executed in a simple html file. var btn = document.getElementsByClassName(...
asked by 28.04.2018 / 23:30
3
answers

Print directly to printer connected via JS or PHP

Imagine that I have a web page and I want to print a receipt for the client, that clicking on a button "Print" of the page gives me the option to choose the printer to print the PICTURE that you see on the screen. Test code: <!DOCT...
asked by 08.01.2018 / 00:02
2
answers

Link does not work because it is inside two pseudoclasses with content: ''

I have a div that has both a before and an after with content: '' to be able to animate the edge of this. But I find that by putting a link, this does not work. There goes what I have done: .inner-block { overflow: hidden; position...
asked by 18.01.2018 / 11:50
2
answers

Problems showing data from an array in a select in Angularjs

I have the following array in: var GruposSanguineos = [ { Nombre: '0 RH(+)', Valor: '0+' }, { Nombre: '0 RH(-)', Valor: '0-' }, { Nombre: 'A RH(+)', Valor: 'A+' }, { Nombre: 'A RH(-)', Valor: 'A-' }, { Nom...
asked by 24.08.2016 / 15:45
2
answers

How to avoid sending a form

I want to know how to avoid sending a form. What I need is that if the sum of number2 with number3 is equal to number1 the form is sent but if it is different that the sending of the form stops avoiding the values in the input tags are deleted....
asked by 13.09.2017 / 00:56
1
answer

Problem with Bootstrap form

I have 2 form fields that are 2 input text. One does as a prefix of the name and the other is the name. This is the look: What you need is to remove the space between the first input text (the disabled one) and the second one, since the...
asked by 07.12.2017 / 08:13
3
answers

I need to add a php text

I need to add a text that I define in a textarea that is at the end of the code but when wanting to enter it for the first time I get an indefinite variable as I do to correct this attached code <?php session_start(); if (!isset($_SESSION[...
asked by 28.11.2017 / 17:20
2
answers

A presentation like the one on the Bootstrap image?

I want to use div to do this same training, saven of some method? or if you do not know with tables it will be then ..     
asked by 24.10.2017 / 23:08