Posts by António Almeida • 600 points
5 posts
-
0
votes2
answers879
viewsA: How can I prevent a user from submitting the same form multiple times?
Can prevent this situation doing for example this: <form onsubmit="if(typeof fSub !== 'undefined') return false; fSub = true;"> Note: You can declare the variable fSub overall to avoid type…
-
13
votes3
answers799
viewsQ: Floats module in PHP returns integers?
How do I get the rest of the division (operation module %) with decimal places when using a divisor or dividend float? Example: echo 5 % 3; // imprime 2 como é esperado echo 5.6 % 3; // imprime 2…
-
18
votes3
answers14753
viewsQ: How do I remove a folder from Git’s history?
I started a while ago to develop a web page, which is well organized, has folders for everything, example from the root of the repository/project: account/ products/ js/ css/ img/ data/ *(pdfs e…
gitasked António Almeida 600 -
3
votes9
answers27569
viewsA: How do I read Javascript URL values (Querystring)?
If you want to use a framework, like jquery for example, you can use a plugin like this: https://github.com/promatik/jQuery-Dynamic-URL (example of use here) Allows you to do for example:…
-
14
votes4
answers15388
viewsA: How to make a table responsive using (Twitter) Bootstrap?
You can hide any object by class or id using the following code: @media (max-width:768px) { #id_a_ocultar_em_tablet { display: none; } .classe_a_ocultar_em_tablet { display: none; } } @media…