Posts by Thepeter • 533 points
18 posts
-
1
votes0
answers27
viewsQ: Doubt Laravel Trait
Good staff , I have the following Trait in the Laravel <?php namespace App\Traits; trait Imageable { public function getUrlImageAttribute(): string { .... } } I use the same in the following…
-
0
votes1
answer120
viewsQ: Transform query result into Json
I’m trying to convert a result of a database query to json yet every time I make a resquest to get the value of the same the server goes always below and I believe it is because it is a lot of…
-
-1
votes1
answer93
viewsQ: Import a js library into Vuejs
I’m having trouble importing the js libraries in vuejs I’m always getting the following error on the console. I am loading them in the index.html file of the public folder <script…
-
4
votes1
answer3624
viewsQ: Check for Jquery internet connection
Does anyone know a good function or a good way to check if there is an internet connection before making an ajax request?
-
0
votes1
answer350
viewsQ: Regex for number format
How can I create a regex (which will be used with preg_match) to the following format 1.123,12?
-
1
votes3
answers331
viewsQ: Return setInterval Value
How can I return a setInterval value ? result = setInterval(function () { var cont = i++; return cont; }, 800);
javascriptasked Thepeter 533 -
1
votes2
answers54
viewsQ: Error while running a Trigger
I have a problem in a Rigger that when I do an input of a record I want to automatically pass a value that comes by default is 1 to 0 only it is always giving this error. Can’t update table…
-
1
votes2
answers953
viewsQ: Point to different directory in . htaccess
Does anyone know if there is any way with the RewriteRule, can point to a path, which is in folders behind where I have mine htaccess. For example RewriteRule ^cena.js$…
-
3
votes1
answer782
viewsQ: Remove Blank lines in a Csv file
I have the following csv file and would like to remove the blank lines For example File . csv…
-
1
votes3
answers105
viewsQ: Automatic scroll to the right
Is there any way in jquery when clicking a page button or a div to do a small scroll automatically?
-
14
votes2
answers36430
viewsQ: Update with Inner Join
If I make a consult like update using the clause Inner Join, the update will affect all fields that satisfy the condition imposed on Inner Join or just the first field?…
-
1
votes2
answers606
viewsQ: Jquery Check Value
I have a dynamic form with various Hidden inputs and wanted to check by jquery if there is one that has a certain value in value is possible?
-
3
votes1
answer111
viewsQ: Run javascript by clicking on combobox
Is there any way when you have with a combobox open run a script?
javascriptasked Thepeter 533 -
2
votes1
answer101
viewsQ: How can I develop this layout?
I’m making a website as illustrated below, only I’m having a problem making the div central. I don’t know how to do that part where the nav and section. Code: html, body { position: relative; width:…
-
4
votes2
answers3761
viewsQ: How to select all id’s except one?
Is there any way in SQL I get all the data except an ID? For example (I know this does not exist in SQL) Select * From Utilizadores Where id_ut != 1;
-
1
votes1
answer600
viewsQ: How to change a dynamic template content when the user clicks a button?
I would like the middle of the page to be changed when the user clicks "login" or "registration". Can anyone explain to me how to do this? If you know tutorials that teach you how to log in and if…
-
1
votes1
answer58
viewsQ: Find occurrences of a word
I have a text and would like to find certain words, but in the way I’m doing that is with the substr_count() I can only find the word as I wrote it. Example $text = "Eu sou um Menino e gosto de…
-
0
votes1
answer2937
viewsQ: How to send PHP variables using Ajax
I am loading the page through ajax but as I have to send parameters by url I do not know how to send them with ajax . I tried so <?php $album=$_GET['album']; $id=$_GET['ntf']; ?> <script…