Posts by alvarodms • 251 points
8 posts
-
1
votes3
answers791
viewsA: Help with QR Code reader in Cordova
var ref = window.open(barcode.result, '_blank'); without '' when referencing the variable barcode.result
-
1
votes2
answers622
viewsA: Change the value of a parameter passed to a function
If you need to simply get the id (counter) of each element in the function remover(), can do so: <br><div class="btn btn-primary" id="rmv_<?php echo $contador; ?>"…
-
0
votes2
answers45
viewsA: AJAX with sync error
I don’t know if you typed this JSON in your hand, but it is incorrect. Paste the contents on the site Jsonlint.com to see the result. Check if your GET method really is returning a valid JSON, which…
-
3
votes2
answers10368
viewsA: Show and hide input for javascript search field
You will need 2 events: 1) onclick image of the magnifying glass. By clicking, change the property display input for it to appear on the page (apparently, your code already does this) 2) onblur in…
-
3
votes4
answers356
viewsA: Two-dimensional Array
First, fix the syntax of for replacing , for ; Then, to exit both loops at the same time, the break will not solve. Encapsulate everything within a Function, and when booking the chair, call return…
-
3
votes3
answers989
viewsA: Execute command with variable -JS
You can use [] to access properties and methods of an object from the value of a variable. function efeito_pergunta(efeito) { $('#div_pergunta')[efeito](300); } See here an example working…
-
1
votes1
answer470
viewsA: Using JSON in c# and adding points in GMAPS
I believe the problem lies in the return of your method Carregar(). The JavascriptSerializer returns a JSON string, and not a object JSON. In order to be able to manipulate the return JSON, you must…
-
0
votes3
answers494
viewsA: Problem with a Boolean field on Asp.net MVC
You are probably passing the wrong amount on this assignment: @Html.CheckBoxFor(_ => alunoCurso.Aprovado, new { @class = "Aprovado", id = item.Key }) Your method Aprovar(int id) expects to…