Posts by Randrade • 21,612 points
490 posts
-
5
votes1
answer99
viewsA: How to force Highcharts to show all points?
The highcharts works with the concept of data grouping for better data visualization. When using the grouping, sampling is done on the basis of possible values such as mean or sum. You can disable…
-
18
votes1
answer256
viewsQ: What is the difference between M.dot, responsive layout and adaptive layout?
Always when we search for responsive web development we find various ways to do the same thing. Accessing the site of the same Sopt, we can see that it has a different layout for mobile devices and…
responsive-layoutasked Randrade 21,612 -
4
votes1
answer176
viewsQ: Project error when upgrading Visual Studio 2017 to version 15.6.0
After upgrading the Visual Studio version to the update 15.6.0 all my projects (C#) have shown these errors: The "ResolveAssemblyReference" task could not be initialized with its input parameters…
visual-studio-2017asked Randrade 21,612 -
5
votes1
answer176
viewsA: Project error when upgrading Visual Studio 2017 to version 15.6.0
In accordance with this answer in Soen, the problem was that the update corrupted the file Microsoft.Common.CurrentVersion.targets. Just update this file that problem is fixed. Standard directory VS…
visual-studio-2017answered Randrade 21,612 -
5
votes1
answer98
viewsA: Print single element on all printing pages
You can use the @print media for that reason. Translating the text (Google Translate) we have it: Intended for paged material and documents viewed on screen in printed view mode. In summary, it will…
-
6
votes6
answers1015
viewsA: How could I highlight the radio button that is selected?
Maybe just "up" the selected button a little? .btn.btn-default.active { bottom: 3px; } See the full example. <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"…
-
0
votes2
answers156
viewsA: How to validate an upload by file name?
You can use the property name of file object. Would be function validaName(el) { var name = el.files[0].name if (name != 'newFile.mpg') { console.log('erro: O nome do arquivo é: ' + name) } }…
-
1
votes1
answer197
viewsA: jQuery Slider - Jump between defined values and Sync with other 2 sliders
The first step is to set the value of the sliders range. For this we will use the example of Jquery UI itself. Just set the max slider size as the array - 1, as in the example below: var arrayCPU =…
-
4
votes2
answers449
viewsA: How to make a slider footer by running the site partners?
By analyzing the source code website you posted, we can see that it uses the Owl.carousel.js, according to the code below: <script type='text/javascript'…
-
10
votes4
answers2632
viewsA: What is the equivalent of CSS media queries in Javascript?
You can use the Window.matchMedia() for this. See the example below. if (window.matchMedia("(min-width:800px)").matches) { /* a viewport tem pelo menos 800 pixels de largura */ console.log('a…
-
0
votes2
answers2277
viewsA: Pass jquery parameters to Url.Action ASP.NET MVC
You can concatenate the values, something like this: var conta = "3cb012d1-6ceb-436f-8a0f-22c713703804"; var dataPesquisa = "31/12/2009"; var url = '@Url.Action("ExtratoPrint",…
-
1
votes1
answer27
viewsA: Field Textbox search Company and Category and Field Dropdownlist Cities search Cities how to do Includes in SQL - Asp.Net MVC
According to the premise of his previous doubt, just do the following for your search: public ActionResult Resultado(string pesquisaEmpresaOuCategoria, string cidade) { if…
asp.net-mvcanswered Randrade 21,612 -
1
votes1
answer164
viewsA: How to include class in Asp.Net MVC search
You can use the .Any() for that reason. public ActionResult Resultado(string pesquisaEmpresaOuCategoria) { if (string.IsNullOrEmpty(pesquisaEmpresaOuCategoria)) { return Redirect("Index"); } /*…
-
1
votes2
answers256
viewsA: Show "Loading..." while browsing between pages
Your Html.ActionLink() will generate a html similar to this: <a href="/DeliveryService/Import">Importar</a> Once done, just intercept the requests and display the GIF. Below is a simple…
-
4
votes3
answers3345
viewsA: Go through jquery inputs and check if you have a certain class in input
Just use the .hasClass() for that reason. $("#tabelaPresentarion > li").each(function(index) { if ($(this).hasClass('active')) console.log("O elemento " + index + ": " + $(this).text() + " está…
-
2
votes2
answers1946
viewsA: Datatables problems using PHP and Mysql
Datatables already has a few ways you can do this. I will demonstrate a shape with fixed data, but just change to your example: $(document).ready(function() { var colunas = [{ title: "Name" }, {…
-
6
votes2
answers272
viewsQ: Focus() event does not work on the browser console
Whenever I want to test something through the web I end up using the console browser (F12 > Console) to check some behaving, especially in the case of javascript. However, I recently noticed that…
-
3
votes5
answers4681
viewsA: How to make a Rigger for a SEM jQuery event?
It would not just be the use of .click()? function Hello() { console.log('olá mundo'); } document.getElementById('button').click(); <button id="button" onclick="Hello()">Clique em…
-
0
votes1
answer301
viewsA: I can’t do doughnut and chartjs pie!
You have two problems in your code. The first is that the id of canvas is chartDonut and in your script you are using Chartdonut. The second are yours options. See the list of what you can use. for…
-
1
votes1
answer344
viewsA: Category Filter
Your problem is that there are some errors in the selectors you are using. The first is that there is no element that meets the requirement below: $('.cursos div').show() Above you are searching all…
-
3
votes2
answers1153
viewsA: Hypothesis tests with C# - Merge (sum) of values to find result
You can use recursion for this. For this example, we will make a for of all the bank’s valuables. In each loop, we try to verify if there is a possibility, that is, we will look for all possible…
-
1
votes1
answer80
viewsA: Loads the id in Hidden using autocomplete
You must use the event select for this. See a basic example below: $(document).ready(function() { $(".nomeCliente").autocomplete({ delay: 100, source: function(request, response) { var suggestURL =…
javascriptanswered Randrade 21,612 -
2
votes2
answers83
viewsA: Locking in field in Div Occult
You can go through all the child elements of your div and disable/enable depending on your need. Below I made an example, with the for() redundant, just to illustrate what I’m talking about.…
javascriptanswered Randrade 21,612 -
2
votes3
answers1120
viewsA: Enable Submit button if CPF is valid
I’ll make some small changes to your code. Instead of returning a string to validate the CPF, I changed it to return a boolean value (true/false). This way, you just do the comparison normally.…
-
4
votes1
answer236
viewsA: Very large input fields
The difference is that in the example the code is inside a Container (container class). The class container does not appear in the example because, generally, it is single per page. But, if you…
twitter-bootstrapanswered Randrade 21,612 -
8
votes4
answers19332
viewsA: Compare current date with javascript
As everyone has already said, the reason for this comparison is the time that is being used. If you want to compare only the dates, you can use the toDateString(). See the example below: var hoje =…
-
7
votes3
answers2223
viewsA: How to delete files from a recursively expression-based folder?
Using the cmd, you can do the following: del /s *.{sua extensão} or if you wish by file name, you can do the following: del /s LX* Remembering that for this you must be in the "root directory", ie…
-
17
votes3
answers747
viewsQ: How to test my site on a slow internet?
When completing the development of a website or system, we always test its performance with our internet. Faced with this, there is some way to simulate the performance of my system a slow internet…
-
17
votes3
answers747
viewsA: How to test my site on a slow internet?
One way to do this is by using Google Chrome itself. With it you can configure the speed you want to perform such tests. To use, just go to developer tools (F12), on the flap Network and select the…
-
0
votes4
answers903
viewsA: Validation of Inputs with javascript
Your problem is just the fact that you’re putting the retorno = true in the else. The way you did, get the last item with the class .required if you have any value, the return value will be true,…
-
5
votes2
answers3218
viewsA: Clear Modal Bootstrap
You can clean up the inputs after the event Hidden.bs.modal be called. A simple example would be this: $(document).ready(function() { $('.modal').on('hidden.bs.modal', function() {…
-
2
votes1
answer580
viewsA: How to use javascript code inside if Razor?
Use the pseudo-element <text> to accomplish what you want. Your code would look like this: <script type="text/javascript"> @if(Model.File == true) { //Como usar javascript aqui ?…
-
4
votes4
answers4653
viewsA: Icone in input with bootstrap
You can use the class input-group-addon to do as you wish. See the low example: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script…
-
6
votes3
answers1068
viewsA: How to implement a "scroll Hijacking"
First, let’s understand better what it means Hijacking Scroll. The literal translation of the term (by Google Translate) is "roll hijacking", which perfectly defines what is. Scroll hijacking is…
-
19
votes2
answers2292
viewsA: Operations with time quantities and conversion between time units
You can add the hours normally in C#. For this, just ensure that the time is one time interval. You can perform operations, without problems, with formats like Timespan and Datetime (for dates,…
-
20
votes1
answer16891
viewsA: What does COLLATE LATIN1_GENERAL_CS_AI do?
According to the collate documentation (translated by Google) is: COLLATE is a clause that can be applied to a database definition or a column definition to define the grouping or a string…
-
0
votes2
answers162
viewsA: Skip path that CSS "traverses"
You can do in the asked way, the only difference is the style will be applied in the elements within a who possess the class c. That is, if you possess any element outside of b with class c, he will…
-
4
votes2
answers205
viewsA: Sort files by name c#
Following @jbueno’s reply, you can use the Path.Getfilename to return only the file name, and proceed with the sorting with the .Split('_')[0], to use only numbers. See the example below: var…
-
3
votes3
answers1214
viewsA: How to style the input type search "clean" icon?
In this case what you want is the ::-Webkit-search-Cancel-button. It is the pseudo CSS element that represents the "cancel button". To style the same you can do something like this: #Search { width:…
-
4
votes1
answer29
viewsA: Does the tabindex attribute work in the opera browser?
On the link you posted talk that supports. see the image below that was taken from the link : See also what it says to Mozilla Developer Network (MDN) Documentation - tabindex attribute says: You…
-
3
votes1
answer371
viewsA: Lambda - how to use the operator || (OR) in a . Any()
I’m not sure I understand your problem, but your code works perfectly. Note that when you use .any() your answer will be a bool, that is to say, true or false. If you are performing this as a filter…
-
5
votes1
answer546
viewsQ: Difference between Users and Logins
In SQL Server we have the option to create logins and database users. What’s the difference between the two?…
-
3
votes1
answer301
viewsA: Return date x days left to arrive
Let’s divide this into three steps. First, you must get the current date. After that, you add that date with the amount of days informed by the user and finally, just add in your filter. See the…
-
4
votes1
answer165
viewsA: Is there any way to manipulate the brightness of the image through Canvas?
In short, and in an easy way, just multiply the RGB values (separately) by a value. If the value is greater than 1, you will be increasing the brightness. With this, logically, if the value is less…
-
2
votes4
answers54
viewsA: Doubt about the use of the VS2015 SPA Template
If you just want to clear the form, I don’t see the need to make one POST for this. You can just refresh the page or "reset" the form would solve your problem. To refresh the page, you can do…
-
3
votes2
answers51
viewsA: how to identify disable tag with jQuery
You can use the selector :disabled for that. This way you will get all the inputs disabled, see the example below: $('input:disabled').removeClass('form_campos').addClass('form_disabled');…
-
3
votes2
answers1578
viewsA: How to go back to the previous page when clicking Esc?
Just you check if the pressed key was the ESC (key Code 27) and use the Window history. to return to the previous page. See the example below: document.onkeyup = function(e) { e = e || window.event;…
javascriptanswered Randrade 21,612 -
3
votes1
answer32
viewsA: 'Search in All' using Linqjs
You cannot access because the item with ID 5512 is on a list within a list, ie when doing .Where("$.id==5512") you are seeking only in the parent elements and not in children. To do what you want,…
-
2
votes1
answer2126
viewsA: Load a table dynamically with ajax
In his Controller you are returning a View, but in his Ajax you’re waiting for a list. A solution would only be to return the list to the View, with this, create an Action to return the JSON. In…
-
5
votes2
answers213
viewsA: How to remove img tags from text?
You can also use the following expression for this: var textoConvertido = html.replace(/<img[^>]*>/g, ''); See the example below: var html = 'Vestibulum varius lectus a ante euismod <img…
javascriptanswered Randrade 21,612