Posts by Wagner Martins Bodyboard • 698 points
94 posts
-
0
votes1
answer43
viewsQ: Pass city name from Javascript to PHP in google maps
I need to pass to PHP the name of the city coming from Javascript I use this code to get the name of the city <script type="text/javascript"…
-
0
votes1
answer56
viewsQ: Add item in array with PHP foreach
I need to pick with the foreach of PHP, the id of the question and the reply of each answered question. I can only get the id of the question, as I would also get the typed answer? Man foreach <?…
-
-1
votes2
answers977
viewsQ: Disable weekend and enable days with Fullcalendar plugin Jquery
I’m using the plugin fullcalendar.js How would you leave disabled weekends and also leave enabled only 15 days counting today’s date? I have this code with the plugin fullcalendar.js JS…
-
0
votes1
answer40
viewsQ: Do not send form with the Jquery animation of the search button
I have this code that animates the search button in Jquery, the problem is that my form does not send the typed data when you click on the Submit button with this animation, as I should do? HTML…
-
0
votes1
answer27
viewsQ: Serielize() jquery does not save variables
I’m not able to record the variables with jquery serialize(), esotu doing so, what would be the problem? //Executa em cada form: $('.formAjax').on("submit",function() { // Pegar o ID do formulário…
-
1
votes0
answers282
viewsQ: Validate select with the jquery.validate plugin
I am not able to validate the html select with the jquery plugin.. The select to be validated would be select class="Uf" How would you validate this select with jquery.validate? I’m doing like this…
-
1
votes1
answer446
viewsQ: Replace Special characters
I need to take out the special characters coming from an input in jquery, I am doing so but it is not working. How would you solve this? $("#cnpj").focusout(function(){ // Converte o texto para…
jqueryasked Wagner Martins Bodyboard 698 -
1
votes1
answer46
viewsQ: Run Jquery on multiple inputs
How I would run jquery with multiple input fields to be changed? I need to place the quantity of each product by clicking on .Minus and . plus I have this HTML <div class="quantity"> <input…
jqueryasked Wagner Martins Bodyboard 698 -
2
votes1
answer76
viewsQ: Plus/Minus jquery does not work
I am unable to change the input value id="value" when you click on .Minus or .plus, what I must do to resolve? <input type="button" value="+" class="plus"> <input id="value" step="1"…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes1
answer43
viewsQ: Send Cart Session by email with Phpmailer
I have this code that shows the results of the items in the cart <?php session_start(); require_once "functions/product.php"; require_once "functions/cart.php"; $pdoConnection = require_once…
-
2
votes1
answer50
viewsQ: Sync and corrections by n17t01
How can I join these two ajax into one? I’m making a shopping cart that when you click on the add button in the cart, appears in the div class=account_cart the number of items added and in the div…
jqueryasked Wagner Martins Bodyboard 698 -
1
votes1
answer142
viewsQ: Background image in diagonal div clip-path
I managed to do so with solid color background .slide { width: 100%; height: 101px; background-color: #fff; background-size: cover; clip-path: polygon(50% 100%, 100% 0%, 0% 0%); } .slide_bg{…
-
0
votes1
answer388
viewsQ: Image animation up / down inside the div with Jquery
I have this code that makes an animation of images ascending infinitely, but it doesn’t happen this, as I could arrange for it to have the same effect of this site…
-
1
votes1
answer42
viewsQ: Image rising with Html5 in crossfade
I have this Html5 code that transitions images, what I need is to make the image go up and down inside a div and then transition the images. How could I do that? #crossfade > img { width: 100%;…
html5asked Wagner Martins Bodyboard 698 -
0
votes1
answer39
viewsQ: Problem with jquery with multiple Forms
I have several formats in my code that I need to send the information with ajax to PHP, is returning this error: Uncaught Referenceerror: formID is not defined It says that the formID has not been…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes1
answer101
viewsQ: Place page numbers in PHP paging with MYSQL
How could I put page numbers in this paging script with PHP and Mysql? The way it looks: First Prev 1 2 3 4 5 6 7 8 9 Next Last <?php if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; }…
-
0
votes1
answer155
viewsQ: Limit tags in bootstrap-tagsinput v0.8.0
I need to create a field where you can put a certain number of tags in a form input. I’m using the plugin bootstrap-tagsinput v0.8.0 jquery, I managed to make it work, but it does not limit the…
jqueryasked Wagner Martins Bodyboard 698 -
2
votes1
answer65
viewsQ: Insert array from ajax into mysql database
I have this ajax that shows the items chosen in "checkbox" form. $(document).ready(function(){ $('#submit').click(function(){ var languages = []; $('.get_value').each(function(){…
-
1
votes1
answer30
viewsQ: Error in ajax when sending the form
I have that code. The problem is that it always shows the error message Some problem occurred, Please Try Again. What can I do to fix it? I’m using new Formdata(this) because I have file type fields…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes1
answer19
viewsQ: Ajax error in the console when sending the form
Is returning this error in the console when I send a form with Ajax An invalid form control with name='' is not focusable. empresas_cadastrar.php:1 An invalid form control with name='bairro1' is not…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes1
answer1016
viewsA: Get id of a dynamic select with jquery
That’s the code, it worked $(document).ready(function(){ $(document).on('change', '#sectionChooser', function(){ var myID = $(this).val(); $('.panel').each(function(){ myID === $(this).attr('id') ?…
jqueryanswered Wagner Martins Bodyboard 698 -
3
votes1
answer1016
viewsQ: Get id of a dynamic select with jquery
I need to get the id Bairro3, I’m doing like this $(document).on('change', '#bairro', function(){ var bairroID = $(this).val(); but it still doesn’t work. You have to add a variable in the…
jqueryasked Wagner Martins Bodyboard 698 -
2
votes2
answers86
viewsQ: Ajax does not work when it comes from a form select
When the #sectionChooser comes from Ajax or does not work select #neighborhoods to put the #street, where would be the problem? Html <div class="col-sm-6"> <label…
-
0
votes1
answer19
viewsQ: Seriealize() Aajax with problem
I have several forms in an html, and I want to send with Ajax each form, I am using serialize(). But it’s not working out where I’m going wrong? <div class="resultado_<?php $i++; echo $i…
ajaxasked Wagner Martins Bodyboard 698 -
1
votes1
answer504
viewsQ: Repeat Carousel Bootstrap
I have this code from a Carousel $('#carousel-example-generic').on('slide.bs.carousel', function() { var interval = $('div.item.active').attr('duration'); setTimeout(function() {…
-
0
votes1
answer487
viewsQ: Carousel with different display duration for each item
How could I make a Carousel with an element, each element will have a different display duration? Ex.: One (element) of 5 seconds; other 8 seconds. I managed to do with the Slick of jQuery, however…
-
0
votes1
answer27
viewsQ: Query in more than one mysql column with PHP
I do so to make a query in the Mysql database $keyword = strval($_POST['query']); $search_param = "{$keyword}%"; $conn =new mysqli('xxx', 'xxx', 'xxx' , 'xxx'); $sql = $conn->prepare("SELECT *…
phpasked Wagner Martins Bodyboard 698 -
0
votes2
answers186
viewsQ: Delete folder with CHMOD777 permission
I create a folder with PHP like this mkdir('/public_html/buscauiva/public_html/'.$_POST['Nome'].'', 0777); To delete I am using the rmdir() of PHP…
phpasked Wagner Martins Bodyboard 698 -
0
votes1
answer34
viewsQ: Two Ajax Form on a single page with multiple items
I can make an Ajax request as follows: HTML <div class="resultado_debito<?php echo $i ?>"> <span class="ruim"><br>Inadiplente</span><br> <form method="post"…
-
1
votes1
answer245
viewsQ: Ajax with html checkbox
I’m having trouble getting the value of the checkbox selected, php is taking the value of all checkbox including those that were not selected. How would Ajax pass PHP only to those selected? HTML…
-
0
votes1
answer56
viewsQ: Ajax does not send image to folder with PHP
I am unable to send the image to a folder, using Ajax and PHP, the file name sends correctly, it is only the file even if it does not write to the folder, the folder already has permission chmod…
-
0
votes1
answer82
viewsQ: Show Ajax Output in each div
I’m not getting Ajax to show the result in the corresponding div, I’m doing so $('.resultado_debito'+formID).html(data);, but it doesn’t work. Code: $(document).ready(function() {…
ajaxasked Wagner Martins Bodyboard 698 -
0
votes1
answer111
viewsQ: Execute ajax on page with more than one form
I have this Ajax code that makes the request for a PHP file, when there is only one form on the page, it works right. How do I make it work when you have more than one form? JS that works…
-
0
votes2
answers78
viewsQ: Variable does not go to PHP with Ajax
I have this code that makes the request with Ajax for a PHP file. The problem is that it is only taking the value of input type="file", the other fields are not being passed to PHP. I’m doing so to…
-
0
votes1
answer214
viewsQ: Curl PHP Google Custom Search
I have this script to do a google search using the Google Custom Search. My problem is that when you request the form returns blank, what would be the problem? <?php define('GOOGLE_API_KEY',…
-
0
votes1
answer318
viewsQ: Put scroll down
I have this jquery that animates the scroll when you click on a link. How do I so that when I click on the link the scroll goes a little lower, like a 10% down, would have like? // Smooth scroll…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes2
answers128
viewsQ: How to perform scroll event only when you click on a certain element?
When I click anywhere on the site, it makes the animation scrolling to the div #texto_position. How to make so that only when you click on the element make the animation? $(window).on("resize…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes3
answers227
viewsQ: Remove class when Scroll Up with Jquery
In the Jquery can remove a CSS class when the mouse scroll goes up? I’m doing it this way but it’s not working $('html, body').animate({scrollTop:0}, 800, function(){…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes2
answers122
viewsQ: Mobile only jquery, is it possible?
I have this snippet of my code that scrooges for the class ".flaps" $('html, body').animate({scrollTop: $(".abas").offset().top}, 300); It would be possible to call the class .flaps on desktop and…
jqueryasked Wagner Martins Bodyboard 698 -
-1
votes1
answer307
viewsQ: Ajax with Jquery does not work
I need to make the Ajax within the Jquery. The Jquery does the validation correctly, but when I click the button to send the form, it doesn’t work, hangs on the loader, where he would have to…
-
0
votes1
answer54
viewsQ: Form validation does not work with jquery
I have this ajax code that makes a request for a php page $(document).on('click', '#reg-discagem input[type="submit"]', function(e){ $("#form-content_discagem").html('<div…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes2
answers233
viewsQ: Add Download to ajax
How can I add a Download to my ajax request? $(document).on('click', '#reg-discagem input[type="submit"]', function(e){ e.preventDefault(); var form = $('#reg-discagem'); $.ajax({ url:…
-
0
votes1
answer68
viewsQ: Wordpress error in theme installation
When I import the content of a theme in wordpress, returns this error message Invalid post type services How do I resolve this so that I can install theme content correctly?…
wordpressasked Wagner Martins Bodyboard 698 -
0
votes1
answer38
viewsQ: jquery is not bringing the form value
I have this script that makes a request for a php page, the problem is that it is not bringing the input value to the php file. How could I solve this? php $mail->MsgHTML('corpo do email'.…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes1
answer45
viewsQ: DOM Jquery does not work with form
I have this script that opens an html page with the DOM of Jquery $('.abas').on('click', function(){ var paginas =…
jqueryasked Wagner Martins Bodyboard 698 -
0
votes1
answer140
viewsQ: Wordpress - Contact form 7 does not work with jquery DOM
I have this code that brings documents via DOM to the page $(document).ready(function(){ $('.abas').on('click', function(){ var paginas = ["pagina1.html","pagina2.html","pagina3.html"]; aba_index =…
-
0
votes1
answer28
viewsQ: Position Fixed - return to where you were with the mouse scroll
I have this script in Jquery that when the mouse scroll goes through it determined div, leaves fixed a div with position:Fixed. Ali emabaixo has STOP HERE, that’s where I want you to go back to the…
jqueryasked Wagner Martins Bodyboard 698 -
1
votes2
answers2131
viewsQ: Change display property with jQuery
I want to change the display of div content block, as it is clicking and hiding the one that was previously clicked. How could I do that to jQuery? .conteudo_1 { display: none } .conteudo_2 {…
-
1
votes2
answers512
viewsQ: Load html with Jquery
I need to call a html file and show inside a div, using Jquery. I have this jquery code, which I put the html code inside the class contents: How would you call an html file and show dentra from the…
jqueryasked Wagner Martins Bodyboard 698 -
1
votes2
answers44
viewsQ: I place a jquery and the site enters direct id
I have this script with css and jQuery of different color tabs, when I include the line: To leave the first tab open. $(document).ready(function(){ $('.abas:first').trigger('click').focus(); }); The…