Posts by Rogério Pancini • 397 points
44 posts
-
0
votes0
answers16
viewsQ: Jquery POST with PHP does not query
I have never made a Jquery script that queries with PHP via POST. What I’ve managed to do is this: $('a.js-cd-panel-trigger').click(function(e) { e.preventDefault(); var valor = $(this).attr('id');…
jqueryasked Rogério Pancini 397 -
0
votes0
answers41
viewsQ: Problem with url
I made a page where all the content is in it (there are no other pages). I had to adapt a kind of user-friendly url to it, because by clicking on the page sections, the cursor goes to a certain…
-
2
votes1
answer71
viewsQ: Regulation of svg
I’m looking for new effects to improve my portfolio. I really liked that effect, but there’s one mistake I couldn’t adjust. Height cuts when you do the Hover. After a lot of searching, I was able to…
-
0
votes1
answer41
viewsQ: Accordion does not change the icon
I’m testing . toggleClass, but in this accordion, it’s not changing the icon from more to less when you click on the element: function toggleIcon(e) { $(e.target) .prev('.panel-heading')…
jqueryasked Rogério Pancini 397 -
0
votes1
answer90
viewsQ: Extend the image outside the container on the left side
I have a container, and it has a split block in it. On the left side I need to get the image out of the container. Would be this model: With this structure: <div class="blog_section"> <div…
-
0
votes0
answers47
viewsQ: Take the value of the PHP array
I have the following situation after I give a print_r on "$restultado = array(json_encode($_POST, JSON_PRETTY_PRINT))"; Array ( [0] => { "nome_evento": "C\u00edrculo de Mulheres com Arte…
phpasked Rogério Pancini 397 -
2
votes0
answers421
viewsQ: Use Select2 to search states and cities
I’m looking to improve the search for cities and states. I did this dynamic with the Select2: /*************** Procurar estado ***************/ $( ".estado" ).select2({ placeholder: "Estado", ajax:…
-
0
votes0
answers384
viewsQ: Apply water effect on div
I got a div that’s the breadcrumb of the page. .banner-blog { background: url(http://www.hostmove.com.br/geral.jpg) no-repeat scroll; background-attachment: fixed; background-size: 100%; /*…
jqueryasked Rogério Pancini 397 -
1
votes1
answer1102
viewsQ: Show image inside div
I have a div an image. You would need to display part of the image (centered, for example) and decrease the size of the div. If I overflow Hidden with a width of 50% in some div above the image, it…
-
0
votes1
answer293
viewsQ: Give effect to the image and the re-colored Hover
I don’t know if it’s possible. I tried it with mix-blend-mode, filter, but it doesn’t work. It would be possible for an image to start with a layer of gray and on top, a layer of green. When passing…
-
2
votes2
answers57
viewsQ: Hover with picture
There was no way, the arrows of the slider of the project will have to be in png. Today I’m doing so (part of the code): .banner_home_inferior .owl-next { right: -6px; background:…
-
3
votes3
answers68
viewsQ: Problem in select order
I fed this graph But I have a problem with his selection <?php $sql_2_vis = mysqli_query($config, "SELECT data, uniques, pageviews FROM tb_visitas ORDER BY id DESC LIMIT 7") or…
-
0
votes1
answer44
viewsQ: Url in htaccess
Is it possible to control the url in htaccess? For example: if you type site.com.br it corrects and places www.site.com.br. I have a case that some pages go with site.com.br/blog. Others with…
-
-1
votes1
answer138
viewsQ: Graphic in css or jquery
It is possible, via css, html or jquery to create a chart like this? Actually, the problem is making the arrows. If anyone has ever worked on something like this to shed light, I thank you.…
-
0
votes0
answers31
viewsQ: Display css with file_get_contents to avoid rendering blocking
I’m optimizing a site (which has already improved a lot) and in Google’s Pagespeed Tools, says I have to "Eliminate Javascript and CSS rendering blocking content above the edge". It worked out that…
-
0
votes0
answers90
viewsQ: Phpmailer and foreach
I redid the email from my website. Among the novelties, you can now send a message to more than one e=mail. I have this select that searches which emails will be from the recipients: <?php…
-
0
votes1
answer53
viewsQ: Error while performing Javascript summation
I have a calculus script I adapted from another page. There, all right, but this, even checking the same ids and the like, does not work. I took the essentials from the screen, to demonstrate what…
-
0
votes2
answers40
viewsA: Auto calculation Jquery does not work
$(".real").maskMoney({ prefix: 'R$ ', thousands: '.', decimal: ',', affixesStay: true }); function rePlace(i) { return parseFloat(i.replace(/[^\d.,]/g, "").replace('.', '').replace(',', '.')); }…
jqueryanswered Rogério Pancini 397 -
0
votes2
answers40
viewsQ: Auto calculation Jquery does not work
I have this budget form. I’m taking advantage of the auto calculation of another form, which works perfectly. But I threw it at this other one and it doesn’t do the auto calculus at all. I checked…
jqueryasked Rogério Pancini 397 -
0
votes1
answer57
viewsQ: General total does not sum
I am putting together this budget form. Almost everything is perfect. Just the total sum, which however fit is not adding up. $(".real").maskMoney({ prefix: 'R$ ', thousands: '.', decimal: ',',…
jqueryasked Rogério Pancini 397 -
1
votes2
answers91
viewsQ: Jquery calculation with mask and large values
After several steps, solving problems, I’m at the end of a research form that I’m putting together. Finally, there are two problems: in the "Monthly Budget", the "toLocaleString" does not work. The…
jqueryasked Rogério Pancini 397 -
1
votes0
answers58
viewsQ: Placing ellipsis in mixItUp pagination
I have this paging script from mixItUp, that works normally. // To keep our code clean and modular, all custom functionality will be contained inside a single object literal called "buttonFilter".…
jqueryasked Rogério Pancini 397 -
0
votes1
answer36
viewsQ: Search via POST by clicking on div
I am adapting the following script: $(document).ready(function(){ $('#getUser').on('click',function(){ var user_id = $('#user_id').val(); $.ajax({ type:'POST', url:'php/getData.php', dataType:…
-
0
votes2
answers529
viewsA: Bootstrap: sort by column instead of row
<div class="row"> <div class="col-xs-12 col-sm-4 col-md-4">1</div> <div class="col-xs-12 col-sm-4 col-md-4">2</div> <div class="col-xs-12 col-sm-4…
-
0
votes2
answers529
viewsQ: Bootstrap: sort by column instead of row
I have a layout that has the following model: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] And it would need both desktop and mobile: [1] [5] [9] [2] [6] [10] [3] [7] [11] [4] [8] [12] It’s…
-
2
votes1
answer872
viewsQ: Uncaught Typeerror: Cannot set Property 'focusInvalid' of Undefined
I’m making a validate to be used in conjunction with tinymce. On the Jquery Validate website, there is an example to do this. There it works. My website is displaying the message "Uncaught…
-
1
votes0
answers230
viewsQ: Remove multiple upload file
I’m making a upload simple multiple of files. I can remove a thumbnail that creates to view, but I cannot remove the file that is in input. I even put a alert, confirming that I can get the file…
jqueryasked Rogério Pancini 397 -
1
votes0
answers358
viewsQ: Remove input file
I’m putting together a multi-file upload form. What I have so far is almost fine. When uploading, the option to remove the file is generated before submitting the form (a preview). It is removing…
jqueryasked Rogério Pancini 397 -
0
votes1
answer1082
viewsQ: Mark checkbox with Jquery
I’m setting up a screen to choose some options. Actually, it’s a lot of checkboxes with style. Here I even took the class that makes the style of the checkbox, to make visible. I can give the effect…
jqueryasked Rogério Pancini 397 -
-2
votes1
answer66
viewsQ: Help for jQuery slider
For this mission, I’m out of ideas. For more elaborate sliders use the Slider Revolution and more basic, the Wow Slider, always merging with PHP. $(function(){ $('.bxslider').bxSlider({ mode:…
jqueryasked Rogério Pancini 397 -
3
votes3
answers261
viewsQ: Take the value of the Jquery variable out of if
I am assembling a script that checks several inputs select, checking whether they have been selected. I’m at the beginning, so the example here has only one field. $("#passo_4").click(function(){…
jqueryasked Rogério Pancini 397 -
1
votes0
answers27
viewsQ: Centralize
I implemented the isotope. Everything is working just missing feed the content. The problem is I can’t center the elements. I’ve seen you move to mansory It’s supposed to be centered, but it doesn’t…
jqueryasked Rogério Pancini 397 -
0
votes1
answer222
viewsQ: Send id via POST in Jquery
I’m working on an implementation of Datatables, but the need arose to send id to make filters: $(document).ready(function() { var dataTable = $('#employee-grid').DataTable( { responsive: false,…
-
0
votes0
answers40
viewsQ: Conflict in PHP when using form within form?
I do not know if it is possible, but I had the need to use one form inside the other, as in this example: <form action="" method="POST" enctype="multipart/form-data" id="enviar_cadastro"…
-
0
votes1
answer28
viewsQ: Leave the sidebar fixed after opening
I’m mounting a puzzle in bootstrap, and almost worked out what I need. I will use this model only on mobile. Missed only leaving the side menu (Toggle Menu) fixed after opening. I tried for css but…
-
1
votes1
answer326
viewsQ: Accent problem and special characters leave bold autocomplete term
I have this script that does a search using the Jquery autocomplete. $( function($) { $.ui.autocomplete.prototype._renderItem = function (ul, item) { var t = String(item.value).replace( new…
-
2
votes2
answers249
viewsQ: Leave autocomplete search in bold
I have this search script: $( function($) { $( "#p" ).autocomplete({ source: "php/search_palavras.php?id_cidade=<?php echo $id_cidade; ?>", minLength: 2, select: function( event, ui ) { // Set…
-
0
votes1
answer41
viewsQ: Select with LIKE and AND at the same time
I have this script that does a search: $(function($) { $("#loc_menu").autocomplete({ source: "php/search_cidades.php", minLength: 2, select: function(event, ui) { // Set autocomplete element to…
-
0
votes0
answers37
viewsQ: Search Datatables in serverside mode
I’m about to finish a project and still need to improve the Datatables research. Use serverside mode and ajax search is this: <?php /******* Conexão com o bando de dados *******/ include…
-
1
votes0
answers56
viewsQ: Retrieve Jquery value in PHP
I have a popup that geolocates the customer and generates a cookie, which will be used for various purposes on the site. Everything is working, the only thing I could not understand is that if I put…
-
0
votes0
answers540
viewsQ: Jquery - Run a function within another function
I use the Sweetalert2 alert (https://limonte.github.io/sweetalert2). With it, there is a function that excludes an item: $(document).ready(function(){ readProducts(); /* it will load products when…
jqueryasked Rogério Pancini 397 -
1
votes1
answer58
viewsQ: Pass variable in Jquery
I have a template, that has this javascript: var _latitude = -22.0565972; var _longitude = -46.9794721; //var jsonPath = 'assets/json/items.json'; var jsonPath = 'assets/json/items.php'; // Load…
-
0
votes3
answers3583
viewsQ: Get input sum value with Jquery
Good evening, everyone. I can’t put together a cool script for that. For example, I have four inputs and, just after I fill in some of them, I would like to display the result of the sum of inputs.…
jqueryasked Rogério Pancini 397 -
0
votes1
answer359
viewsQ: Generate a Row after 2 columns in bootstrap
I managed to generate a way Row after two columns in bootstrap, but the result was not as needed. I have it: <?php $sql_3 = mysql_query("SELECT id, razao_social, cep, cidade, uf, rua, numero,…