Posts by Jonas Centenaro • 499 points
27 posts
-
0
votes1
answer59
viewsQ: How to set hostname in publication Asp net core 3.1 selfHosted
I have a working project which the publication preference is in the format of publish to self hosted folder (selfhosted) (without using IIS). Reason for this: the goal is to decrease the…
-
1
votes0
answers44
viewsQ: How to publish an ASP.NET (.NET Framework) project without the iis dependency
I have a project working but with the dependency of IIS. In some researches I found the possibility of making the project self host. As in the link: http://www.macoratti.net/18/05/net_conc3.htm But…
-
0
votes1
answer71
viewsQ: Javascript code gets all white in Visual studio, no syntax highlighting
I found a similar situation but referring to "Visual Studio Code" as follows in this link: Code gets all white in VS Code, no syntax highlighting or suggestions but my problem occurs in "Visual…
-
0
votes0
answers31
viewsQ: how to remove httpredirect web.config
I’m testing the redirect in development, running the site through visual studio. And to test the redirect I added the following chunk of code to the web.config <configuration>…
-
0
votes0
answers44
viewsQ: How to write a temporary table
I need to write a temporary table in sql to use in a subquery. I already have two ways, but they produce unpleasant effects. I imagine there’s another way to create this temporary table, but I…
-
1
votes1
answer79
viewsQ: How to locate 2 matches that are interspersed with the same regex
In the following string: 83/80/95 I need you to find 83/80 and 80/95, using the same regex. I am using the following regex: (\d{2,4})[\/](\d{2,4}) The first Match "83/80" is found, but the second is…
-
4
votes1
answer3956
viewsA: Run function after 3 seconds Jquery/Javascript
Circumde with setTimeout(function(){ /*código a ser executado no tempo informado*/ }, 3000); the 3000 parameter is the time in milliseconds var valor_min = 20; var valor_max = 40;…
-
0
votes1
answer1035
viewsA: Slow datatable when loading many results
Your querypedidos loop performs other query internally I suggest you first change to return the required data in just one query for example: SELECT * FROM pedidos p inner join clientes c on…
-
0
votes1
answer27
viewsA: Chart value only appears when page resolution is changed
After: var chartHours = Chartist.Line('#chartHours', dataSales, optionsSales, responsiveSales); Add: setTimeout(function() { chartHours.update(); }, 0); Related problem:…
javascriptanswered Jonas Centenaro 499 -
3
votes1
answer54
viewsA: That paints the cell when it printa x
Bruno, the main problem is that I was trying to set the events before the cells existed, so in the following code: when cells are created events are set to new cells. I also added a toLowerCase to…
-
1
votes2
answers301
viewsA: Bring the records from one table according to the Where from another
Add the clause to return only matricules that do not have matricules with status other than 0 ... WHERE M.STATUS = 0 and not exists (select 1 from dbo.MATRICULA ma where ma.FISICA = M.FISICA and…
-
1
votes3
answers51
viewsA: If logic with bool type and Object type
Test the desired type and value as per: for(let i = 0; i < mensagemDeErroDoInput.length; i++) { var statusInputCorrente = statusInput[mensagemDeErroDoInput[i].nome]; if((typeof…
-
2
votes1
answer1913
viewsQ: The name 'Component' does not exist in the current context
I’m trying to create a Component view to reuse on the pages, I’m trying to follow some video tutorials. I’ve installed via nuget the entire Microsoft.AspNetCore.Mvc, but when I try to call it from…
-
1
votes2
answers75
viewsA: Slides, transitioning images with JS and radio, while leaning the mouse over the image pause the transition, while removing continue the transition
I separated the variable i and the function moves from within the start function, added value to the radios to facilitate the identification of where the current slider is. Stores the setInterval…
-
0
votes1
answer63
viewsA: Formulation of logic for problem solving
You said a store "can" register 5 tasks and then one more. Then we have a maximum of 6 tasks. This table of yours in html should contain 6 columns of tasks, task1 to task5 and the new task. Problem…
-
3
votes2
answers355
viewsA: How to create a fallback when importing CSS files?
Tests the number of css rules chosen, The script I leave below only tests a css if it has been loaded, it is up to you to test more than one create an object array with the external css path you…
javascriptanswered Jonas Centenaro 499 -
3
votes2
answers7697
viewsA: Write each step of a factorial calculation
To return the steps of each calculation, concateno em uma string a cada calculo realizado fincando assim: var fatorial=1; var explicaFator = ''; var num=parseInt(prompt("Digite um número: "));…
-
2
votes1
answer308
viewsA: Browser talk to user press key
In the same 'Web Speech API' api that is using "Speech recognition" there is also the "Speech Synthesis", A good reading can be obtained in:…
-
1
votes1
answer33
viewsA: Grouping into dynamic objects
In your question you did not identify the return of Php as an array with the presence of '[]' and the separation of items with ',' so consider your PHP returning an array of the objects cited in the…
jqueryanswered Jonas Centenaro 499 -
1
votes1
answer189
viewsA: Middle Order in Javascript
So that in the first box the averages of the values obtained in the columns of the results appear. Create the following function: function calculaMediaFinal () { var soma = 0; for(var i = 1; i <=…
-
0
votes1
answer157
viewsA: Problem with lottery game code
The id of the elements is case-sensitive. In the stretch var botaoAdivinhar = document.getElementById('Adivinhar'); change the id string from Guess to guess'…
-
0
votes1
answer41
viewsA: Display an online java object list
Do it: var frutasEmLinha = ""; frutas.forEach(function(fruta, index, array){ frutasEmLinha += fruta.nome; if(index < array.length - 1){ frutasEmLinha += ', '; } });…
javascriptanswered Jonas Centenaro 499 -
-1
votes1
answer661
viewsA: Function to open the full screen (Fullscreen) at angular 2
Create this function: function requestFullScreen(element) { // Supports most browsers and their versions. var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen ||…
-
0
votes1
answer39
viewsA: Unexpected behavior with basic Javascript operations
This calculation and the exact result of 0.4 seems so easy to us, but in Javascript, all numbers are floating point numbers of the IEEE 754 standard. Due to the binary nature of its encoding, some…
javascriptanswered Jonas Centenaro 499 -
1
votes2
answers113
viewsA: Javascript find part of the text and replace (with variable)
Looking at his code, he was trying to replace the string that would be the innerHTML of the element with id="gallery". But innerHTML is the internal content, and it did not contain the "start"…
javascriptanswered Jonas Centenaro 499 -
2
votes1
answer30
viewsA: Plugin for Carousel comJQuery
Use the Slick plugin, http://kenwheeler.github.io/slick/ Simple as follows small example: <div class="slick-slider"> <div>suaImagemAqui1</div> <div>suaImagemAqui2</div>…
-
3
votes2
answers431
viewsA: Increase by 2 when activating Function
With regard to the +2 increment I suggest: function clickAumento () { document.getElementById('marioClick').value = total += 2; }