Posts by matmartino • 171 points
10 posts
-
0
votes1
answer280
viewsA: str.replace with javascript only works once!
The javascript replace replaces only the first occurrence of the string you pass as parameter. a solution would be to do something like this: while(infoComentarioStrReplace.indexOf(" $$") >= 0) {…
-
3
votes3
answers1050
viewsA: Use jQuery in a JS file
You do not need to make any statement within the index js., if you include calls to both scripts, you can normally use jquery in your js file. <script…
-
3
votes2
answers603
viewsA: How to update a row in the table with ajax?
The sponse will bring the return data from the get at the url updateTelefone.php, as I saw that the dataType: is json then the return will come in this format. When the request happens without…
-
2
votes2
answers36
viewsA: I enter a value in a div and it moves
to solve you only need to put the "vertical-align:top" property in "div.line div {" to align the div. <style> #contentor { width:315px; margin: 0 auto; } div.linha div { width: 100px; height:…
-
2
votes1
answer134
viewsA: Limit the size of an item in flexbox
you need to remove the display:flex of the button tags, also remove the property flex:1 from the second button and to align you can use the property Justify-content. Below is the corrected code. -…
-
2
votes3
answers496
viewsA: How to change Columns display order?
You can do it using display:flex, with it you can control the direction that the columns will be displayed through the property flex-Direction:(Row | Row-Reverse | column | column-Reverse), and if…
-
1
votes2
answers102
viewsA: How to create an Animation in Javascript using For
In this case, for the color to be changed within a time interval, the ideal is to use the setInterval() instead of the setTimeout(), because he will be executed repeatedly. Example using the…
-
1
votes2
answers1939
viewsA: Several tables side by side
In addition to adding the flex display in div that you are using as container you need to add the property flex-Shrink as 0 in the table, so that it is not limited to the window size. #div1 {…
-
0
votes1
answer88
viewsA: Add table with AJAX
From what I understand you want to add the content returned by the Ajax request in the table. As I saw that you are using jquery on the page I made some adjustments in creating the event using it. I…
-
0
votes2
answers81
viewsA: How to align elements on the page?
Hello, I made some adjustments to css just to align correctly the way you want. <style> /*Corpo da Página*/ body { background: url("https://i.imgur.com/ujnC90p.png") repeat; font-family: 'Open…