Questions tagged as 'javascript'

9
answers

How to hide / show a div in HTML?

How do I make a JavaScript that show / hide an HTML div? I tried type: function Mudarestado(divid) { var disp = document.getElementById(divid).style.display; disp = "none; // (ou disp = "block") } But that did not work.     
asked by 27.06.2014 / 20:33
1
answer

How to customize print in browser

I would like to customize the printing of pages in html so that only the number of pages is displayed. I checked that you can remove the header and footer @page { size: auto; margin: 5mm; } I just could not leave the pag...
asked by 11.07.2018 / 16:25
0
answers

Disable a button on a button set (PHP JQuery)

I made a script in JQuery for installing software by mei of a PHP script. JQuery takes the installation request through a button created in an HTML script and calls PHP that does the installation by shell_exec . This part w...
asked by 11.07.2018 / 16:18
1
answer

Hiding menu option according to user type

Good afternoon, I'm developing a registration system with angularJS and C #, when registering a new user there are two types of users to choose, administrator and librarian, being administrator type 1 and librarian type 2. and a menu with the fo...
asked by 11.07.2018 / 20:23
2
answers

Trigger two functions with different onscroll events - JS

Good morning, I need a help, I have two functions that use the onscroll event, a function to appear a "Back to Top" button where when it is presented to the user it can be triggered and will be returned to the top of the page and another of h...
asked by 18.07.2018 / 14:41
2
answers

Close sweetalert2 when you find the data

I would like the sweetalert2 to find the data to be modal. But it does not return anything in .then Here's my code: swal({ title: 'Auto close alert!', html: 'I will close in <strong></strong> seconds.'...
asked by 18.07.2018 / 16:23
0
answers

take photo with webcam and save in postgresql database with php and java

I want to take a photo with the webcam and save it to a postgresql database. So far, I have the page to activate the camera and take photo and pre-view mounted and the upload script done, but the image recorded in the bank is 0 Kb. Below the...
asked by 18.07.2018 / 14:10
0
answers

Check the return of window.open if it is JSON or PDF

Hello! I am creating an application using Angular, and request the data from an API using Observables with Angular 4. This Observable returns me a HASH and I use this hash to complete a route (a URL) to another API to download a PDF file . But t...
asked by 18.07.2018 / 16:34
1
answer

Clear activity list

I need when I get to the last question screen of my application I can go back to the menu screen that is the screen after the main and only in this final screen of questions that I can zero the list. Thanks!     
asked by 08.07.2018 / 20:39
0
answers

Save canvas image with filters

I add image filters to the canvas, but I have to save the image to the database and when I make the image saved without the filters, save the original. My database is connecting through Ajax and I do not know how to link the filters with DB.   ...
asked by 09.07.2018 / 18:08