Questions tagged as 'javascript'

2
answers

How to paint inputs and text according to units of a product?

I am making an application type inventory that according to a purchase invoice can consult the products related to that invoice and can add an input and a button to send certain information to the BD of each product of the invoice. If, for examp...
asked by 14.06.2016 / 22:37
1
answer

Access attributes of an object within an array in JS

I create an object with 3 parameters, and insert it into an array. Now, when I go through the array, I always get undefined , and I've tried several things, but nothing. This is my code: //*************************** Arrays ***...
asked by 31.12.2018 / 21:56
2
answers

The variable does not arrive by POST to PHP through AJAX

I have the following script which sends a variable taken from an input, makes a query and returns the fields of that query to then perform more actions, here the AJAX $(document).ready(function (){ $("#boton_comprobar_producto").click(functi...
asked by 04.01.2019 / 04:31
1
answer

How to upload files from webview with php and javascript

I will proceed to explain everything as detailed as possible. My system is PHP and I used the Materialize framework. There are 2 forms that require uploading files. Form 1- Requires uploading a photo (JPG, JPEG, PNG, GIF). Form 2- Requi...
asked by 06.04.2017 / 11:56
1
answer

save meta width in variable session Javascript

I'm working on a page which I want when the user presses 'full version', force the width of the meta to make it look like the real web, the script does something like this: ((function ( $ ) { var mobile = true; var targetWidth = 1100...
asked by 07.04.2016 / 09:34
1
answer

Create two-dimensional html table with js from python list

I would like to create a two-dimensional table, in which the x-axis is the dates (with title format) and the axis and the names of the data (also with title format). I collect data from a JSON: {"dataval": [ { "date":"2014-01-01...
asked by 06.04.2016 / 15:31
1
answer

$ watch in variable intant with controllerAs

How to make a $ watch to a variable created from an instance of my controller using the controllerAs notation for example var vm = this; vm.myVariable = []; $scope.$watch('vm.myVariable',function(newValue){ console.log(newValue); }); I...
asked by 07.04.2016 / 17:38
1
answer

javascript two functions does not let them run at the same time

img{ max-width:451px; width: 451px; height:254px; margin-top:20px; width: 100%; border-top-right-radius: 15px; border-top-left-radius: 15px; } #divimage div{ width: 451px; } #wallet div{ bord...
asked by 28.12.2018 / 23:36
0
answers

Select id dynamics

I have a form that I fill with data of a product. I need to know how I can work with dynamic ids, searching the Internet I learned that brackets should be added at the end of the id in this way: name="id[]" but my problem is that no I kno...
asked by 27.12.2018 / 19:56
1
answer

Filling in a text input when changing a selection option

I have a question about how to fill in a text input when I change the option in a select, I do this because I want that when I select the patient's name I fill in an input with his phone number, I'm working with codeiniter, bootstrap modals and...
asked by 28.12.2018 / 00:58