Posts by Jaffe.Marques • 561 points
21 posts
-
1
votes2
answers47
viewsA: How to check the id of an item in a class in Javascript?
Try this: <img class="figuras id="quad" src="quadrado.jpg" onclick="trocaFigura(0)" alt = "quadrado" style = "width: 200px;"> <script> trocaFigura(indice){…
-
-2
votes1
answer41
viewsA: How to advance two decimal places in php or javascript
I suggest you use the number_format, see the documentation here $preco = number_format ($row->preco, 2, ',' ,'.'); Here, if you pass 10,000, it returns 10,000.00. I in your place would do two…
-
0
votes2
answers40
viewsA: geolocation want to take data from java script and pass to a Hidden
I suggest you use the document.getElementById, you create an input with type Hidden and with some id, for example: <input type="hidden" id="latitude" name="latitude"> <input type="hidden"…
phpanswered Jaffe.Marques 561 -
0
votes1
answer40
viewsA: How to individualize database queries with PHP?
I would recommend you use something like PDO, since it seems to be using pure PHP, it would look something like this: <?php $servername = "localhost"; $username = "usuario"; $password = "senha";…
-
0
votes1
answer31
viewsA: Function to save script ? JAVASCRIPT
You can define functions in various ways within Avascript and make the call after, first using the function statement, which is loaded before executing function soma(a, b){ return a + b } You can…
-
1
votes1
answer44
viewsA: mandatory use of a word in an html form
So we can make things easier by using javascript, for example, you can check if the value exists, if it exists, let it pass, otherwise, add, is a good one? To check using javascript we can use the…
-
1
votes2
answers1607
viewsA: Count the number of characters in a String?
If only the string size: suaVariavel.length(); The error in your code is first that you are not returning or displaying the value, second, the data type must be integer, not string, so your function…
javaanswered Jaffe.Marques 561 -
11
votes3
answers22536
viewsA: How to make a Mask in pure Javascript?
I have some examples here. The phone is included. The call in html looks something like: <input onkeypress="mascara(this, telefone)" maxlength="15" placeholder="(__) _____-____" type="text">…
-
2
votes2
answers905
viewsA: Show success message without leaving the page
Since php only runs on the server side, the information arrives on the server, it gives you a feedback, and the page loads. You will need to use my friend ajax. Use the upload method (I’m using…
-
0
votes3
answers4060
viewsA: Data modeling for products
A good strategy is to create a price table, it can contain brand, but as this is a product attribute, the correct one should be, each product, have a brand, and the same one have a reference in the…
-
3
votes2
answers414
viewsA: Check if it contains characters in the string
Use the trim(). stringExemplo = stringExemplo.trim(); it removes whitespace. You can use the str.replace also.
-
1
votes1
answer2168
viewsQ: How to open page in google Chrome ultilizando C#
I need to open a window using c# with a specific web page in Google Chrome (Not in the default browser). A possible solution would be to run a C#Cache, but I don’t know how to open only in Chrome.…
c#asked Jaffe.Marques 561 -
0
votes2
answers335
viewsA: I wanted to put an Alert in my login screen PHP, JS, HTML, MYSQL
You can give a echo "<script> alert("texto aqui") </script>"; however, I imagine you want to make a modal, Alerts do not work as well, especially on mobile devices. Take a look at here…
-
1
votes0
answers296
viewsQ: Error with the certificate when issuing NFC-e
I am trying to issue a tax coupon in PHP by ultilizing sped-nfe. XML files are being generated. Signed Xmls are also, at the time of sending the recipe, I get the following error: {"error":"Envio:…
-
1
votes2
answers1165
viewsA: Variable creation via Python user response
The user create is not possible like this. But here I have a solution a= str (input ('Existe mais produtos para serem adicionados?: ')) a2 = 0 a3 = 0 a4 = 0 if a == 'sim': a2 = 1 else: a3 = 1 But I…
-
1
votes1
answer252
viewsA: PYTHON - Storage of values, line by line, in txt
You use the a of append in the open and added to the \n The n jumps a line. So it would be something like teste = 'linha um' + '\n' arq = open('arquivo.txt','a') arq.write(teste)…
-
0
votes2
answers785
viewsA: No device appears for Androidstudio’s "run"
You can try going back to android studio the initial settings. Go to user folder C:\Users\Seu_usuario On this page, you should have a folder named after .AndroidStudio with its version assigned to…
android-studioanswered Jaffe.Marques 561 -
4
votes2
answers2211
viewsA: How to change the title of an Activity?
Just one more way You can try to switch via xml as well. On Androidmanifest.xml android:label="Relatório de vendas" Or, with the string reference android:label="@strings/Relatorio_de_vendas" For…
-
0
votes1
answer40
viewsA: Overlay on WEB
You can change the z-index, which is the layer that defines who stands in front of other elements, so if you increase the z-index of the back layers, they stayed on the #sidebar. Understanding the…
-
2
votes2
answers664
viewsA: Error trying to run Eclipse: Java was Started but Return Exit code =13. PATH IS CORRECT
See if the version of your eclipse is the same as the JDK you installed, 64bits or 32bits, see the version on prompt with the java -version. Check that the environment variables are configured…
-
4
votes1
answer566
viewsA: Decrypt sha512
Sha is not a form of encryption, there is no way back to the original value. If you need encryption, take a look Crypto-js A hash (or scrutiny) is a sequence of bits generated by a scatter…