Posts by Gustave Dupre • 110 points
6 posts
- 
		1 votes1 answer83 viewsQ: The length of an array does not updateIn giving console in a array, with an object(1), and lenght from it is obtained the expected return, then update the value of the array, adding a new position, give console in the array and the… javascriptasked Gustave Dupre 110
- 
		1 votes0 answers169 viewsQ: How to send a notification even with the closed application page?I want to send notifications from my application using the Chrome notification api even when the user is closed. I saw this feature in several blogs, such as tecnoblog.net. It works like this: User… 
- 
		0 votes1 answer2486 viewsQ: How to open a connection via socket?I have an application in PHP/Javascript (using the framework jQuery), I want to open a connection via socket for a chat system, similar to Google’s G-talk, but I’m not able to open socket no way. I… 
- 
		1 votes2 answers201 viewsA: Why does comparison using javascript not work?The colleague Ivan, solved my problem, which in this case was the toggle function. The comparison operation was working perfectly, but as the toggle function reverses the variables, regardless of… 
- 
		1 votes2 answers201 viewsQ: Why does comparison using javascript not work?What I want to do: Algorithm that generates field change logs in front-end. Problem: Certain code snippet I compare the old value with the new value: if( value =! anterior ){ elemento.val( value… 
- 
		3 votes3 answers463 viewsA: Add Array from multiple fieldsJust to complement with another alternative, this time using foreach: $post = array( 'valor' => array( 0 => 10, 1 => 10, 3 => 10, ) ); $soma = 0; foreach ($post['valor'] as $key =>… phpanswered Gustave Dupre 110