Questions tagged as 'html'

1
answer

Get the image encoded in base64 (jsignature)

I need to get the image with the signature made with the jSignature plugin, but when it comes to showing or getting the path / string / image encoded in base64, it does not work for me. <script src="https://cdnjs.cloudflare.com/ajax/l...
asked by 07.02.2018 / 09:06
3
answers

Modify and save text files with PHP

I have some problems to be able to save and open text files with PHP, I am using the following code: <?php if($_POST['submit']){ $open = fopen("frases/frase_del_dia.txt","w+"); $text = $_POST['update']; fwrite($open, $text); fclose($ope...
asked by 11.05.2017 / 18:55
3
answers

How to consult an arrangement using one of its fields and display it in html [closed]

I have the following ARRAY var array = [ {"productoId":"4","categoriaId":null,"marcaId":"2"}, {"productoId":"87","categoriaId":null,"marcaId":"2"}, {"productoId":"175","categoriaId":null,"marcaId":"20"} ] This is received by a...
asked by 10.05.2017 / 17:03
2
answers

Add in real time

I'm trying to make an invoice that adds me the input in real time, and basically "I have it", but what I need is that it is not "mandatory" to fill an input to show me the results, which as that is adding values are shown, not at the end when th...
asked by 19.04.2018 / 01:17
2
answers

Send file by AJAX [duplicated]

I am trying to send a% file% by ajax , but the input file returns an error. How can you send "file" files by PHP ? THE HTML CODE <form id="form" enctype="multipart/form-data"> <input type="file" name...
asked by 05.01.2017 / 20:46
1
answer

Fix a table header in php

I have an html table and I want to fix the header but at the moment of doing it, I reduce the size of th and the entire table is unbalanced thead,tbody tr{ display:table; width:100%; table-layout:fixed; } thead {     position: fixed;     ...
asked by 02.10.2018 / 19:36
4
answers

Run one button only once

Hello friend, I would like to execute a button only once and that you can not click OK again <div class="modal-footer"> <button type="button" class="btn btn-default" id="btnCancelarPreviewFlashReport...
asked by 26.09.2018 / 18:47
4
answers

PHP does not show me the errors in form

Good morning, I am creating a form in HTML and PHP, and when sending it I want you to show me an error message if any of the fields does not meet the requirement. My problem is that it only stays in the first field name if I give Send if fill no...
asked by 20.10.2016 / 18:35
1
answer

How to pass data obtained from js to an input of html?

Well my question for some will be basic but it turns out that I am doing a program that increases a button pressed, all right up to here, the problem is that    I want that increment to be printed in an html input since this   I'm doing it wi...
asked by 01.10.2018 / 05:08
1
answer

Indicator of web-connected headphones

How can I know if I have headphones connected to my computer? My goal is to get it using HTML5 + JavaScript. The next page shows all the audio output devices, but there is no way to know if the active device is about headphones or not. li...
asked by 07.10.2016 / 12:53