Questions tagged as 'javascript'

2
answers

Get JavaScript textbox value

I have the following function function reporte() { var string_request; Riesgo = document.forms.form1.Riesgo.options[document.forms.form1.Riesgo.selectedIndex ].value; Emisora = document.getElementById('Emiso...
asked by 19.06.2018 / 14:55
1
answer

Passing PHP Variable A Modal Window

Cordial Greeting. I hope you can help me with what I want to do. I have a PHP - HTML table Well, the fact is that, when I click on the pen, I opened a Modal window: What I want to do, is to pass 1 variable to the Modal wi...
asked by 22.11.2018 / 21:43
1
answer

Modal opens whenever you click, even if you have the eventListener in an image

It's a simple thing that is taking me a lot of time. I want to open a modal when clicking on any product image: This is the HTML of the page: <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head...
asked by 21.11.2018 / 17:35
1
answer

Remove object and put it at the beginning of the array

Hello good morning I have an arrangement of objects and what I need is to take the index position and put it at the beginning of the arrangement, this is my code where I want my arrangement. $.each(data.info_tarifas, function (index, value){...
asked by 23.11.2018 / 16:48
1
answer

how to send the user to the home page if they are not logged in using sessions

I'm doing a simple login, where the user puts the data and takes it to the panel, but what I want to do is that if another user wants to enter that panel he can not access if he is not logged in. If you know, please help me. validate:...
asked by 21.11.2018 / 21:19
2
answers

Format JSON

I want to give a specific format to a JSON that I do from PHP to then receive it in a variable in JS and fill a table with it, but I do not know how to do it. Here the JSON is created: <?php $conexion=mysqli_connect("localhost", "ro...
asked by 20.06.2018 / 17:14
2
answers

How to stop the execution of setInterval () which was executed using onLoad ()?

Hello colleagues, I have had a very annoying problem and it is as follows: I have a whole page made in ajax and jquery and I have different menus; and for example when entering the first menu, inside the HTML code I have an image with a Javascri...
asked by 23.06.2018 / 03:31
1
answer

Range of dates typescript

I update: I have several objects with start dates and end dates. When inserting / modifying an object, the start or end date of the new object can not be between an existing object. That is: Exists: 06/06/2018 ----- 06/30/2018 The...
asked by 27.06.2018 / 10:07
1
answer

The second time of onchage does not work on an input file

The code tries to draw on the canvas the image that I select with the input, but it turns out that in the code I have, the first time I enter an image it works but when I re-select another photo in the input file, the onchange no longer works....
asked by 08.06.2018 / 09:32
2
answers

Refresh the content of a DIV

hello friends I have a registration form with a div below that shows all the records the idea is that when someone registers I refresh that record div with a function or something like what I do not want to actually have to bring back those data...
asked by 30.05.2018 / 14:09