Posts by Diego Souza • 16,524 points
642 posts
-
0
votes1
answer504
viewsQ: Circle with Percentage Effect jQuery
I found here on the site a topic about a certain effect. It’s a percentage in a circle. I couldn’t find an example site. But it’s kind of like this: http://anthonyterrien.com/knob/ However, the…
jqueryasked Diego Souza 16,524 -
1
votes1
answer726
viewsA: Menu Fixed Scroll Top
I did. Always like this, when I put it, then I find the solution. The line that makes the difference is this: var num = $('#outermainmenu').offset().top; Grab the Menu Top position. I check if the…
-
1
votes1
answer98
viewsA: Recover Json Value
I solved the question. Although this Json above is the one returned by the direct URL in the browser, I opened mine Inspect Element and gave a console.log(item) within the function Each(). Then he…
-
0
votes1
answer98
viewsQ: Recover Json Value
I am including on my website my Youtube channel with the videos. But there is a part of Json that I’m not getting back. I’m doing like this: $.each($feed.items, function(i,item){ var url =…
-
0
votes2
answers1586
viewsA: Percentage PHP and Mysql
You better make a Count(id_produto) as Total in your QUERY. $sqlTipo = mysqli_query($conexao,"SELECT count(id_produto) as Total FROM produtos WHERE TipoProduto = 'Arroz'"); $totalTipo =…
-
0
votes2
answers160
viewsA: CSS error in Jquery Fullcalendar when using Google Chrome
$(this).closest('tr').css('background-color', '#FFFFFF!important;'); See if in the Chrome Inspect Element it is adding the white background to the object. The !Important prioritizes the property in…
-
1
votes1
answer726
viewsQ: Menu Fixed Scroll Top
I made this code so that when I scrolled the page the MENU would be fixed at the Top. That is, always the user view. var nav = $('#outermainmenu'); var lia = $('.sf-menu > li, .sf-menu > li…
-
1
votes3
answers1334
viewsA: SQL query in PHP and date format
You can use the Convert DataPartida >= convert(datetime, '$de', 120) SOURCE: http://www.w3schools.com/sql/func_convert.asp…
-
1
votes3
answers741
viewsA: PHP Image Upload Error
Dude, apparently the mistake says this folder /uploads is not being found. No such file or directory The briefcase /uploads is there really ? This folder is in the root ?…
phpanswered Diego Souza 16,524 -
2
votes4
answers2818
viewsA: Email falls into PHP spam box using HTML layout
Felipe, use PHP Mailer: https://github.com/PHPMailer/PHPMailer There are some features you can use, authentication. This can make you avoid falling into the spam box. Download the files for your…
-
1
votes1
answer269
viewsA: How to center an image that is absolute
The PARENT element should be Position Relative. In the image that looks like Position Absolute, you have to define the following CSS properties; left:0; right:0; margin: auto;…
-
1
votes3
answers381
viewsA: Use query within the value of another query
insert into X (a, b) select 16, c from Y where d = e You can do so too, without the word values.
sqlanswered Diego Souza 16,524 -
1
votes1
answer10290
viewsQ: Site Integration - Instagram API - PHP
I don’t know what happened, but it was working on my Instagram integration site. I did a photo randomization. But out of the blue, the images no longer appear. For those who know the Instagram…
-
0
votes1
answer191
viewsA: Dropdown-Nav remove the "Hover" and appear complete listing of menus
Hide all and open only what is being clicked. $('#menu > li').hide(); $(this).addClass('show');
-
4
votes3
answers3929
viewsA: pick element after being inserted into DOM with jQuery Append
Note that I used the function each jQuery. It’s like a Foreach of PHP. I take each value that is in the Hidden fields and compare it to the value that is being selected in the Combobox. If you have…
-
3
votes2
answers312
viewsA: localhost goes straight to projects
Download here Wamp’s individual index.php. http://downloads.jlbn.net/wampindex.html
wampanswered Diego Souza 16,524 -
2
votes2
answers113
viewsA: Calculation of toll per kilogram
I set a little example for you: <input name="pedagio" type="text" class="form-control" id="pedagio" value="" required> <a id="pesoTotaldaNota">Calcular</a> In this function it has…
-
3
votes2
answers5211
viewsA: Delete tr table html jquery
Something you can do is put class in place of ID 'remove'. cols += '<td><input type=\"button\" class=\"remover-linha\" value="x" style=\"background:red;\" /></td>'; Then you can…
-
0
votes1
answer1139
viewsA: Panel-Collapse Bootstrap
By jQuery you can use the function click. $('.panel-title').click(function(){ // Abrir Box }); In this case you determine that all space within the panel-title you will receive the click function.…
bootstrap-3answered Diego Souza 16,524 -
3
votes2
answers155
viewsA: How to turn strotime output into a variable
$arr = array(); for($i = strtotime('Monday', strtotime($beginday)); $i <= $lastday; $i = strtotime('+1 week', $i)) array_push($arr, date('l Y-m-d', $i)); print_r($arr);…
-
1
votes3
answers1480
viewsA: Weight mask
In place of function id(el){ return document.getElementById(el); } Place function id(el){ return document.getElementsByClassName(el); } And puts a class with the name 'weight' in its element.…
-
6
votes3
answers311
viewsA: How to use a different logo if the pattern does not exist?
The only way I know is by server-side. PHP, for example. You can use PHP to check the image logo_empresa.png exists in the directory. If yes, it shows. If not, it shows logo_default.png. Use the…
-
1
votes3
answers3860
viewsA: How to rescue ID from last record recorded with Mysqli
The command mysqli_insert_id can help you with that. http://php.net/manual/en/mysqli.insert-id.php
-
0
votes1
answer1032
viewsQ: PHP Artisan Make:Model Command Does Not Work
I’m using Composer to generate my PHP files and other things. I think it makes programming much easier. For example, to generate a Controller I do so: php artisan controller:make NomeController…
-
4
votes1
answer2054
viewsQ: Install Pagseguro/PHP in Laravel
In the composer.php I’m putting it like this: "require": { "laravel/framework": "4.2.*", "pagseguro/php": "dev-master", #"pagseguro/php": "2.5.0", "cagartner/correios-consulta": "0.1.*",…
-
2
votes2
answers931
viewsA: How to put a "loading" image after validation and Submit?
I usually use the function beforeSend ajax. In place of: $("#formEmail").attr("action", "<c:url value="/proposta/enviarPropostaPorEmail"/>"); $("#formEmail").submit();…
-
1
votes1
answer1537
viewsA: Remove public from URL - Laravel
Resolution - I do not know if it is the best. It follows below: I cut the file .htaccess and index php. of the briefcase public and pasted it into the root folder of my website. And within the index…
-
0
votes3
answers754
viewsA: How to update a DIV with PHP
AJAX + jQuery Function load() With PHP there is no way because it is a language that works on the server.
-
0
votes1
answer1537
viewsQ: Remove public from URL - Laravel
I’m accessing my website like this: http://localhost/site/public I’d like to just type http://localhost/site because I want it to work when I put it in the domain too. Is there any way to resolve…
-
0
votes3
answers2230
viewsA: if/Else condition to mark/deselect checkbox
Look for the function each of JS, using jQuery... Its use is very simple: $("input[type='checkbox']").each(function(){ this.checked = false; }); Example…
-
1
votes1
answer42
viewsA: Animation of menu buttons is not working properly
Dude, I switched yours on('mousedown touchstart') for on('click') ... and it worked on my phone.
-
0
votes1
answer477
viewsA: Download Image via Ajax + Laravel
Solved, and I even made a scheme to zip the images. // Download de Imagens $("#download").click(function(){ var ids = ''; $("input[name='foto[]']:checked").each(function(){ ids = $(this).val() + ','…
-
0
votes1
answer477
viewsQ: Download Image via Ajax + Laravel
I am trying to make a script for Download Images, by Ajax. It can be one or several. As you can see in JS, it has a function each searching for the selected images in the system. Then, I call Ajax…
-
3
votes1
answer2228
viewsA: How to organize the HTML body on the screen with CSS
I made a quick sketch. See... <script type="text/javascript"> $(document).ready(function(){ $('#btn-menu').click(function(){ $("#menu-lateral").toggleClass('toggleMenu');…
-
0
votes2
answers2536
viewsA: Laravel - Accessing absolute directory path for download
When that happens, I sort it out. I tag data-url-base or base date, however you prefer, in the body. See below: Base path of your site. Type http://localhost/your system/public/ <body…
-
0
votes2
answers1377
viewsA: Make Tooltip appear by clicking inside the input
Have you tried changing the SEL-TOOLTIP element function? -- Remember to place this function call inside the : $(document).ready(function(){ )}; Type: // Tooltip $("#sel-tooltip").change({ // Aqui a…
-
1
votes1
answer355
viewsQ: Slug and Post/Get on the same Route - Laravel
# PÁGINA DE PRODUTO - RELACIONADA AO CARRINHO Route::get('produtos/{slug?}', 'ProdutoController@getIndex'); Route::controller('produtos', 'ProdutoController'); My current code is above and is…
-
1
votes1
answer567
viewsA: Google Charts: Does not show all Abels and the chart gets pasted at the top
chartArea: {width: '100%', height: '100%', left: 10, top: 20},…
google-chartsanswered Diego Souza 16,524 -
1
votes3
answers16929
viewsA: Multiple foreign keys from the same table. Is it possible?
Wouldn’t be the right way. In Table_a have only one field called id_intensity. And at each insertion would be a new record with the foreign key. Much easier to control via programming afterwards.…
-
0
votes2
answers1467
viewsA: Center Horizontally
For you to leave an element centered horizontally and vertically you have to leave it as absolute within a relative parent element, determining 100% height. And in the child element, absolute,…
-
1
votes2
answers433
viewsA: Incompatibility between maskmoney and number_format
Gustavo, if the input field is already doing the formatting, why do you want to do it again in PHP ? If you want to turn into money to put in the database you must take the comma out of the number…
-
1
votes1
answer170
viewsQ: How to define a dynamic folder in Ckfinder?
I’m cracking my head to set a dynamic folder when opening a popup from Ckfinder. Look at the code below: // config.js var finder = new CKFinder(); finder.popup(); // CONFIG.PHP $baseDir =…