I'm validating the attached file size on my page before upload using the following code:
var tamanhoArquivo = parseInt(document.getElementById("documento").files[0].size);
if(tamanhoArquivo > 2097152){ //MAX_FILE_SIZE = 2097152 Byte...
I'm having the following problem, I'm developing a web application in java and would like to know how do I change the URL of a page when I click on a link in the menu. For example:
Access a website www.example.com.br this is the main link and...
I'm trying to compare two dates coming from fields text , turning them into object Date , as follows (the first function is to format the field input with XX/XX/XXXX ):
function formatar(mascara, documento){...
I'm doing multiple HTTP requests at a given time, and I want to check only the return status . There are paths that require login in the application but as it is a very basic script and is not interface test I do not find it necessary to use...
If I wanted to implement a variable check whenever I was to use the .indexOf() method of javascript would it be possible?
For example, using a.indexOf(b); can detect when a is null or undefined and change me...
I need to pass the value of a function according to its clicked value. There are 3 divs, each one is a gallery. I need to click on the "see more" option, open a page with all the photos only from that gallery, however, I do not know how to pass...
I am developing a chat with WebSocket and I have a problem, when I send a message to a friend, he receives the desktop notification (from the Browser he is) and when he clicks on the notification he goes to the conversation window of the person...
I have a loop inside my cshtml file. This loop has a i variable and I use it to compose a name according to its position in the loop, type txtNome1 , txtNome2 , txtNome3 , and so on.
I need to make the variable be com...
I need to know how to change the position of the Ticks to be diagonal rather than vertical, because as shown in the attached image, the names overwrite one another when they reach a certain size.
<script type="text/javascript">
$(doc...
I'm trying to make a script to select multiple options of a <select multiple> with each mouse click. So far so good, I've got and follows the code:
var numSelected = 0;
var valSelectedArray = [];
$(document).on('mouseup',...