Posts by Thiago Magalhães • 1,912 points
59 posts
-
2
votes1
answer232
viewsA: Dynamic php SQL Server Quiz
I would create the model more or less as follows: Form CREATE TABLE [dbo].[formulario]( [id] [int] NOT NULL, // chave primaria [nome] [varchar](150) NOT NULL, [descricao] [varchar](max) NOT NULL,…
-
3
votes2
answers835
viewsA: Date range
An example of how it can be done... HTML5 <input type='date' id='d1' name='d1' min=""> <input type='date' id='d2' name='d2' min=""> JS (Jquery) <script>…
-
2
votes1
answer66
viewsA: What is the difference between Media Rule and Media Query?
As Media Rule what you say are the @media which are rules. They are used to apply a style based on the result of one or more Media Query. That is, the style that is contained in the @media rule will…
-
3
votes1
answer203
viewsA: How to redirect the entire bash script within the script itself?
Do it this way: { #seus comandos bash aqui } > output.txt 2>&1 NOTE: If you do not specify the output path, the file will be generated in the directory in which the bash script is.…
-
1
votes1
answer102
viewsA: What is the difference between the settings properties <Compilation> and <httpRuntime>?
As already answered by @Tetsuya Yamamoto in another question, briefly is this: The compilation selects which version of . NET Framework reference assemblies is used when running the build. And the…
-
3
votes1
answer135
viewsA: Turn div’s into input and validate them in a form
Like Answered by @Andrew Jackman in another question. Only form Elements are posted back to the server. Only form elements are sent to the server. That way, the best way for you to do what you want…
-
2
votes1
answer1339
viewsA: How to execute more than one waiting command in a file . bat
You can create a normal bat file with a command on each line. When running the bat it will execute the commands in sequence and wait for the command to finish running the next one, that is, if you…
-
5
votes1
answer782
viewsA: Identify screen size to load content asynchronously
You could capture the screen size and with it make the condition to check the screen size and tell which php file will be called. Adding the following code will take the window dimensions: var…
-
3
votes1
answer161
viewsA: Validate 2 or more emails in an input
Within the function of the focusout you could add a split and a forEach: var valor = "[email protected];[email protected];[email protected]" var contador = 0; var arr = valor.split(';') arr.forEach(…