Posts by Rafael Lacerda • 444 points
18 posts
-
1
votes2
answers681
viewsA: Error in injection of angular module dependencies
The way you declared the services, the second is overwriting the first, because when using the "[]" dependency injector inside the module, the angular creates a new module. I suggest you try it this…
-
0
votes1
answer954
viewsA: Detect screen size and scroll the responsive element
The height of your "aside" does not take the whole resolution, because you did not set a height for the div with the "content" class that is the parent of it. You set the size for it, its height…
-
5
votes2
answers1166
viewsA: -ms-flexbox and flexbox do not work in Internet Explorer
Face really the "flex" does not work on IE 9, it works a little on IE 10 and only from the 11 that actually works. Here you can see the browsers and the versions that support. Here’s an example of…
-
1
votes1
answer90
viewsA: Cell reordering in Bootstrap
For you to be able to reorder according to the resolution, you would have to change your Ivs to flex, so you can use "order". I made an example for you that when the resolution is less than 767px,…
-
0
votes5
answers1091
viewsA: Pros and cons of a 100% HTML/Javascript web application
In my view this is the best way to work on the Web, because most other work models, traffic HTML from server to client and this doesn’t make much sense. This way you get a performance gain, only…
-
3
votes1
answer723
viewsA: Problem loading image in HTML (Performance)
Have you tried to perform asynchronous loading of JS files? In case you cannot use a tool called Labjs. You only reference it in before the body closes and load your scripts in this way. //Load…
-
1
votes1
answer2499
viewsA: How to call controller action?
You can call the action as follows. $.ajax ({ url: '/controller/action', type: 'GET', (ou method que precisa) success: function (dados) { var resultado = dados; // Caso vá retornar alguma coisa },…
-
2
votes3
answers3594
viewsA: What is the difference between display:inline-block and float:left
In some situations one can replace the other, but they don’t necessarily do the same thing. Take a look at this article http://www.tutorialwebdesign.com.br/display-vs-float/ that has explanation…
-
1
votes1
answer197
viewsA: Added multiple items in a Datagrid by List<>
You can add the values as follows. dataGridView1.Rows.Add(); dataGridView1.Rows[dataGridView1.Rows.Count-1].Cells[0].Value = textBox1.Text;…
-
1
votes2
answers2901
viewsA: Can iOS apps made in Phonegap be compiled in Windows?
Dude as far as I know this key you need to compile your application for Ios, it is only possible to generate through MAC OS X. But take a read on this article, it may help you…
-
1
votes2
answers256
viewsA: How to position an image with vertical-align?
As Diego said, the only way to work with vertical-align is by using table and table-Cell. If you really want to use it, try doing it this way. <header> <a href="#" id="conteudo"> <img…
-
1
votes1
answer504
viewsA: Circle with Percentage Effect jQuery
Look at this plugin https://github.com/Shopify/dashing. I think he can help you with whatever you want, the demo of what he’s capable of doing this one http://dashingdemo.herokuapp.com/sample…
jqueryanswered Rafael Lacerda 444 -
0
votes1
answer128
viewsA: Print colorful icone
Try to define a style for him inside the @media print { }
-
2
votes1
answer45
viewsA: Delete CSS applied to Object Brothers clicked with Javascript
You can do it this way. $('body').on('click', ' #palavras td', function (e){ $('#palavras td').each(function(){ $(this).css('background-color', '#fff'); }) $(this).css('background-color', '#333');…
-
1
votes1
answer84
viewsA: When I write in the div it goes out of place
Add a "display: flex" to your #middle id. There you can even remove the "display:inline-block" from the . box class #meio { width: 100%; text-align: center; display: flex; } .box { margin: 10px 4px;…
-
1
votes3
answers779
viewsA: Passage of parameter C#
You can pass this way too. Id = getVar("id"); $.ajax({ url: '/Solicitacao/ConsultaSolicitacao', data: { id: Id}, type: 'GET', success: function (dados) { }, error: function () { } });…
-
1
votes3
answers1809
viewsA: Assign received value via ajax to a variable
I’m not sure I understand what you want to do. Do you make a query that returns the articles right? And depending on the return of articles you want to return "true" or "false"?! var estado; var…
-
2
votes3
answers1809
viewsA: Assign received value via ajax to a variable
You can take the value obtained via ajax this way: $.ajax({ url: 'exemplo/consulta', type: 'GET', success: function (dados) { var resultado = dados; }, error: function () { } });…