Questions tagged as 'jquery'

0
answers

window.open is not working after running Ajax

I'm developing a database-sharing URL saving system every time I click on one of the site's social networks. It turns out that the window.open that I use to access the social network is not working after the Ajax call. Does anyone h...
asked by 18.08.2017 / 16:11
1
answer

my jqery always presents the error "an error occurred while receiving the message"

jQuery('body').on('keyup', '.mesg', function(e){ if (e.which == 13) { var texto = $(this).innerHTML(); var id = '$id:5'; $.ajax({ type: 'POST', url: 'msgamigos.php', data: {mensagem: texto, de: id}, succe...
asked by 22.08.2017 / 20:23
0
answers

How do I get focus from a button?

I have a button and the same one after the click would like to remove the focus using javascript, detail I do not use the mouse I use this button on a screen touch, without mouse or keyboard. I use the following function today to move up and dow...
asked by 18.08.2017 / 20:53
0
answers

Why is this function interpreting that you hear more than one click?

I have the following function. function getValue() { $("#SavePaper").click(function(e) { if($(this).is(':checked')){ if ( $("input[type='radio'][name='Licenciamentodeusuários']").is(':checked') ){ valor...
asked by 18.08.2017 / 14:20
3
answers

Add percentage

I'm trying to add percentage, but it's not showing up correctly. The intention is to calculate the percentage, and then add up to the value. Example:    100.00 + 10% = 110.00 $(document).ready(function() { $("#proposta").focu...
asked by 18.08.2017 / 13:40
1
answer

I want to get the keyup done on a contenteditable div

$('#mesg').on('keyup', function(e){ if ( e.keyCode || e.charCode == 13) { var texto = $(this).innerHTML(); var id = '$id:5'; $.ajax({ type: 'POST', url: 'msgamigos.php', data: { mensagem: texto, de: id },...
asked by 22.08.2017 / 23:14
1
answer

Chrome does not apply Addclass before calling window.confirm

Problem: Chrome is not rendering my class addclass before calling my confirmation window window.confirm is like if it got stuck and was released only after the confirmation. What I did was put the call of the function Co...
asked by 10.08.2017 / 16:18
1
answer

How do I pass a value from javascript to PHP?

I have a select that lists all my players: <select name="jogador" id="cod_jogador"> <option name=""></option> <?php foreach($jogadores as $jogador): ?> <option id="codigo" value="<?= $jogador['cod_...
asked by 10.08.2017 / 20:17
1
answer

empty input value on forms with auto complete

I'm having a problem that's making me sleep, it's a little bug, I think, that's complicated both to debug and to explain. I have a login form on a page html tag for my system, and code in jquery that applies styles depending on the value...
asked by 10.08.2017 / 13:02
2
answers

Session does not work as expected in Ajax and PHP request

Well I have a main page index.php where the person performs an action and performs a POST with Ajax request. In this main file I create a session with some data that I want to keep more secure and not be visible and others for confirmations....
asked by 12.08.2017 / 21:21