Questions tagged as 'javascript'

1
answer

Proportions slider (jquery.slider.)

I have a problem performing a slider with jquery.slider.js The slider works for me correctly The problem is the proportion of the image. It has an established ratio and to adjust the size it only lets me change the width. In function of this, th...
asked by 28.12.2017 / 16:44
1
answer

Javascript: Set default value using DateTimePicker

Using JQuery within Angular with the following code: $('#fecha_ingreso').datetimepicker({ defaultDate: new Date('08/08/2012') }); HTML: <input type="text" class="form-control" id="fecha_ingreso" formControlName="fech...
asked by 28.12.2017 / 20:16
2
answers

Cutting Box X and Z point of sale system (php mysql)

Previously my cash flow systems ( Revenues - Expenses ) handled it daily, but the problem now is to accommodate a system for shift tellers and the establishment works 24 hours a day. Turn day (8am - 8pm). Night shift (8pm - 8am). I have research...
asked by 30.11.2017 / 05:33
1
answer

How to SHOW a PDF brought from JAVA in HTML-JAVASCRIPT?

I need to SHOW a pdf that comes from JAVA. That's what I do with a servlet. function descargarCarta(){ console.log("entra a descargar"); var settings = { "async": true, "crossDomain": true, "url": "http://loc...
asked by 29.11.2017 / 21:35
2
answers

Validate if one of the radiobuttons are selected

I have this code: $(document).ready(function() { $("#myBtn").click(function () { if( $("#formulario input[name='radio']:radio").is(':checked')) { $("#formulario").submit(); } else{...
asked by 25.11.2017 / 22:59
0
answers

Problem when saving to a database

Good morning, I have not managed to save the time field in a php my admin database, the code to get the time is done in Javascript <table name = "HORA" style ="width: 250px; height: 24px; position:absolute;left:885px; top:185px;" id="reloj...
asked by 25.11.2017 / 17:34
1
answer

Use select with API in JSON

I'm making a web page where I'm using the select tag for different uses of an API that is in JSON ( link ) and an input to enter the information, how can I do an if in javascript with the values of the select and send a POST to parse the JSON i...
asked by 25.11.2017 / 04:21
0
answers

Problem with clearTimeout

I want to paralyze setTimeout with clearTimeout but there is no way. The code is as follows: function limpiarModal(){ $("#ventana-emergente").animate({top:"-350px"},1000); set=setTimeout(function(){$("#ventana-modal").css...
asked by 25.11.2017 / 12:31
0
answers

Continue with ajax request, after validations in php

How could I build a form that after collecting the form data, send them by means of an AJAX request to a PHP file and this in turn validates them in the BD, return a response and this response is sent to an HTML message with validation buttons a...
asked by 25.11.2017 / 16:45
0
answers

Upload multiple images AngularJS

How about, I ask for your help, I want to select images in a single load, that is to say that the user chooses if he wants to upload a single image or more than one. I'm doing it in the following way: app.controller('ImagesCtrl', functio...
asked by 15.12.2017 / 01:00