Questions tagged as 'javascript'

1
answer

How to use the C # syntax in 'onclick'

I declared a variable in view : @{ int index = 0; } And I want to change it through onclick : @for (var b = 0; b < cont; b++) { <li> <a onclick="@(Index = b)">End...
asked by 09.01.2018 / 12:44
2
answers

Help with a form + php + javascript

I'm doing a system where the person chooses the "League" + "Mode" + amount of victories and then a field appears to appear the email (I already have) and the value (Where is the problem, I am not managing to resolve this) The problem is betwe...
asked by 06.01.2018 / 22:37
1
answer

Mysql Decoding - Javascript

Good afternoon, I have a procedure in MYSQL that returns processing information. ELSE IF(linhas_banco_in_p <> 0) THEN SET msg = 'ESSA CONTA E AGÊNCIA JÁ EXISTE NESSE BANCO, VERIFIQUE AS INFORMAÇÕES E TENTE NOVAMENTE';...
asked by 07.01.2018 / 20:01
1
answer

Create facebook style profile link

Hello, I would like to know how to appear in the link of the client profiles of my facebook link style project (facebook.com/profilename). Because I can not get by without getting (site.com/perfil.php?per=profilename), (being "? Per=" the variab...
asked by 06.01.2018 / 23:23
2
answers

Problem at the time of popular elements in the database

I was doing a chat project in php, with ajax, but my code does not insert anything into the database, but I have no idea what it is, and before they think I did not search, I already tried to bring the variable from js to php, but I could not, I...
asked by 26.01.2018 / 05:15
2
answers

how to leave my button on the menu marked?

When I click on a button I want it to be marked white, if I click on another, uncheck the old one and leave the new one checked var menu = document.querySelectorAll("#menu > ul > li > a"); for(var i = 0; i < menu.length; i++...
asked by 28.01.2018 / 11:02
2
answers

Uploading multiple images with Multer

I have a problem uploading multiple images with Multer. I saw that it has attributes like ANY, SINGLE and ARRAY. I can use SINGLE to send a single image, however I need to use multiple images, and I'm not able to implement. My code is as follows...
asked by 27.01.2018 / 07:12
1
answer

How the onchange event works when uploading a file

I'm trying to implement a music player using javascript, which works by uploading an audio file (.mp3), in the script when uploading the file, which occurs with the 'onload' event the function created has the variable 'files' and then play the f...
asked by 07.01.2018 / 20:49
1
answer

Validate password size

People because this condition does not work ?? It's something simple but by not knowing javascript I'm catching up. function QTDsenha(){ var senha = document.getElementById('idSenha'); if(senha.value < 6){ alert('Inform...
asked by 27.01.2018 / 21:54
1
answer

Undefined when passing parameter to a JS and Angular function

I have a function that takes as a parameter a value from HTML, however, it is coming undefined . I'm using JS and Angular. My HTML <div class="input-group col-lg-3 col-md-3 col-sm-3 col-xs-12 pull-left"> <select...
asked by 06.12.2017 / 00:12