Questions tagged as 'javascript'

2
answers

How to count state changes in fields with a given class inside a function?

How do I count how many changes occur in all fields of a form with a given class? Update: What I want to know is if there was any change in each field ( one ), not how many times there was change in each field (even if the user changes...
asked by 21.12.2015 / 18:51
4
answers

How do you search for an element with the same class depending on the number of children?

My scenario is as follows, I have two ul with li . The uls have the same class, but I wanted to manipulate only one of them, in the case, which has only a li as a daughter. Example: link Example 2: <ul cl...
asked by 21.12.2015 / 16:34
1
answer

Ajax in different project

I have a project in Asp.Net MVC with the following method: public ActionResult ObterCursos() { List<curso> cursos = new List<curso>(); curso curso_ = new curso(); curso_.Nome = "Análise"; curso_.Periodo = 3; cu...
asked by 05.06.2015 / 04:18
1
answer

Handling event when closing browser

I'm having problems with this event handling when closing the browser using javascript. I researched a little and found an idea through onbeforeunload : <script> window.onbeforeunload = fecharJanela function fecharJanela...
asked by 25.06.2015 / 14:16
3
answers

How to put two divs side by side in Bootstrap

I'm still new to web development and I'm having a question on my form putting the two lines of the form side by side into the responsive Bootstrap, knowing that each input will bring information separately. Example: Nome: ________________...
asked by 06.11.2017 / 16:31
2
answers

Delay closing a dropdown

Is there an alternative way, lite, to superfish, to delay the closing of a dropdown menu? When the menu is hovered, it obviously opens, and when the mouse is no longer focused on it, the menu closes. I would like to have a delay in closing this...
asked by 03.07.2018 / 20:03
2
answers

How to scroll in JavaScript?

I'm at the beginning of the JS studies, however, I'm with a project, and I had the idea of making a progress bar, but this progress bar effect will only happen when the scroll bar reaches the progress bar div This function has been removed fr...
asked by 16.10.2017 / 19:05
1
answer

Link address link with GPS applications

Personal I have a question, I am developing an ad platform and I came across an issue here. My advertiser signs up on the platform fills in the information puts your address and a google map to my question and the following: Through the addre...
asked by 09.03.2018 / 19:07
1
answer

Mount structure with hexadecimal data

Do you speak all right? I get from a socket a buffer of 116 bytes in hexadecimal these bytes have a structure, for example: Starting from the beginning: 2 bytes = 1ª variável 1 byte = 2ª variável 1 byte = 3ª variável 2 bytes = 4ª variável...
asked by 03.05.2017 / 22:48
3
answers

Pass variable php to javascript

Could someone tell me how to pass a PHP variable to the Javascript code. I know there are already many posts about this and I already tried to apply only that I should be doing something wrong so I decided to ask for help here. <?php $l...
asked by 17.04.2015 / 15:20