Posts by user3010128 • 186 points
10 posts
-
1
votes2
answers179
viewsA: Enabling fields (array) with Jquery when checking checkbox
Hello, well I would do something like <div class="myclass"> <input id="check[1]" name="check[1]" type="checkbox" value=""> <input id="campo1[1]" name="campo1[1]" type="text" value=""…
-
2
votes1
answer341
viewsA: Working with list and objects in Java
Add the Book Class inside the library public class Biblioteca { private String nome; private String cidade; private int qtdFuncionarios; private ArrayList<Livro> lstLivro; } then create a…
javaanswered user3010128 186 -
1
votes2
answers1714
viewsA: Send a list of data in a viewbag and receive in a foreach in the view
var lista = linq.toList<suaClasse>(); ViewBag.MinhaView = lista; @foreach (var item in ViewBag.MinhaView as IList<suaClasse>) { //-- Codigo } Line = (your query expression) It is…
-
0
votes2
answers596
viewsA: How to route Gmaps with shapes/polygons
see if this can help you: //-- Classe responsável em buscar os pontos de rota (Curva a Curva) do Google private class getRoute extends AsyncTask<Void, Void, Void> { //-- Método de Execução da…
-
1
votes2
answers883
viewsA: Remove empty fields from an array
Hello, if I got your problem right, you can do the following by JS: Pass the result through a test regular expression, and ignore the ones that give false Ex.: var patt = /^([a-zA-Z])/g…
-
0
votes3
answers805
viewsA: Picking text from a particular column with jquery
Hello, to get the value "value" of a select I usually use in jQuery o . val() example: $("#usuario").change(function () { alert($("#usuario").val()); });
-
7
votes3
answers8395
viewsA: Deserialize JSON Array in an Object Array
Create the object with the desired fields type: struct ObjJogo { public string IdJogo { get; set; } public string Titulo { get; set; } public string DtaLancamento { get; set; } //-- e outros... }…
-
4
votes5
answers6065
viewsA: Get input array value
Good, If I understand right your doubt you can pass to a function by putting the "this" in the type onclick: <input type="button" value="teste" onclick="minhaFuncao(this)" /> <script>…
-
0
votes6
answers3120
viewsA: How can we not allow numbers in a textbox?
I usually use Jquery Mask (https://igorescobar.github.io/jQuery-Mask-Plugin/) then create the rules with regular expression ex: $('.soNumeros').mask('########', { 'translation': { #: { pattern:…
-
1
votes1
answer446
viewsA: Encrypt XML with TJMG Public Key
I don’t know if you’ve solved it yet, but for all intents and purposes try this: X509Certificate2 cert; try { //X509Store storeMy = new X509Store(StoreName.My, StoreLocation.CurrentUser);…