Posts by Lukas Takahashi • 408 points
28 posts
-
1
votes2
answers103
viewsQ: how to check if an image is online
I have to take an image that can be in 2 directories and to know which directory I am trying to use the function below. The problem is that within the onerror or onload event I cannot assign any…
javascriptasked Lukas Takahashi 408 -
1
votes1
answer458
viewsQ: how to list github repositories within an account that has a given topic
My problem is the following is consuming the github api via javascript fetch, and I want to search inside my repositories, the ones that have a certain topic like "Javacript" or "Programming" the…
-
2
votes4
answers94
viewsA: How do I make the CSS class not affect anyone who has a particular class?
If I understand correctly, you want to add the transparency effect only to links with the class dropdown-toggle css: .navbar-solid { background-color: transparent !important; transition:…
-
1
votes1
answer105
viewsA: How do I join the background of a div with that of the footer?
Some html elements have margins and paddings already preset. Try to put the code below at the top of your style document, this code will remove the default margin and padding of all elements. *,…
-
0
votes4
answers93
viewsA: Enable input type="file" when input type="checkbox" == true
The example below can help you solve your problem, if it’s just an input you want to show. const option1 = document.getElementById('Opcao1'); // Seleciona o checkbox let UploadOpcao1 =…
-
1
votes1
answer501
viewsQ: Problem with infinite loop component in React
I have my header component, where I search the user information through the api, the problem is that this search gets stuck in a loop that keeps searching the user non-stop. code:: import React, {…
-
0
votes1
answer130
viewsQ: Problem with loop in React
This is a common loop problem in React, which is basically making hundreds of flames in my Aces. The component apparently isn’t inside the loop,. component: import React, { useState, useMemo } from…
-
0
votes3
answers1776
viewsQ: How to show error returned from backend in nodejs in React
I have a problem showing the error message that came from the backend. I return in the backend: res.status(400). send({error: "User already exists"}); already on the front I would like to display…
-
3
votes2
answers4009
viewsQ: How to upload an image to the backend
I have an application in React that sends an image to the backend in Ode the problem is that I can’t get the file in express. I see you have a way to use the woman, only I don’t know how to get the…
-
3
votes1
answer43
viewsQ: how to replicate jquery functions in javascript $(), Hide()
To create a site, simple in javascript more would like to automate the selection elements, and a function to hide/show the elements. But I end up getting error. But I don’t understand why. To select…
-
-1
votes1
answer27
viewsQ: Problem with javascript function
To having a problem of "Uncaught Referenceerror: nameValue is not defined", being that the "nameValue", is being passed to function, so no idea of what the problem. Function : function…
-
0
votes1
answer1001
viewsQ: Uncaught Referenceerror problem: answer is not defined
To with a problem, in sending data using ajax, my function always returns that same error: Uncaught Referenceerror: reply is not defined; Function that passes the data:: function…
-
0
votes1
answer80
viewsQ: Problem reading json file using PHP
I’m trying to save and search information inside a json file using php, my problem is that when I add more than one record in the file, when I use json_decode is returned to me null. I want to know…
-
2
votes2
answers571
viewsA: How to remove public from url
Based on Leonardo’s answer, I found the code below that solves the problem. RewriteEngine on RewriteCond %{HTTP_HOST} ^raiz$ [NC,OR] RewriteCond %{HTTP_HOST} ^raiz$ RewriteCond %{REQUEST_URI}…
-
2
votes2
answers571
viewsQ: How to remove public from url
I’m creating a small application and have a url like root/public/index.php, wanted to know how to remove this public and leave the url alone root/index.php using .htaccess. I’ve searched Google and…
-
0
votes0
answers343
viewsQ: How to configure . htaccess to block direct access to all directories except public
I have a problem with setting up . htaccess, I want the user to have access only to the public folder, so I created a . htaccess at system root blocking access to all folders and files, and one in…
-
1
votes1
answer36
viewsQ: How to handle function calls in php
I have with problem related functions in php, Basically the user can try to access a function inside php dynamically, if the function exite it is executed, more if it does not succeed it returns…
-
0
votes0
answers32
viewsQ: Links returned by php do not work
Hy, To with a problem with my links that are returned via php, basically it doesn’t work, the right link ta has nothing broken just doesn’t work. I want to know how to make them clickable. print:…
-
1
votes1
answer99
viewsQ: Dynamic input returns Undefined
I’m trying to create a dynamic search field. The problem is that when I type something, I can’t get the value of the Javascript field. It only returns me undefined. My code: $('.search').focus(…
-
0
votes0
answers32
viewsQ: Data is not entered into the database using PDO
With a problem, basically the data is not being entered in the database, and is not showing error, I am still beginner, and I can not understand where the error is: Script: require_once…
-
1
votes1
answer1014
viewsQ: Error with php Fatal error class: Uncaught Error: Call to Undefined Function run_search()
I tried to create a class, and getting the error below I already researched more not found why is giving this error. Error: Fatal error: Uncaught Error: Call to undefined function run_search() in…
-
1
votes2
answers274
viewsQ: How to use querySelectorAll without having to specify array elements afterwards?
I’m trying to use querySelectorAll to see when <li> is clicked and display the menu of each 1 the problem is having to keep specifying the array, example obj[0], for each 1, I wondered if I…
javascriptasked Lukas Takahashi 408 -
1
votes1
answer46
viewsQ: How to fix a CSS animation error
I’m developing a website and created some pits. The problem is that when I roll the page up and it’s only half the box box appearing, if I hover over the first and last element, the animation Buga…
-
-4
votes1
answer32
viewsQ: How to Make a jquery code run only on the desktop version of the site
I have the following problem in the code below: // Muda o menu de imagem pra texto var x = $(window).width(); if(x >= 590){ $(document).on("scroll",function(){ if($(document).scrollTop()>100){…
-
7
votes2
answers388
viewsQ: Directory listing appears with dots, how to remove?
I want to list the image files of a folder, but the first two links that are generated appear like this: <img class="mySlides" src="Arifureta-shokugyou/capitulo-2/." style="width:100%" />…
phpasked Lukas Takahashi 408 -
0
votes3
answers322
viewsA: Bootstrap doesn’t do what I want
Leaves your form with only a parent div, and uses the flex display on it. For example: <style> .divpai{ display: flex; flex-direction: column; justify-content: center; align-items: center; }…
-
1
votes2
answers12546
viewsQ: How do I add more elements to an array in php
I’m creating a function to validate form data, and wanted to know how I add errors to array, every new error he add in the array??? <?php // Função criada para validar todo tipo de formularios em…
-
-1
votes1
answer46
viewsQ: Chat using php and msql
I wanted to know how I can with php get the id of another user online, without being by name, because there may be users with the same name. for example pull the id of another user, do not know how…