Questions tagged as 'javascript'

2
answers

Having an input hidden and clicking on a button

good day, I hope you can help me with this I comment in great detail. I have my page which from the beginning shows an input text in which certain information is placed, it is important that this input is there. The detail is that I need to hide...
asked by 12.06.2018 / 22:04
0
answers

Counting and filtering of database content using PHP and mySQL

I need to generate statistics for my ticketing system. I have a database called tickets , where everything is linked to other tables using the primary keys of these. When a technician is assigned a ticket, it specifies which company to vis...
asked by 12.06.2018 / 22:09
2
answers

How to make the success of a javascript plugin

I try to make an autocomplete plugin without using any libraries other than jquery and bootstrap. Well my question is as follows. I would like to return the value when I click on the autocomplete drop-down and then the data that returns me to...
asked by 14.06.2018 / 19:48
0
answers

Change an image with JS after it has been loaded with angular?

I'm trying to do a chrome "snippet" to change the images of a page created with angle. I am trying unsuccessfully with: this.src=origen+res[res.length-1]; this.setAttribute("ng-src",origen+res[res.length-1]) But by not acting on the "rea...
asked by 13.06.2018 / 14:48
0
answers

SyntaxError with a String with quotes

I would like to know how to write the quotes in this code so that the browser does not throw a Syntaxis error. Thanks. var codigo='<img src="+origen1.Attribute('src')+">'     
asked by 13.06.2018 / 08:04
1
answer

Problem when uploading file with ajax, the php does not recognize the method "POST"

I have a problem with uploading files when using ajax, when I click on the upload button, the PHP file does not recognize the POST method and I do not get the value entered in that text field. this is my form: <form method="POST" action=...
asked by 13.06.2018 / 16:33
1
answer

problem with a pdf in iframe, the download button does not work

I have been with this problem for a few days, on my website I created a button to open a PDF in iframe on another page, but the problem is that once the page is opened it does not finish loading and second is that the button to download the pdf...
asked by 13.06.2018 / 04:55
1
answer

Add Attribute to inputs but with same class

I have different inputs type checkbox with a value ="{"valor":"1"}" or value ="{"valor":"0"}" . For example: <input type="checkbox" id="switch" name="switch" value ="{"valor":"1"}" "> <input type="checkbox"...
asked by 12.06.2018 / 17:14
0
answers

Delete player from localStorage

I have a hangman game that works with localStorage to save players' names and their scores, and there is a function that when the player wins eliminates the JSON object and then reinsertes it with the updated score: comentarios = function () {...
asked by 11.06.2018 / 16:17
0
answers

How can I detect the end of a div's scroll

document.addEventListener('DOMContentLoaded', function() { $(window).scroll(function() { if ($('#div').scrollTop() + $('#div').height() == $('#div').height()) { alert('fin del scroll del div'); } }) }) <div...
asked by 11.06.2018 / 03:15