Posts by Fábio Santos • 281 points
20 posts
-
0
votes0
answers10
viewsQ: Rewrite HTACCESS PUT URL
I’m trying to rewrite the following URL: meusite.com.br/teste.php para meusite.com.br/new I created the following rule in HTACCESS RewriteCond %{REQUEST_URI} ^(.*)/teste.php$ RewriteRule .*…
htaccessasked Fábio Santos 281 -
2
votes1
answer39
viewsQ: Check if at least one RADIO BUTTON has been checked
I am creating a dynamic form, in it there can be X fields to fill, for example there can be 10 inputs Texts, 5 selects, 3 Radio etc I created the whole structure to assemble this form in a dynamic…
-
3
votes1
answer51
viewsQ: Failed to remove array element
I am creating a page that will filter some suggestions, where the user can vote on which are most interesting to him. I am dividing this screen into 3 tabs [Most Voted], [Newest] and [My Votes] When…
-
0
votes1
answer91
viewsA: Vuetify - Navigation Drawer with nested list items
To fix this problem it is necessary to put on v-list-group the property groupfollowed by the URL path Following is the example of Codepen: <v-list-group :group="'admin'" v-model="item.active"…
-
-1
votes1
answer91
viewsQ: Vuetify - Navigation Drawer with nested list items
I’m trying to create a navigation drawer with nested list items like this: Vuetify Navigation Panel <v-navigation-drawer v-model="drawer" app clipped> <v-list dense> <template>…
-
1
votes3
answers1178
viewsA: Uncaught Referenceerror: Chart is not defined
It was only necessary to change the place of import. From what I understood keeping the plugin in the header he had no time to load completely and so returned the error Uncaught ReferenceError:…
-
0
votes3
answers1178
viewsQ: Uncaught Referenceerror: Chart is not defined
I’m following the documentation Chats.js to implement graphics in my code the structure of my HTML is very simple <html> <head> <script type="text/javascript"…
-
2
votes2
answers465
viewsA: Force CSS and JS cache clean
Opa, this is very easy to solve, makes a simple function in php that always add a parameter at the end of your file, can use Rand function getFileHash($file) { //Gera número aleatório para a versão…
-
0
votes1
answer33
viewsA: Get USER AGENT and modify
Hello I use the following function to check function verificaUserAgent() { $user_agent = $_SERVER['HTTP_USER_AGENT']; $iphone = strpos($user_agent, "iPhone"); $android = strpos($user_agent,…
-
0
votes1
answer35
viewsQ: add_action functioning
I’m running some tests on the wp_head() of a Wordpress theme, the same uses a hooks scheme with the add_action, i believe I understand how it works, the first parameter is the main function wp_head…
wordpressasked Fábio Santos 281 -
-1
votes1
answer85
viewsA: Message request in file . php
Add an id or class to your form to call it in a JS file, in the example I will pass you the resolution with Jquery, assuming your ID is send-email, you can remove the action as well…
-
0
votes2
answers131
viewsA: React Native Reanimated
The main package.json file needed to add the React-Native-reanimated dependency manually "react-native-reanimated": "^1.4.0", After that restarting the machine and using the commands npm cache clean…
-
0
votes2
answers131
viewsQ: React Native Reanimated
When installing the React-Native-reanimated and launching the application this error is generated: Looking for some on the internet I found this topic Link Following the information would only be…
-
0
votes2
answers284
viewsA: Problems while rescuing data from a json file
I tested your function and worked normally Levi, but I made an AJAX call so you can test $.ajax({ type: "GET", url: './dados/livros.json', dataType: 'json', success: function (jsonDadosRetorno) {…
-
-1
votes4
answers3053
viewsA: Whenever the button is clicked a new square should appear on the screen
It would be something like this? function gerarQuadrado(){ var divSelecionada = $("#app .box:first"); var divNova = divSelecionada.clone(); divNova.fadeIn('slow'); }…
-
0
votes3
answers51
viewsA: The image does not appear on the page
The code is correct if your table has exactly the path of the image, I would do as follows, I would throw the values of your query in an object and show as follows: <img src="<?=…
-
0
votes2
answers369
viewsA: Success message after sending message by form
Ivan Ferrer’s answer is the right one, really through AJAX is the easiest solution, a messaging pattern I use: Sweet Alert 2 Import that JS in its application: <script…
-
2
votes2
answers142
viewsA: I need to make php only show the last 10 news
Really the way @Ivan Ferrer answered already solves your question, another way to perform this check would be with: SELECT * FROM noticia ORDER BY id DESC LIMIT 1, 10;…
-
0
votes2
answers162
viewsA: Centralize Divs responsibly
If you do not want to use any framework for this I advise studying about Flexbox, it is an excellent way to tidy up your code: https://origamid.com/projetos/flexbox-guia-completo/…
-
1
votes2
answers162
viewsQ: Remove Class from an element two levels above the clicked element
You guys, I own a lot of divs like that: <div class="funcionalidade"> <div class="imagem-funcionalidade azul-escuro"> <img src="https://www.xxx.com.br/img/xxxx/xxxx/logo-xxx.png"/>…