Questions tagged as 'html'

3
answers

Alert message - HTML - CSS [duplicated]

Is it possible to customize the alert message so that instead of the alert("mensaje que deseemos); coming out I see the corresponding <input> of a red color to denote that the field is wrong? Or could you also center the...
asked by 08.11.2017 / 23:12
1
answer

scrollspy de materialize

<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script> <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css" rel="stylesheet"/>...
asked by 07.11.2017 / 20:39
3
answers

Clone function with Switch Case

I want to be able to clone the table with the functions cargar_precio and operacion . When writing a name in the input ITEM show me in the input VALOR_RE_MO the price of said ITEM , The script clones correctly, a...
asked by 08.11.2017 / 16:10
2
answers

Navigate array of objects until they reach their properties in js

I have a function in which I pass an element of type string and I want to compare it with a property that each object that makes up the Array have. If it matches, it returns true and false. function Carta(id, marca, puntos) { this.i...
asked by 24.11.2017 / 17:55
1
answer

Canvas HTML - How to load an image to a Canvas correctly?

Good, I have that problem in my code. I have managed to load an image on a canvas, but the problem comes when the images are very large . What's going on? The image appears on the canvas but cut (usually appears half up or something like that)....
asked by 24.11.2017 / 21:55
3
answers

How to align an image from Javascript?

Good morning, I'm trying to align (center) an image, but I can not get it. What am I doing wrong? var imagen =document.createElement("img"); imagen.src="ejemplo.jpg"; imagen.width="500"; imagen.height="300"; imagen.align="middle";...
asked by 25.11.2017 / 20:45
1
answer

redirect from http with and without www to https

good day, I'm trying as I mention in the title but I do not achieve it, what I want is to go from http either (with and without www) and link a - > link as you could through htaccess this is what I have so far and it works but only wit...
asked by 22.03.2018 / 17:31
0
answers

How to Display Result of XML in HTML table

I have a page that displays a query in xml and json , I would like to know how I can show that information in an html table, either on the same page or in a new one. I leave the code that I currently have. $format = (isset($_GE...
asked by 23.03.2018 / 00:20
0
answers

Node JS + MySQL

I took as skeleton the code generated by Express JS and everything works fine. The issue is that when I show my page ... / one, it shows me the right result but only for about 5 ms and the content disappears. Do you know why this happens? I woul...
asked by 22.03.2018 / 20:14
1
answer

Clear comments in an HTML string with PHP

I have an html string and I need to delete the commented code in that string, that is, if I find: "código útil <!-- codigo basura --> mas código útil <!-- mas código basura --> Remove everything that is garbage for($cadenaHTML...
asked by 01.11.2017 / 20:45