Posts by Gabriel Heguedusch • 186 points
13 posts
-
-1
votes3
answers2499
viewsA: How to check and print repeat values in a vector
Buddy, I haven’t programmed for C in a while, but I did what you need in javascript, the logic is the same var array = [1,2,3,2,4,5,6,3,6,8,7,4] var arrayVerificado = []; for(var i = 0; i <…
-
1
votes3
answers241
viewsQ: Identifying SQL brothers
I built this link as an example of where I want to get http://sqlfiddle.com/#! 9/72f4b5/4 I have the student table. I have the table with the sibling ids My problem is, I need to make a select so…
-
0
votes1
answer166
viewsQ: Count in multiple tables
I have 3 tables I need a query that takes the name of the school, number of classes type A, Qtde of classes type B, Qtde of students who are in classes type A, and Qtde of students who are in…
-
1
votes2
answers192
viewsA: Log in with Asp.net 4.5 (Entity Framework)?
I wear it like this: using(var context = new SeuContexto()){ var Usuario = context.login.firstOrDefault(x=> x.usuario == txtlogin.text && x.senha == txtsenha.text) if(Usuario != null) {…
-
2
votes2
answers425
viewsA: Javascript Validates Date of Birth and Block Same Year
var data = new Date(new Date().getFullYear() - 1, 11, 31).toISOString().slice(0,10); document.getElementsByName("dataNasc")[0].setAttribute("max",…
-
0
votes3
answers218
viewsA: Problem with JS/Jquery/JSON/AJAX
As you are bringing an array of objects, to gain access, it will have to be: console.log(data.data[0].atributo);
-
5
votes5
answers4393
viewsA: Transforming a JSON information into a variable
https://jsfiddle.net/0wL68po2/ var objeto = { "pair": "BTCBRL", "last": 2280.0, "high": 2306.0, "low": 2205.0, "vol": 113.17267938, "vol_brl": 255658.20705113, "buy": 2263.0, "sell": 2279.77 }…
-
1
votes1
answer63
viewsQ: Open Search Description (press tab to search)
I made a system of extensions for the company and wanted to implement in this system the "press guide(tab) to search" that I see on various sites. I’ve done it every way I can, and I can’t bring…
-
0
votes3
answers1793
viewsA: AJAX with HTML data return
Well, actually what you’re returning is a text and then the browser will understand that it’s html. I don’t know the purpose of your return, if it’s just to show a value, or something like that. The…
-
3
votes4
answers3391
viewsA: Perform Jquery percentage calculation
$("#percentual").on('input',function() { var Valor = $("#valor").val(); var Porcentagem = $("#percentual").val(); var resultado = (Valor *…
-
0
votes1
answer111
viewsA: Mysql Connector sending null value
Your id is primary key and auto increment? if it is auto increment, it cannot be placed in the insert. Edit: I did the following: with the following code: static void Main(string[] args) { var…
-
0
votes2
answers613
viewsA: Ajax Jquery return variable giving error
In ajax there are some functions, one of them Success and the other error. $.ajax({ url: url success: function (parametro) { ... }, error: function(){....} use the error of the function that will…
-
0
votes1
answer1242
viewsA: How to display XML data in an HTML table
Xml example: Code example: $.ajax({ url: "ListaMonografias.jsp", success: function (xml) { var saida = ""; $(xml).find("monografia").each(function () { saida += "<tr>"; saida += "<td>" +…