Questions tagged as 'javascript'

1
answer

removeEventListener does not work within a class

I have the following JavaScript code, where the removeEventListener method does not work for me within a class: class Removerevento { constructor() { this._btndos = document.getElementById('btnDos'); this._btntres = d...
asked by 05.11.2017 / 02:25
1
answer

How to change color one button for each click?

I need that by clicking on a button that is green, it turns red, and if it is red it turns green again. I currently use bootstrap it could be that when I click it is danger and when I hit it again it is primary. I know it's done with JS but I...
asked by 23.10.2017 / 01:14
1
answer

Create a File Uploader with a progress bar and it does not work

I have a problem with my code, the problem is in the JavaScript but I do not know what it is, I also attach the html and css to make it look better. The idea is to make a file uploader with a progress bar to store files, I have it uploaded to th...
asked by 01.03.2018 / 20:23
3
answers

Every time I give a button an element with a different id is created

In summary I have a function that is as follows: function datos3(){ resp=$("#ref_mi").val(); if(resp != "" && resp !=null &&typeof resp != undefined){ jqmSimpleMessage('Agrega cotizacion: '+resp); $...
asked by 22.08.2018 / 20:06
1
answer

Run MySQL query on onChange

I have a select that shows the departments: <select name="dpto" id="dpto"> <option value="3">ATLANTICO</option> <option value="12">CESAR</option> </select> What I need is that when selecting...
asked by 21.08.2018 / 21:21
1
answer

Help With the placeHolder and label Float

I have the following form: As you can see they have the PlaceHolder property, besides this I also add a Floating label, which what makes the I choose the TextBox is placed as a title, as seen in the following Image: So far so g...
asked by 20.09.2017 / 04:47
1
answer

Show a blob in firefox

I'm trying to show a PDF on an HTML page but it does not show anything in firefox, I tried it in chrome and there it shows, using the following code. <div ng-if="downloaded"> <object ng-bind="pdfcontent" data="{{pdfcontent}}...
asked by 30.08.2017 / 23:32
1
answer

Can persistent local write permissions be deleted with javaScript?

I'm testing the persistent storage of the FileSystem API. I have tried how the application requests permissions from the user, with an alert type window, but it only comes out the first time, as is logical, after accepting permissions. In a deve...
asked by 08.09.2017 / 04:57
0
answers

Problem with icheck and online onclick event [closed]

I am using the icheck.min.js library and the problem is that the onclik event of my radio buttons no longer work. The code is in this way: HTML: <form method="POST" action="<?php $_SERVER['PHP_SELF']?>" role="form"...
asked by 28.08.2017 / 17:49
0
answers

Test the existence of a file dynamically in javascript

I have a web page that launches a background script. Meanwhile there is a page that is shown with certain information. And I want that when the script has finished it shows me another information on that page. When I launch the script I creat...
asked by 03.09.2018 / 11:09