Questions tagged as 'javascript'

2
answers

Use multiple javascript loops

Is there any way to run more than one setInterval () at the same time? Home In my code, if I run the interval twice, the program goes into infinite loop, and on the console I get: [1,2,3,4,5] [1,2,3,4,5,6] [1,2,3,4,5,6,7] [1,2,3,4,5,6,7,8 .....
asked by 11.04.2017 / 21:13
2
answers

check email in jquery as if it were two string

Good evening, I'm finalizing a form check and I caught it at one point, maybe because of the way they wrote my work code I can not use jquery validate , so I have trouble verifying that a input field has an e -mail typed. I made...
asked by 17.04.2017 / 01:08
1
answer

Convert path (String) to object

I need a function that converts: "/home/username/Documentos/app.txt" for an object: { "home": { "username":{ "Documentos": "app.txt":{} } } } ' I was thinking of breaking the string by "/", but I did not...
asked by 18.04.2017 / 08:10
1
answer

$ .post return 2 values

I have following code: <script> $.post('http://localhost/app/user.php', {acao: acao}, function(retorna){ $("#demo").html(retorna); if(retorna == "sucesso") {faça x} }); </script> However, in user.php...
asked by 11.06.2016 / 01:52
1
answer

Verification javascript [duplicate]

My question may be a little vague, but very useful for me. The question is, do I have a site where I am not validating forms with PHP but yes with javascript , is there any way for the user to disable the javascript's on...
asked by 07.05.2016 / 21:53
1
answer

How to make a circle-shaped audio player that calculates the time around you?

So I saw a player on a website: link and wanted to know how I can make a similar one.     
asked by 07.05.2016 / 09:41
2
answers

Freeze background when calling Popup?

What would be the best way to freeze background processing when a popup is called? <h:link onclick="showModalPopUp(); return false;">link </h:link> The best way to pause screen processing while the popup is running, when closed,...
asked by 27.04.2016 / 18:02
1
answer

Change Bootstrap navbar theme

Hello, I searched a lot on the internet for a method that I could change to Bootstrap's navbar theme at the click of a button. Navbar when the user visited the site: Whentheuserclicksthebutton: Thank you in advance.     
asked by 30.04.2016 / 07:48
1
answer

Run PHP without refreshing the entire page

My code is this: <?php $buscarusuario=$pdo->prepare("SELECT * FROM top5 WHERE status = 'ativo' ORDER BY colocacao ASC"); $buscarusuario->execute(); // Exibir com Fetch_Obj $linha=$buscarusuario->fetchAll(PDO::FETCH_OBJ); foreach (...
asked by 02.08.2016 / 19:43
2
answers

JavaScript command does not work inside Buttom

Good morning! I have a problem and I can not resolve the issue. I need a buttom to appear or not according to the PHP condition. Making the buttom appear I'm getting, the point is that inside it has a javascript call that does not work inside PH...
asked by 01.08.2016 / 14:14