Questions tagged as 'javascript'

2
answers

Measure time that the user is logged into the system

I need to know how much time the user has spent on the system. In other words, how long it stays, from the moment you login , until logout OR close the browser / etc. I do not even know how to start. I thought through cookies or...
asked by 08.09.2014 / 22:11
3
answers

Pass data through POST with jquery

On one page I load a list of people with a checkbox next to each. I want to move all the people I've selected to the next page. I'm trying to do this: In this code below I check who is selected and add in the nips variable. This code works pe...
asked by 24.09.2014 / 14:22
3
answers

Load dynamically from the database and mount a treeview in cshtml I'm not getting

is as follows. I'm not getting the satisfactory results in assembling a tree using checkbox like in a treeview. Well, when I put in the data it works fine. But when I bring the DB data, that's complicated, that is, it does not work. The logic is...
asked by 10.09.2014 / 19:52
1
answer

How to do color toggling of links with the click of the user?

Hello! Well, I have a TopBar on my mini search site: link , and now I've got a form action swapping system with Javascript , which toggles between "web, images, videos and news". However, the "Web" link is already selected (blue), but wanted th...
asked by 04.10.2014 / 17:18
1
answer

Link sharing on Facebook

I am making a system for my course and found a big problem in the part where I should share the link of the site directly on Facebook. I have the button on my site that opens directly to the Facebook publishing window, I am sending this link...
asked by 30.09.2014 / 22:16
2
answers

Collapse dropdown menu with JavaScript

I made the following code in JavaScript, so it would expand the dropdown, but now I do not know how I get it to pick up the menu, I wanted it when the "Focus" was not on the link, it collapsed (eg range of the menu): $(document).ready(function...
asked by 25.09.2014 / 21:16
2
answers

How to create multiple vectors dynamically with Javascript? [closed]

I get a value on the input screen, and I need to construct the number of arrays according to the number I received. Example: I get 64 in the input, so I need to create 64 arrays     
asked by 15.04.2016 / 21:20
1
answer

Effect of the menu within the table

By clicking the right mouse button on the word menu a small menu opens. How do I make it happen inside the table's row property? document.oncontextmenu = function() {return false;}; //não deixa abrir o menu ao clicar $('.menu_pai'...
asked by 12.04.2016 / 21:33
3
answers

Show note average result with Javascript

So I have this code here and I have a difficulty, I would like to calculate the average of the notes that are placed in the inputs fields. If they can help.                                  <div class=""> <p>Media dos...
asked by 07.04.2016 / 21:11
3
answers

JavaScript does not follow in algorithm flow

Example: $("#segundaFeira").change(function(){ valorSegundaFeira = calcularJornadaDeTrabalho(this.value); var x = valorFinalJornadaTrabalho(); alert(x); }); Note that the global variable valorSegundaFeira is...
asked by 05.11.2015 / 13:39