Posts by Roberto Compassi • 82 points
13 posts
-
-1
votes1
answer1122
viewsA: How to get 'unique identifier' from browser
You want to create a GUID (Globally Unique Identifier) that, according to RFC 4122, are identifiers with a certain guarantee of exclusivity. The best way to generate them is to follow the RFC…
-
0
votes1
answer529
viewsA: Jquery - Trying to clear a select
I imagine you have already cleaned the options list and updated with the new city result from the selected UF, done this remove any "Selected" attribute from all options of the select of cities,…
-
0
votes1
answer252
viewsA: Angular: insert date in input only
You can achieve this with the help of angular2-text-Mask Component public mask = { guide: true, showMask : true, mask: [/\d/, /\d/, '/', /\d/, /\d/, '/',/\d/, /\d/,/\d/, /\d/] }; Template…
-
0
votes1
answer1476
viewsA: Place Font Awesome icons inside the sorted lists in the menu
The best way to use Font Awesome would be to insert the icon tag you want inside each element . Another way is by inserting via css through the :before of the element consulted the content code in…
-
1
votes1
answer81
viewsA: anchorage within select option
What you can do is trigger an event by selecting a select option, for example; //monitora alterações no select "#meu-select" $(document).on("change", "#meu-select", function(e){ if($(this).val() ==…
-
1
votes2
answers136
viewsA: Prevent DIV from changing a defined size
You can add CSS in the client name line to not exceed more than one line, another important thing is to add "display: block" in the css of your main div making this div with a specified fixed…
-
0
votes2
answers44
viewsA: Alert de Sucesso
The example below shows your code displaying the successful div to run ajax successfully. function marcar(e) { $.ajax({ url: '/MarcarAmigo/MarcarAmigos/', type: "POST", cache: false, data: {…
-
0
votes1
answer65
viewsA: Mobile responsive image
The bootstrap itself already has classes ready for this, not to display a gift element on different devices, Bootstrap 4 https://getbootstrap.com/docs/4.0/utilities/display/ Boostrap 3 Example…
-
-1
votes1
answer1069
viewsA: Open dropdown over the div
Here is a suggestion Have you tried using css in the parent and child container: .elemento-pai{ position: relative } .elemento-filho{ position: absolute; z-index: 1; }…
-
1
votes2
answers99
viewsA: Compare a column’s value with the checkbox
td = tr[i].getElementsByTagName("td")[3]; console.log(td); debugger; var valorTd = (td == "True" ? true : false); if (valorTd == $('#Produtos').is(":checked")) { …
-
0
votes1
answer292
viewsA: How to check if data already exists in the bank before inserting another in angular?
I believe that the best way would be to do this at the proper time to insert and through and only from your backend code do this check if it already exists, if there is no insert
-
2
votes1
answer1671
viewsA: How to change the image displayed in the Desktop and Mobile versions of a website
In your CSS file you can use Media Query, which makes it possible to change the behavior of CSS for different resolutions. In this case the ideal would be to have two different images in your html.…
-
2
votes2
answers379
viewsA: Fixed form goes over menu
If the menu is at the top, use a margin from the top to make sure it doesn’t get on the menu, margin-top: 150px and use the property z-index: 999 to ensure that it stays on the elements in a fixed…