Posts by Luan Castro • 161 points
5 posts
-
0
votes9
answers2096
viewsA: How to assign a function with parameters to click without executing it?
I can recommend two ways that wouldn’t interfere with the readability of your code... Create a "preparer" function for your events function mostraProdutosGrupo(g,elemento) { //codigo que mostra os…
-
1
votes3
answers311
viewsA: Problems with AJAX XML Request
If I understand correctly, what you want is to create a list based on XML items? If so, it is possible to do so as follows: //levando em conta que o XML já esta "parseado" dentro da variável 'xml'…
-
2
votes9
answers2644
viewsA: Best practice for creating if
Taking into account its algorithm, for the processor the difference is almost insignificant (as almost everyone said) however it is obvious that if that if is within a loop for billions this tiny…
-
1
votes5
answers12033
viewsA: How to change the value of a "date" attribute in Jquery?
date attributes can be changed with the jQuery date method a point solution may be as follows:... var order = $("#meu_elemento").data("order"); var indice = +(order.split("-")[1]); indice++;…
-
2
votes4
answers491
viewsA: How to get the name of the property to which a lambda expression refers?
You can take the property by the body of the lambda maybe the method below will solve... public String ObterNome<T> (Expression<Func<T, object>> expressao) { var lambda =…