Questions tagged as 'javascript'

1
answer

Modal to inform users that registration was successful

Well, I wanted the user to register in the system and if it worked out, a modal saying that:    Registered user successfully If already exists the matricula or email informed will appear a modal with something like:    En...
asked by 12.11.2018 / 22:24
1
answer

Error in ajax .JavaScript

Hello, The following code will present a table with values. I am retrieving the table cell value that the user clicks through this $(this).text() function in javaScript. I have to send this information get through this function, for an aja...
asked by 23.05.2018 / 01:57
1
answer

How to create a JSON file from a JS?

Hello, I created a simple page where the user can set some fields. I need to implement the following function: When you click the Create button, the application should generate a JSON file with all the fields that were created. As I know almost...
asked by 10.11.2018 / 12:50
1
answer

change attribute value with jQuery

I have the following js : $("a.bloqDesbloq").click(function() { $.post ("../_requeridos/alteraAdministrador.php", { idAdministrador : $(this).attr('idAdmin'), bloq : $(this).attr('bloq')...
asked by 22.05.2018 / 18:26
2
answers

Javascript + CSS: Doubt over Value or textContent

I made a condition that is not respecting the contents of text . Home Here is the code: function teste() { var elements = document.getElementsByClassName("testetxt"); if (elements.value =! null) { elemen...
asked by 18.05.2018 / 20:58
1
answer

StopPropagation with right click / right click

With this code I can stop the propagation of a dropdown menu by clicking on the document. It Works very well. Now I'd like to accomplish the same thing, but with the right click. The magic happens thanks to event.stopPropagation(); wit...
asked by 20.05.2018 / 01:30
2
answers

Why does a function invoked by onclick not influence commands external to it?

As can be seen in the code, the declared variables are global, and the routine should display the result on the console as soon as the "Submit" button was selected. <!DOCTYPE html> <html> <head> <meta charset="utf-8">...
asked by 16.03.2018 / 21:03
2
answers

Dropdown and Autocomplete

I have a question about how to perform a particular function. Iwouldlike,whenaparticularsupervisorwasselected,inthe"technician" box a list of technicians related to it is displayed. Example: I selected the 3rd supervisor, as shown in the...
asked by 19.03.2018 / 19:54
1
answer

How to 'reverse' Google Charts chart?

I have the following graph that I generate using Google charts: google.charts.load('current', {packages: ['corechart', 'bar']}); google.charts.setOnLoadCallback(drawStacked); function drawStacked() { var data = google.visualization.arrayToData...
asked by 20.04.2018 / 21:48
1
answer

Infinite variable (javascript)

I'm programming on: link The exercise: whenever the user presses the 'A' key a random number between 1 and 6 is assigned as well as if the 'B' key is pressed. I need to make a comparison between these two numbers in order to figure out whic...
asked by 03.05.2018 / 00:11