Posts by Danilo Pádua • 1,127 points
38 posts
-
0
votes1
answer121
viewsA: Error using add-Migration command. Using json as configuration file
Check the structure of your project in Properties > App: Then check that this version is installed on your computer: C:/Program Files/dotnet/Shared/Microsoft.NETCore.App…
-
0
votes3
answers2135
viewsA: How to put an element in Fullscreen
Follow the code below HTML: <div id="DivFull"> <canvas style="background-color:red;" /> </div> <input type="button" value="clique para ativar tela cheia" id="btnFullScreen">…
-
0
votes2
answers634
viewsA: How to paint cell according to the value of a select?
Try to use the class bg-success: Source: W3school…
-
2
votes2
answers1678
viewsA: Insert image into email body
Where do you put the body email, you will assign tags HTML. Example: myMessage.message = "<img src='caminho_da_imagem' alt='Imagem' />" I’m using the myMessage.message as if it were the body…
-
0
votes2
answers1623
viewsA: Capture table elements with jquery
I made an example running here, see if it helps you: $("table td").on('click', function(e){ var linha = $(this).parent(); if($(linha).hasClass("marcado")) { $(linha).removeClass("marcado");…
-
6
votes3
answers13886
viewsA: Take the value of a dynamic select
See if that helps you: $("#caminhos").on('change', function(e){ alert($(this).val()) return false; }); <script…
-
1
votes1
answer178
viewsA: Slide Show with Divs
There is a simple way using the Bootstrap, follows an example: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script…
-
0
votes1
answer490
viewsA: Folder and image address with bootstrap Carousel
Friend if it’s to make one Carousel, you can’t call the image on div through the CSS, try to do so: <div class="carousel-inner" role="listbox"> <div class="item active"> <img…
-
2
votes4
answers16240
viewsA: HTML -Spacing between tds
Yes, there is a way using the border-collpse and border-spacing in the CSS: table td { border: solid 1px #000; } table{ border-collapse: separate; border-spacing: 10px; margin: 0 0 0 0; }…
-
4
votes1
answer393
viewsQ: Is it correct to declare GET/SET methods within a STRATEGY class?
I was left with a question when I went to create a project pattern of the type Strategy. It is correct to declare methods GET and SET in a class that implements an interface Strategy? I do not know…
-
12
votes3
answers19149
viewsA: Leaving Fullcalendar in the English language
Try changing your Fullcalendar settings like this: calendar = $('#calendar').fullCalendar({ ignoreTimezone: false, monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho',…
-
-1
votes1
answer102
viewsA: Datatable does not sort the field when changed the value locally
Put the "ordering": true in function InstanciaGrid(): function IntanciaGrid() { $('#gridTable').DataTable({ "aoColumnDefs": [ { 'bSortable': false, 'aTargets': [3] } ], //Inclua o ordering…
-
0
votes2
answers1445
viewsA: Calling JQUERY function with Primefaces
You have to import yours js file. which has the function it wants to call for it just include the outputScript in your code: <h:outputScript library="primefaces" name="arquivo.js" /> STACK…
-
0
votes2
answers2719
viewsA: Append/Prepend in DIV with fixed child - jQuery
Try to do with the :last-child after the .placholder: $(".container").find(".placeholder").append("<div class='um'>Um</div>")…
jqueryanswered Danilo Pádua 1,127 -
0
votes1
answer465
viewsA: toastr does not appear
Try it like this: toastAlert("error", "Sua Mensagem"); toastAlert("success", "Sua Mensagem");
jqueryanswered Danilo Pádua 1,127 -
3
votes1
answer289
viewsQ: The difference between cursor: no-drop and not-allowed in CSS
I would like to know the difference between the values no-drop and not-allowed of property cursor of CSS. span{ font-size: 30px; } .not-allowed{ cursor: not-allowed; } .no-drop{ cursor: no-drop; }…
-
0
votes3
answers72
viewsA: Page does Submit even with validation error
Change your $.ajax: $.ajax({ url : 'adicionadaIdeia', type : 'POST', async : false, data : $("#form1").serialize(), success : function(data) { document.getElementById("botao2").click(), }, error:…
-
2
votes2
answers136
viewsA: Is it possible to make the optgroup label selectable?
Well, I searched here in a secure source at W3school and really this is not possible with the tag <optgroup>, because it is a grouping option of <options> and not a dial. Source:…
htmlanswered Danilo Pádua 1,127 -
2
votes1
answer675
viewsA: How to change the volume of an <iframe> video by javascript?
I searched here on the Youtube API and look what I found: Disable the player sound. player.mute():Void Activates the sound of the player. player.unMute():Void Returns true if player is muted. If…
-
1
votes3
answers248
viewsA: How to take the value of an inputtext and generate an IMG URL
Good I think that’s what you asked for. I’m using jQuery to make it a little easier. Follow the code: $("#btnInput").on("click",function(e){ var urlFixa =…
-
9
votes2
answers355
viewsQ: Download file by mobile device
I have a link, and by clicking on this link he downloads an image. So far so good, plus when I access from some mobile device I can’t download this file, someone has some idea or solution to solve…
-
1
votes1
answer890
viewsA: Print HTML page in mobile browsers
You can put it in href itself <a href="javascript: window.print();" class="btn btn-primary no-print">Imprimir</a> JSFIDDLE: http://jsfiddle.net/0t27oovt/…
-
2
votes2
answers327
viewsQ: Set file name in input file dialog
Good morning, I wonder if there is any way to set a default name in the dialog input type="file".... And there is also how to define the path in which this dialog will open. Ex.: "/Downloads/", (I’d…
-
0
votes1
answer116
viewsQ: How to debug an external C# MVC application
I wonder if there is a way to debug a C# MVC application externally, I tried to use IIS Express, but without success, has anyone ever been through this or better, can anyone help me do that? Thank…
-
2
votes1
answer294
viewsQ: First value of Select2 is not shown when you use i18next
I am doing internationalization with the lib i18next, everything goes right, it translates puts the values within the select2, but the first value is not shown in any way, even if I open the select2…
-
3
votes1
answer184
viewsQ: Viewdata["Errormessage"] does not appear in view
Hi, I’m new to c# and would like to know why my Viewdata["Errormessage"] does not appear in my view. Controller: ViewData["ErrorMessage"] = "O e-mail digitado já se encontra registrado em nossa base…
-
4
votes1
answer317
viewsQ: How to make Regex to a "serial" number format?
How to make Regexp of the following format: 2015.1.123.5432 Does anyone have any idea?
-
12
votes3
answers3072
viewsQ: How to convert a string to List<int>
I have the following variable and would like to convert it to an integer list: string variavel = "1,2,3"; How to convert it to a list of integers?
-
3
votes6
answers4502
viewsA: How to use two CSS attributes at the same time?
HTML <!DOCTYPE html> <html> <body> <h1>Um dia eu aprendo</h1> <p>This is a paragraph.</p> </body> </html> CSS h1{ color:#CC0099; font-family:…
-
4
votes4
answers268
viewsA: How to improve this jQuery code?
$("#click_apoio").on('click', function( evento ){ evento.preventDefault(); if($("#institucional").hasClass('desativado')){ $("#institucional").removeClass('desativado').addClass('ativado');…
-
0
votes0
answers456
viewsQ: How to create Google Chrome App shortcut on desktop via script?
I have an App in Google Chrome and would like to put a link on my site that will cause you to create a shortcut on the user’s desktop. I know you have how to create by clicking the right mouse…
-
1
votes1
answer711
viewsA: Run a full screen Html5 video
Try this: <video controls id="myvideo"> <source src="somevideo.webm"></source> <source src="somevideo.mp4"></source> </video> Javascript: var elem =…
-
0
votes4
answers15429
viewsA: addClass and removeClass with Jquery
<div class="bolinha-dentro></div><a href="">Meu link</a> <div class="bolinha-dentro></div><a href="">Meu link</a> <div…
-
0
votes2
answers211
viewsA: Block text in textbox
<input type="text" id="exemplo" value="Exemplo" disabled /> After you apply the mask put for the inputText field to be disabled with the disable with the following jQuery:…
javascriptanswered Danilo Pádua 1,127 -
3
votes1
answer1072
viewsQ: API with Javascript
I would like to know how to make an API in the javascript language to return data as JSON. I need because I want to make a mobile app.
-
2
votes1
answer650
viewsA: How to call a function after the user drops the mouse click?
mouseup() The event is triggered when the mouse button is released. Note that the message is only displayed when the mouse button (any one) is released. Example of mouseup usage $(function(){…
-
2
votes2
answers1751
viewsA: How to center a slide?
Put the slide code between the tags and look if it works: <center> <div id="exemplo"> ... </div> </center> Try applying the CSS then, because consider the div id and…
-
3
votes3
answers20971
viewsA: How can I open a modal window with window.open()?
In fact, it is not possible to make a modal with window.open(), because it is a function that opens another page, in case you would have to use the window.Alert("Hello world!") to alert the user,…