Posts by Pedro Henrique • 423 points
29 posts
-
0
votes1
answer236
viewsA: How do I upload a Nuxt project to a server? (Namecheap)
Usually I use npm run generate, it generates static files in the dist folder, and these files I put into a hosting. You can use the npm run build also, but it will generate the minified files.…
-
-2
votes1
answer168
viewsQ: Transparent background
I am a layman in css, and I don’t know why it is not becoming transparent a certain area that I marked. I put in jsfiddle code When I put the red part as transparent it disappears. But any other…
-
2
votes2
answers226
viewsQ: Laravel and Sqlite database
Think of me, you have server Laravel with a Sqlite database configured, access to this database in thesis is to be faster, since it is on the server itself. Follow the example: user -> server…
-
1
votes3
answers166
viewsQ: Create function in javascript
I have a function that in thesis is to make a check if the variable x is equal to the variable y. function teste(x){ if (x == 'y*') { alert('igual') } else { alert('diferente') } } I want you to…
javascriptasked Pedro Henrique 423 -
2
votes1
answer271
viewsQ: Similar Vuejs animation in Jquery
I use a code in jQuery to make an animation to load the page, as I do the same with Vuejs? (function ($) { "use strict"; (function ($) { "use strict"; var uza_window = $(window);…
-
0
votes1
answer23
viewsQ: Error with Laravel being used with API
I have an application in vuejs that requests for Windows on localhost, but when I put both on the server (each one on a server) it is not possible to request. This error appears:…
laravelasked Pedro Henrique 423 -
1
votes1
answer155
viewsA: Error with Vue.js deploy
I believe it was a problem with the server, it was not recognizing the configuration. So I looked in vuejs Docs and found something that solved. <IfModule mod_rewrite.c> RewriteEngine On…
vue.jsanswered Pedro Henrique 423 -
0
votes1
answer155
viewsQ: Error with Vue.js deploy
api.min.js:2 GET https://api.opmnstr.com/v1/optin/13439/673828 410 (anonymous) @ api.min.js:2 Ye.send @ api.min.js:2 getCampaigns @ api.min.js:2 t.init @ api.min.js:2 o.onload.o.onreadystatechange @…
vue.jsasked Pedro Henrique 423 -
0
votes1
answer401
viewsQ: Hide columns in responsive mode
Would it be possible to show only the columns you want and all the others in expand mode with datatables.js and the Responsive plugin? What I want to do is show only X columns on the screen when…
asked Pedro Henrique 423 -
2
votes5
answers304
viewsA: because my class only returns NULL
So your code doesn’t accept names like Ana, Eno, Lia and so on, due to the 3 characters, but come on. Use this function instead of your own setName function setNome($nome) { if (empty($nome)) {…
phpanswered Pedro Henrique 423 -
1
votes1
answer113
viewsQ: Download files and images
I’m using the code window.open(url, '_blank'); in javascript to download files, it downloads all type automatically, but images it opens the image on a page and not download.
-
0
votes0
answers43
viewsQ: Vue-snotify, change position of async function
Has a plugin for Toast notifications called Vue-snotify Vue-Snotify It has a function that makes a request with Axios, and before completing the request shows a loading notification, and then one of…
-
0
votes1
answer442
viewsQ: Axios or Ajax in Vue.js to perform requests to the server How can I api?
I have a question I couldn’t solve by searching the Internet. I use ajax to perform requests for a long time, now I’m programming in Vue.js, and I use Xios, I wonder if there is any difference…
-
0
votes1
answer131
viewsA: Error with password protection in the Windows
Well, solved, within the Model Desk, I implemented the attribute password for protected and normal ones. Error stopped and password is not returned. protected $fillable = [ 'nick',…
-
0
votes1
answer131
viewsQ: Error with password protection in the Windows
I am creating a system with Laravel, and using only his api. API code: Route::get('/teste', function (Request $request) { $nick = '@mesa0'. rand(11, 50); $number = '0'. rand(11, 50); $password…
-
1
votes1
answer144
viewsQ: Import js script and css file within a specific component
Well, I have a template that on certain pages you need specific files to upload. So how do I import a css or js file into the page you need? Let’s say the page home do not need, but on the page user…
-
1
votes1
answer189
viewsQ: Unlink() error permission denied
if (file_exists("./a.php")) { chmod('a.php', 0777); unlink("./a.php"); } I do not understand why still of the error in my code, I have already given the permissions via linux terminal with chmod 777…
phpasked Pedro Henrique 423 -
0
votes1
answer23
viewsQ: Error with mysqli and Ajax data
I’m having a problem fetching data using ajax. <script> //função buscar dados function buscarDados(id) { $(function () { $.ajax({ url: 'ajax/dados_aluno.php', type: 'POST', data: {id: id},…
-
0
votes0
answers23
viewsQ: PHP in real time
I have come across a situation that for me is complex. How to update a content in an HTML page without having to refresh the page, whenever the database is changed, the data is modified without…
-
0
votes3
answers602
viewsA: How to align vertically and horizontally element within a Row in Bootstrap?
Buddy, use the tag <center><h1>Texto</h1></center> It will center right in the center
-
2
votes1
answer42
viewsQ: Infinite text with jQuery
Would it be possible to define using jquery 3.3.1 a default character that cannot be removed from an input? ex: An input has a @, and only 20 letters and/or numbers may be added after this @, but…
-
1
votes1
answer240
viewsQ: Why doesn’t the ajax work?
I have a code that does what I want, but refresh the page. I have tried several ways to use ajax to send the data to the database, but it still doesn’t work, and I have 3 questions about ajax: 1 -…
-
1
votes1
answer331
viewsA: Bug multiples modals bootstrap
I have a modal that appears inside a js: $(document).ready(function(){ $('a[data-del]').click(function(ev){ var href = $(this).attr('href'); if(!$('#confirm-Del').length){ $('body').append(' Deseja…
-
2
votes3
answers253
viewsQ: Comparison between PHP and mysql variables
I don’t have much idea how to 'compare' between 2 variables in the example below:** if ($rows['block'] == $idBlock ) {/*....*/} else {/*....*/} Until well, because if the registered id is equal what…
-
5
votes1
answer574
viewsQ: Loading animation
I have a code that makes a loading animation before starting a page. css. .preload{ position: fixed; z-index:99999; top:0; left:0; width:100%; height:100%; opacity:1; background-color:#fff;…
-
1
votes2
answers51
viewsQ: Error while uploading some photos
I made a script that uploads a photo to the server and saves the name in Mysql, but some photos it does not send, some types type JPEG 3 mega up is not sent and gives error. index php.: <form…
-
1
votes2
answers276
viewsA: Line break control does not work "white-space: nowrap:"
use this css: body{background-color:#6C9;} .menu{ overflow:scroll; white-space: nowrap; width:500px; height:300px; } .menu > div{ display:inline-block; height:340px; margin-left:5px; width:100px;…
-
-2
votes1
answer654
viewsQ: How to translate "Rows Selected" into datatables js
This is the code of my HTML page, it’s 90% translated to table, but when I select an item, it doesn’t translate, and I don’t even know how to translate. <?php session_start(); $pagTitle =…
-
3
votes2
answers38
viewsA: Generate a string that contains only the numbers of another string in php
Buddy, you can do it like this: This is a PHP function that leaves only numbers in a variable. function apenasNumeros($str) { return preg_replace("/[^0-9]/", "", $str); } //$filtrar =…