All Questions

1
answer

How to clone an element with jQuery and add a new name?

I'm using the jQuery CloneYa plugin. to clone elements of a form with jQuery, but it is a bit limited, I wanted to clone the inputs but I need to increment the name when done, for example: <input type="text" name="produtos[qtd][1]"...
asked on 17.03.2014 / 15:36
1
answer

What are the differences between .bat and .cmd?

We rarely see .cmd , but when we open it, we see that its contents are very close to .bat . What is the reason for this similarity? What would be the main differences between them?
asked on 05.04.2018 / 14:43
4
answers

Should I use two IF's or an operator?

What is the best practice for checking two conditions? In the example I am going to give, these are not very long checks, but what is the best practice and what is the difference? (it happened to me that I found myself having a if huge...
asked on 29.08.2018 / 12:33
1
answer

photo album with HTML and CSS

   I have a folder on the site called PHOTOS , by clicking the PHOTOS folder I thought about putting several < article > sharing each photo album type: < article > album de fotos 01 < article > < article > al...
asked on 09.03.2018 / 14:52
1
answer

What is the advantage of front-end frameworks like react?

I was talking to some friends and in the conversation they told me that frameworks like react would be mandatory for front end programming today. I wanted to know your opinion on this, why use a front end language and if you do not use it you...
asked on 06.10.2017 / 21:04
1
answer

What is reactivity in JavaScript?

I see frameworks as Angular, Vue, React, the concept of reactivity . I'm totally uninvolved in the subject, and from what little I know, the concept of reactive programming is basically the realization of asynchronous data flow. A variable...
asked on 10.11.2017 / 13:02
1
answer

How do I know what previous activity the current activity was called?

I have several Activities, which can call a special Activity. I would like to know how to identify which activity you called. It would be something like this: IneedthisbecauseIhaveauserregistrationactivity,whichcanbecalledthroughsevera...
asked on 23.05.2018 / 10:15
2
answers

JQuery - Problem with MouseEnter () & MouseLeave () events

Situation: I have a menu, and I need it when an event of hover occurs, it display a series of information from its menu When the mouse is moved to another menu, the displayed information has to be hidden and display information from...
asked on 13.02.2014 / 19:00
1
answer

Control module version with Maven

I have a Java multi-module project with Maven. I currently control the version of each module manually by editing the <version> element of the pom.xml of each module that undergoes updates. I believe this is not the correct /...
asked on 14.01.2014 / 17:28
1
answer

How to execute PHP file from function in JavaScript?

I have the following structure for registering a new MySQL database account (register.php): <?php $con = mysqli_connect("meu_host","meu_user","minha_senha","banco"); mysqli_query($con,"INSERT INTO contas VALUES (" + $id + ", " + $pass...
asked on 25.03.2014 / 04:09