Posts by Thiago Dorneles • 167 points
12 posts
-
2
votes1
answer645
viewsA: Inserting documents from Mongodb
First of all, your property addressee is not an array type for you to be pushing. It is an object type. If you run person.endereco = req.body.endereco you could assign the value. But even better, if…
-
0
votes2
answers367
viewsA: How do I use a CSS from the site url?
To import a CSS file on a page just link inside the block HEAD of the page you want to use, example: <link href="CAMINHO_DO_ARQUIVO_CSS.css" rel="stylesheet" /> However, obviously, this css…
-
0
votes2
answers197
viewsA: Open div by clicking on a date
For use of date components, as you are using jQuery, I recommend using this following component jQuery Datepicker. He has the behavior you expect…
-
4
votes2
answers3902
viewsA: C# - How to remove the Maximize bar, Minimize, but only keep one Close button?
You have two alternatives. Disable buttons you don’t want through the Maximizebox and Minimizebox properties by assigning the False value to them. You can modify the style of the form through the…
-
1
votes1
answer1611
viewsA: Component Select2 with Angularjs
To use the Select2 component in Angularjs I recommend using this here. To have the behavior you are looking for you will need to create a property in the Controller (or anything else) you are using…
-
-2
votes4
answers79
viewsA: Error in SQL like
But your date field in the database is type STRING or DATE? I have worked with banks that did not accept to compare DATE using LIKE.
-
1
votes2
answers120
viewsA: How do I do css animation?
This type of animation can be done in two ways, CSS or Javascript. I prefer to use CSS whenever possible, depending on where you use it. Here are some links on how to do with CSS: Animation when…
-
1
votes2
answers2437
viewsA: remove the repeated values
It is no more practical to use the index method than to use a FOR? var valor = document.querySelector('ELEMENTO_A_SER_CAPTURADO').value; if (array.indexOf(valor) < 0) array.push(valor); else…
-
1
votes4
answers1474
viewsA: service returning result of a $http
But it already returns a callback that can be returning from its service. The example Jonatas answered here is a better way to work. When you run a $http it gives you some methods that are executed…
-
0
votes2
answers494
viewsA: Save data group in Post method
I did not analyze your code much, I did not understand what would be this object "Model" used in foreach. It would not be: Model.Anexos But anyway, you are sure that the Model object used in the…
-
0
votes4
answers2204
viewsA: Multiple items in a Mysql column
The problem you may have in storing in a single column is later to perform queries. Let’s say you want to filter the records of a single city. It will get a little more complex
-
1
votes2
answers2084
viewsA: Write input button in ASP.NET c#
The correct thing in this case is to create the element programmatically, using the objects, not to mount the string with the content that has to be rendered. To create the element to be rendered do…