Questions tagged as 'html'

1
answer

Calculate dimensions of an image using jQuery

I would like to know how to calculate the size (width and height) of several images using jquery, I would like to validate those sizes. This is the script that I have up to. /*jQuery*/ var ancho; var alto; $("img").each(function(){ ancho = $...
asked by 25.10.2017 / 20:20
1
answer

Missing ")" in JS [closed]

In the browser console I get the following error when I hit the button. The function that accesses when giving click is responsible for not allowing a created window to be re-dimensioned. Can someone tell me what the syntax error is? fun...
asked by 26.10.2017 / 18:05
2
answers

Group result by column in response of AJAX PHP

I have the following Table in the database, I want to retrieve it to generate a report: I'm recovering it with the following function statement in php: #BUSCAR CAJA Y BOLSAS public function todoReporteModel($datos, $tabla){...
asked by 22.02.2018 / 21:18
1
answer

Selector this + option

I am trying that when the Change event is launched in a select with the same class as others, the value is retrieved, and if it is equal to one data then select another of the same select. My problem is in, I do not know how to create the select...
asked by 23.02.2018 / 23:20
2
answers

colored background with inline display

section{ width:1300px; height: 350px; display: inline; } #img1 figcaption{ text-align: center; } section #segsection{ width: 1300px; height: 300px; display: inline; background-color: yellow; } <section> <...
asked by 22.03.2018 / 15:27
3
answers

Prevent overflow in input file with long file names

I have tried to prevent a div from overflowing because of a very long file name but I do not succeed: input{ text-overflow: ellipsis; white-space: nowrap; } div{ background: #456; padding: 40px 10px; } <div> <...
asked by 28.02.2018 / 20:30
2
answers

Center div below another div in CSS

I have this HTML code: <body> <div class="center"> En este sitio web se usan los siguientes servicios: <dl> <dt>S3</dt> <dd>- Usaremos un S3 Bucket.</dd> </dl> Para comenzar, por favor hag...
asked by 18.03.2018 / 05:02
1
answer

Count number of php rows

I'm trying to count the number of rows based on a WHERE in php but when I execute it it throws me an error. Code to count public function mostrarRollosModel($tabla){ $stmt = Conexion::conectar() -> prepare("SELECT cod_p...
asked by 20.03.2018 / 22:35
3
answers

warning: mysqli_query expects parameter

Hi, try to declare these parameters but it seems to cause me an error, originally they were all mysql and I changed them to mysqli. Could you tell me where I'm wrong? LINES OF THE CODES THAT CAUSE THE ERROR $sql2=mysqli_query("SELECT...
asked by 15.02.2018 / 22:32
1
answer

Vertical scroll by parts

I would like to know how to program with html, css and js .a custom scroll Go from the cover to the next page with a single movement of mouse roulette. This is what I want link And repeat with all the sections, to make the website more usab...
asked by 17.03.2018 / 13:50