All Questions

3
answers

How to separate a String according to a tab in C #?

I have a string in this format: string valores = "Numero1#Numero2#Numero3#Numero4#"; How do I debit it in an integer array to get this: int Numero[1] = Numero1; int Numero[2] = Numero2; int Numero[3] = Numero3; int Numero[4] = Numero4;...
asked on 02.05.2014 / 19:07
2
answers

What is the difference between the 'q' and 'blockquote' and 'cite' tags in HTML? And how do you use them correctly?

What is the difference between <q> and <blockquote> and <cite> , because everything stops me being for citation. Is there any good practice or correct way to use these tags correctly? We can use these tags o...
asked on 17.09.2018 / 14:51
4
answers

Capture screen size at requisition time

I would like to know if there is a way in JavaScript to execute methods at the moment of the request that the client makes to the server. I have a project where I use several large images in the occupied memory, and it would be interesting to ca...
asked on 27.02.2014 / 11:45
2
answers

Delete all tables from a bank at once

Is there a way I can delete an entire database at a single time? It is not drop , it is to delete only the records of all the tables belonging to the database.     
asked on 23.02.2015 / 19:46
2
answers

Using ';' before starting a [duplicate]

It has become common for me to find codes in github that start like this: ;(function(window){ 'use strict'; })(); I just never understood the following. What is the purpose of using ';' before starting the function declaration?     
asked on 19.03.2015 / 15:14
4
answers

Get random element from a ListT

I have List<int> numeros Is it possible to return a random element from this list?     
asked on 09.07.2014 / 16:12
3
answers

How to receive form data with pure HTML?

I created a simple form. In it I put: <form action="02.html" method="get" name="meu_formulario"> <input type="text" name="nome" size="60" maxlength="40"/> </form> I want to create the 02.html that receives this form...
asked on 14.01.2016 / 17:51
4
answers

Array of SQL conditions - PHP

Good afternoon, I am sending a search filter for my DB, and I want to make these conditions within an array, for example: $condicoes = array(); $nome = $_GET['nome']; if (!empty($nome)) { $condicoes = ("nome" => $nome); } $tipoAnimal =...
asked on 04.09.2014 / 21:23
3
answers

Is there comparator operator "in" in JavaScript?

In JavaScript is there a way to use in to check if the value of a variable is contained in a list of values? A visual example: if (tipoDemissao in (1,2,5)){ valorDemissao = 525.20; }     
asked on 12.04.2016 / 14:25
2
answers

How to get input using HTML and JavaScript

As a beginner in the 'JS' language, I would like to know how to simply get text from a <form> (without forwarding to another page and without changing the URL) and passing to a function like alert() when the user enter no...
asked on 19.06.2014 / 03:01