All Questions

2
answers

What is the difference between SSE and Ajax?

I want to update a div that contains the credits of a client, as soon as I update the amount of credits in the Bank and I'm using setInterval : setInterval(function(){ ver_creditos(); }, 60000); Then I saw the function of...
asked on 07.06.2017 / 02:15
2
answers

Input mask with leading zeros

I have a numeric type input, which should only receive numbers (obvious) . However, some browsers let the user type alphanumeric characters. But the problem is not just that. I need to display 0 on the left as long as the input value h...
asked on 10.01.2017 / 20:04
2
answers

Represent relationships in json

What is the correct way or best practice for representing the relationships of a resource in json? As an example, I have the tables contrato , representante and empresa and the relationships contract N: 1 representative and...
asked on 14.03.2017 / 13:21
2
answers

Difference between button types

What's the difference between the following components? <button type="button">Click Me!</button> <asp:button ID="cmdAvancar" runat="server" >Click Me!</asp:button> <input type="submit" value="Submit"> I say for...
asked on 09.02.2017 / 19:02
2
answers

How to get an item from a list randomly?

Suppose I have the following list: frutas = ['abacate', 'mamão', 'laranja', 'uva', 'pêra'] I need to capture one of these elements of list randomly. How would I do this in Python?     
asked on 09.01.2017 / 19:31
2
answers

Running a script through the 'name' attribute does not work

Follow the code: <select class="form-control" name="dd_medidaAplicada" id="dd_medidaAplicada"> <option value="0"></option> <option value="cancelada">Advertência Cancelada</option> <option value="escrita">Adv...
asked on 17.04.2017 / 15:26
2
answers

Use AND within an INNER JOIN can?

I wonder if it is possible to use AND within a INNER JOIN , eg: SELECT * FROM tab1 INNER JOIN tab2 ON tab2.id2 = tab1.id1 AND tab2.camp1 = 'valor' INNER JOIN tab3 ON tab3.id3 = tab2.id2; I gave a rather silly exa...
asked on 10.02.2017 / 14:35
2
answers

How to hide one element after a certain time?

So, I have a div that appears every time I submit a form, I wanted to know how I can fade this div after some time.     
asked on 08.01.2017 / 00:05
3
answers

Is it necessary to use the third bind * parameter?

I would like to know if I should use the third value of bindValue() / bindParam() ? For example: $resultSQL->bindValue(1, $email, PDO::PARAM_STR); Or there's no need for me to use: $resultSQL->bindValue(1, $email);...
asked on 14.03.2017 / 13:53
2
answers

Change storage location in laravel 5.4

The current storage location for laravel is / laravel / storage / app / public . How do I switch to / laravel / public . I tried editing filesystems.php but I was not successful: Controller store function: public function store(Request $r...
asked on 17.02.2017 / 17:56