Posts by Mateus Soriano • 304 points
13 posts
-
1
votes1
answer51
viewsA: How to return a given array value
I tweaked the code to work with one language or the other. However, in your array you should not count the audio tag. Not in this way of searching. In the code I added a check of which language is…
javascriptanswered Mateus Soriano 304 -
1
votes1
answer55
viewsA: How to fill in a "select" input based on the selection of another select?
Here is a suggestion to solve your problem... // ESTE SERIA O CONTEÚDO DO .js var json_cidades = { "estados": [ { "sigla": "AC", "nome": "Acre", "cidades": [ { "nome" : "Acrelândia", "bairros" : [ {…
-
0
votes1
answer36
viewsA: Event with Table Click
//associa um objeto JS a um elemento HTML usando Jquery var selMarcas = $("#selMarcas"); var corpoTabela = $("#corpoTabela"); var loading = $("#loading"); loading.hide(); function getMarcas() { var…
-
1
votes2
answers144
viewsA: Clear html content with jquery not working
Hello, good night! The command to clear is: $("#GridPartial").empty(); $("#GridPartial").html("seu conteúdo");
-
1
votes1
answer196
viewsA: Error when adding foreign key to table
Hello, good afternoon! You defined the id. field as the primary key and not the tela_initial_id field. vc can change in the table the primary key to be the tela_initial_id or change in the alter…
-
0
votes2
answers295
viewsA: Return value per json and return to a function
Hello, good afternoon! Follow an example using a GET server request In the function, you must replace the URL with the method path in your controller. (for example: /api/Messages/Verification)…
-
0
votes2
answers389
viewsA: SQL - Doubt Query Exists and Not Exists
Hello, good morning! Your query can be done as below: select editora.CODEDI, editora.NOMEDI from Editora editora inner join Exemplar exemplar on editora.CODEDI = exemplar.CODEDI inner join Obra obra…
-
3
votes1
answer32
viewsA: How to use Dropdownlistfor
Hello, good night! I’m not sure I understand what you need, but I think this template below might help you get an idea of how to solve your issue: Note: This is a very didactic example and mainly in…
-
0
votes2
answers1261
viewsA: Python URI Online Judge (1021): what’s wrong with my code?
Hello, good afternoon! The sum of the value of the notes and coins, at the end, gave difference of cents due to rounding that is not present in its code. When you display two decimal places only,…
-
0
votes1
answer39
viewsA: Asp net mvc project integration with sql server
Hello, good afternoon! Here is a tutorial in English from the next Microsoft that will help you step by step how to do what you need. Tutorial: Introduction to EF Core in an ASP.NET MVC web…
-
0
votes1
answer40
viewsA: Pull data from an input
Hello, good afternoon! Follow an example I did to try to help you. $('#ativacao')[0].valueAsDate = new Date(); $('#ativacao').change(function() { var data = this.valueAsDate;…
-
4
votes2
answers1102
viewsA: Change part color of a string
Follow an example of changing part of a string. var valor = "Aqui vem o resultado da sua string"; var termo = "resultado"; var str = valor.replace(termo, "<span class='AlteraCor'>" + termo +…
-
1
votes1
answer59
viewsA: Alert number of unread messages
From what I understand, you will run your query and you will receive a numerical value of how many new messages there are for the user, right? So, you can call a javascript function by passing the…
javascriptanswered Mateus Soriano 304