Posts by Bruno • 496 points
32 posts
-
0
votes1
answer291
viewsA: Word break row in Bootstrap column
So Julio, in this case we can use the property and value: word-wrap: break-word;, together in your class that span will use. This property will break line in your text. For example: CSS span {…
-
0
votes1
answer24
viewsA: my jqery always shows the error "an error occurred while receiving the message"
I tried to use this code with an INPUT type field and it worked without problem. I don’t know if div this should work ... <input class="mesg"/> jQuery('body').on('keyup', '.mesg', function(e){…
-
1
votes2
answers590
viewsA: How to disable Chrome Pop-UP to save passwords?
We cannot disable this function directly via Javascript, as this is a config of the browser itself. But we can use a code to "bypass" this ... You can try copying the password to an 'Hidden' field…
-
1
votes2
answers167
viewsA: How to check if several dynamically created input is empty?
Try this : for(var x = 0; x < $('.req').length; x++){ if($('.req')[x].val() === ""){ console.info("Adicionar Css"); } }
-
1
votes2
answers97
viewsA: How to take content from a div with the same class?
Try this : HTML : <div class="conteudo-select" style="display: block;"> <div class="razaoSocial"> <a onclick="getValor(this.text);" href="#">Nicolas e Yuri Contábil ME</a>…
-
0
votes4
answers211
viewsA: jQuery Hover does not work
Try to use the following: $(document).on('hover','.buy', function(){ $(this).text('Ligue 0800 123 4567'); }, function(){ $(this).text('Gostou?Adquira já!'); });
-
1
votes1
answer94
viewsA: How to split a string with dynamic value?
The following code speaks for itself. It takes a string value, its dynamic id and distributes between 2 variables(String): var id = "suaIDgeradaDinamicamente"; var primeiraParteID =…
-
0
votes1
answer141
viewsA: NAV tag does not occupy specified width
Max-width é a largura máxima que o elemento pode ocupar. Not that he will actually occupy ... But how is 'set' to width;100% i believe your parent element is restricting its width. See devtools for…
-
1
votes3
answers115
viewsA: Comparison with the if
I believe you should replace your code with this: SetInterval(function() { roundedValue = Math.round(parseFloat(sensorValor) * 100) / 100; // roundedValue =…
-
2
votes3
answers45
viewsA: Click UL to A
This is how it works Young : The first line detects a click on the selector : submenu.ul And then simulate a click on that element of yours : .submit to $(document).on('click','submenu.ul',…
-
0
votes1
answer66
viewsA: Save Bitmap with Alpha
The way : ARGB_8888 It supports transparence, but initially the alpha channel is 'set' to opaque. You need to clear that pattern. Test the following : Canvas c = new Canvas(bm); c.drawColor(0,…
-
1
votes1
answer1079
viewsA: Take scroll bar on Ionic 3
Try to take with css : * { overflow-y: hidden !important; overflow-x: hidden !important; } Hug.
-
0
votes1
answer44
viewsA: E-mail after a change in the database
I believe that with this you can send email : Sending Email via PHP <body> <?php $to = "[email protected]"; $subject = "Assunto do Email"; $message = "<b>Mensagem…
-
0
votes2
answers43
viewsA: Error in Sass style sheet
Review your files sass, in any of them contains this Cód margin: 35px 0 0; } { Remove the key opening { that is to work. *I did not locate this code in what you put in the question.…
-
3
votes1
answer438
viewsA: Auto click on button with Tampermonkey
Test this : $('.thank_user').click(); The url can be set directly in tampermonkey on the line @Match.
-
0
votes2
answers35
viewsA: Menu close reads target as Undefined
Its function called closeMenuwas to receive some parameter : function closeMenu(event){. This (Event) is the parameter. And you call the function without passing any value to it : }closeMenu(); Try…
-
1
votes3
answers10154
viewsA: How to align one element on top of another with css?
It is necessary to add a div too. <p class="titulo"> <div id="umaDivQualquer"> <a href="javascript:void(0);">(ABC)</br> Texto de Teste </div> </a> CSS:…
-
1
votes4
answers1413
viewsA: Know what day falls next Monday
If you use any php version smaller than 5.3, use strtotime() : $dataStr = "2010-11-24"; $timestamp = strtotime($dataStr); echo date("d", $timestamp); If you use a version larger than or equal to…
-
1
votes2
answers39
viewsA: Is it possible to change the click function to another function type?
You can switch to another event yes, no problem I believe. Example : $('#newContosoChatMessage').focusin(function () { //Foco no elemento $('#newContosoChatMessage').blur(function () { //Saindo do…
-
1
votes1
answer45
viewsA: Remove jquery tab bottom line
Buddy, you got the property border in the element :<div id="tabs" class="ui-tabs ui-corner-all ui-widget ui-widget-content" ...></div>; Take the edge and success, here I am removing the…
-
3
votes2
answers773
viewsA: Javascript escaping backslash as I do so this does not occur!
try using double bars for each bar you want to use effectively. Something like : escrevanatela('$$\\gamma(z) = \\int_0^\\infty t^{z-1}e^{-t}dt\\,.$$'); function escrevanatela(conteudo) {…
-
1
votes1
answer42
viewsA: jQuery Store one item at a time
Are you having some problem initializing the var 'code'. This works, but remember that global variables are not recommended : var x = 0; function cardapio(cod){ x = cod; $('#cardapioModal').modal();…
-
0
votes2
answers250
viewsA: Concatenate string to all href of the page
I did a brief search and found this. You can use this Jquery code :$(window).on('hashchange', function(e){}); It detects change in the url, you can capture the new url and concatenate your code…
-
0
votes1
answer115
viewsA: Alert or Popup javascript after form validation in Sharepoint 2013
Welcome. I made a simple code to show you a very quiet idea of being implemented in any code. Link to the codepen: Example - Codepen In the HTML part, the text location you can change by javascript…
-
2
votes2
answers4321
viewsA: Formatting date and time with Javascript?
Just see how to string your date and test it: Ex: var formatoCompleto = "2017-01-05T14:35:17.437"; var dataFormatada = formatoCompleto.substring(0,formatoCompleto.indexOf("T")); var dadosData =…
-
2
votes2
answers58
viewsA: Syntax error on another machine
Good morning, I’m not from are python, but I googled it and I found this: open isn't missing in 2.4. What's missing is the with statement (added in Python 2.5 as PEP-0343) To do the same code…
-
0
votes1
answer293
viewsQ: Trigger ~ HTML5 Download Attribute
Good morning, you guys, I have the following flaw : I need to download some text files (.txt) with the attribute download but I need to do this automatically, when I click the page or a Rigger that…
-
2
votes4
answers1129
viewsQ: Last Child of Element Chain
I have a table of records and need to update the last element within a <td>, assuming I have the code below, is there any way to take the last element of the string, the element span with…
javascriptasked Bruno 496 -
0
votes1
answer168
viewsA: Jquery onclick and focusout
Try something like this mate. Try Something like this. var i = 0; $('#search_button').on('click', function(e){ if(i == 0){ i++; e.preventDefault(); $searchbar.slideToggle(300);…
-
-1
votes1
answer295
viewsA: Convert html table to XLSX
Thank you to whoever tried to help me in any way. I found the solution I wanted in a component: https://www.travismclarke.com/tableexport/…
-
-3
votes1
answer295
viewsQ: Convert html table to XLSX
I can only convert to .xls or .pdf but I need to .xlsx. The simpler the code, the better. ------ Requested example ------ I use the Salesforce platform, it has some changes in relation to html but I…
-
1
votes1
answer682
viewsQ: Limit elements when arriving in a div
Hello, I have a table of inputs (can be added more with a button) and I wanted that when I arrived at the footer, the inputs were not overlaid. I’m trying to get the top and the footer fixed on the…