Posts by AKU • 393 points
32 posts
-
0
votes3
answers1191
viewsQ: How to add one element inside another
What I’m doing wrong in my example? var t = document.querySelector("#t"); t.prependChild('<div class="verde"></div>'); #t{ width: 300px; background: red; height: 300px; } .verde{…
javascriptasked AKU 393 -
0
votes0
answers49
viewsQ: How to remove text expansion arrow if you don’t need to
I want to remove the arrows (pointing down) posts that have no need for expansion (since there is not much text to be shown) and leave this arrow in the posts that has much more text, so that when…
javascriptasked AKU 393 -
-1
votes2
answers168
viewsQ: How to know if the text surpassed a div? using JS
#btn{ width: 100px; height: 100px; background-color: red; cursor: pointer; overflow: hidden; } <div id="btn"> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dignissimos nostrum nam…
javascriptasked AKU 393 -
-1
votes1
answer28
viewsQ: Conflict with this I get in function when I click, with this from AJAX
How do I remove the variable conflict? i already tried to put in a variable the THIS from outside not to generate conflict with the ajax THIS, even so did not change anything!…
-
0
votes2
answers37
viewsQ: How to make a selection with javascript
How to select test8 from the post I clicked?? var black = document.querySelectorAll(".test4"); for(var i = 0; i < black.length; i++){ black[i].addEventListener("click", selectRoxo); } function…
javascriptasked AKU 393 -
0
votes2
answers40
viewsQ: How to make two Select
I want to select the amount of like and slide of each post but am not getting the slide, someone can help me?…
-
1
votes1
answer93
viewsQ: How to select attributes and values in select
How to select attribute (obligate) of the category that this set, Every time I click the button!! var btn = document.querySelector("#btn"); var categorias = document.querySelector("#categorias");…
javascriptasked AKU 393 -
0
votes1
answer189
viewsQ: Select advanced sql
I would like the column id_post_gru to be filled in 2 based on the amount of id_group where there is 70 I did it separately and it works, but together it doesn’t! UPDATE posts SET id_post_gru =(…
-
1
votes3
answers108
viewsQ: My input checkbox does not support Javascript
What I want to do with the checkbox, is the same as the radio does using the Javascript. 'Cause I just don’t use the radio? It is because if the radio appear marked, there is no way I leave it…
-
-1
votes1
answer53
viewsQ: Error in my query ifnull. why?
Query that this marked red does not work and blue works! SELECT * FROM posts LEFT JOIN (SELECT COUNT(id_rela_post), ifnull(qt_vezes, 0), para FROM rela_post GROUP BY para) post_detalhe on…
-
-5
votes1
answer265
viewsQ: How do I Inner Join with these tables?
How would the SELECT query in Mysql from the Inf_musicas table?…
-
1
votes2
answers90
viewsQ: How to relate several tables?
Below I put an example I did in excel. How does a select exchanging the values of the table inf_musicas the value of the other corresponding tables? NOTE: I know the basics of SQL, I know you use…
-
0
votes0
answers46
viewsQ: How can I count Ikes from the relationship table
Need Select the posts along with the corresponding Ikes for each post. Cosegui select what I want, but when I use the error COUNT see in the first img. Dice The two tables also the post and the…
-
-2
votes3
answers127
viewsQ: Problem in the require
This error message is popping me, I don’t know how to fix…
-
1
votes1
answer235
viewsA: How to create shortcut keys
I’ve already learned: {"keys": ["shift+alt+enter"], "command": "insert", "args": {"characters": "escreva seu texto"}}
sublime-text-3answered AKU 393 -
1
votes1
answer235
viewsQ: How to create shortcut keys
Someone knows how to create a shortcut tile to insert a text from my reference. Why keep copying and pasting every time and complicated!
sublime-text-3asked AKU 393 -
0
votes2
answers172
viewsQ: how do I leave my button in the marked menu?
When I click a button I want it to be marked white, if I click another uncheck the old and leave the new marked var menu = document.querySelectorAll("#menu > ul > li > a"); for(var i = 0; i…
-
0
votes1
answer146
viewsQ: Friendship system
I’m making a friendship system (look at the img) In users shows all the people I can add as friends, I want to remove from the list of users all the people who have already sent me friend request…
-
1
votes1
answer49
viewsQ: I’m having trouble using radio input to do other things
My idea and the next one, I think if you do this kind of validation with js will get heavier since you will have to send more code and perform more process! This validation is not so important then…
-
1
votes1
answer83
viewsQ: How to use line-height with percentage?
There are two Examples one with PX and the other with % but I don’t know how to use % what I put in all2 to be the same as all1? #tudo1{ background: blue; width: 20%; height: 50px; margin-bottom:…
-
0
votes1
answer1860
viewsQ: Hover on one element and changing the color of another element
I would like when passing the mouse over the green element the pink changed to the blue color. #primeiro{ width: 300px; height: 300px; background: red; float: left; } #segundo{ width: 150px; height:…
-
0
votes1
answer46
viewsQ: Creating Friendly URL I don’t know how to do
I have a website and index.php and where to register and login. Watch some videos lessons but all of them do the explanation using index as an example so you can pick up the url and work it with php…
-
0
votes0
answers20
viewsQ: I can’t get url in php using htaccess
This is the code I’m using, but it doesn’t send the url to the shoes.php file, but I put the index.php file and it sends. How to solve this? That is, how to send the URL to the shoe.php file?…
-
1
votes1
answer29
viewsQ: My regular expression filter does not work
I’m not getting the filter! when I put the negative sign appears ((entered and passed)) when shot appears passed however if I put strange characters it continues to show passed or n this filtering!…
-
-1
votes2
answers364
viewsQ: Validation of sex with input radio is giving error?
I created two camps input radio for sex and put value="m" and the other value="f". I left as a standard the input with the value="m" checked (at startup is checked), but when sending to JS, even if…
javascriptasked AKU 393 -
3
votes3
answers717
viewsQ: How do I get the name of an input
Example: <input type="text" name="peixe"> How I get the name fish??? Observing: pure javascript…
javascriptasked AKU 393 -
2
votes2
answers56
viewsQ: AJAX request is running before click
js is along with html <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <form id="form">…
-
3
votes2
answers3531
viewsQ: Is it possible to change a text from a "content" of a pseudo-CSS element through Javascript?
Example below #test{ content:"blablabla"; }
-
8
votes3
answers324
views -
-2
votes1
answer65
viewsQ: How to duplicate an image selection
I need to create more of a pointer like the same image q is in css as I do this?? ponteiro = document.querySelector("#ponteiro"); #ponteiro{ background-image: url("../img/ponteiro.png"); } <div…
javascriptasked AKU 393 -
0
votes2
answers48
viewsQ: What is the difference in the statement of these two options?
1- that .back.flipped and different from that? .flipped 2- this .front.flipped and different from that? .back.flipped…
-
10
votes3
answers168
viewsQ: Why is it necessary to create a function to execute certain methods?
.onclick = function() {myFunction()}; Why the example below does not work? .onclick = myFunction() It runs without me having clicked! <script> document.getElementById("demo").onclick =…