Questions tagged as 'jquery'

1
answer

Image Upload in Blob Format

Good morning! I'm trying to send Blob binary data through Ajax to upload via PHP. index.html: document.getElementById("btnSave").addEventListener("click", event => { canvas.toBlob(function(blob){ var reader...
asked by 23.07.2018 / 19:39
1
answer

JS Duplicating When Sending Record

I have an application with Modal bootstrap, but when sending the data with the button it duplicates the event, it follows the js with the duplication. $(document).on('click', '.form-delete', function(e){ e.preventDefault(); var $form=$...
asked by 24.07.2018 / 15:45
1
answer

Redirect page with post using ajax

I know the question is very strange, but it is a need that we have, I need to move to another page of some variables that I have redeemed, but it is not just passing but redirecting the page as well. I can not use a window.location, it needs to...
asked by 12.07.2018 / 23:19
1
answer

Doubt Syntax error in PHP / jQuery function

I'm consuming a Webservice on a client's website. I get the url return, filter the way I need it, to display only the championships with the condition: "SEX: M" "MODALITY: 2" "CATEGORY: 4" Click here to visit our advertiser. All of this is t...
asked by 30.07.2018 / 21:19
1
answer

Mobile menu: Click to open and then close

I have this code to open a responsive menu, but I could not get it to close. $('#menuMobile').on("click", function() { $('.showMenu').slideDown(); }); .container { width: 100%; background: #000; } /* Cabeçalho */ header...
asked by 05.07.2018 / 22:05
1
answer

PHP - plugin function in WordPress itself causing 500 error

I developed a plugin for inserting shortcodes in WordPress. It was my first one, for personal use, it has been running for years. But a few weeks ago, it started to cause error 500 (POST wp-admin / admin-ajax.php 500) when trying to insert im...
asked by 10.10.2018 / 03:11
1
answer

Find event executed

I made the following command to display a loading every time I submit a project form. $("button[data-noPreload!='true'][type='submit']").click(openPreloading); function openPreloading() { $("#icoCarregando").fadeIn(); } I found this oth...
asked by 15.10.2018 / 14:28
1
answer

Edit the text of a div and its children when clicking

How to edit the text of a div or of your children by clicking on the text with JavaScript or jQuery ? Example, by double-clicking Text Here you can change the text and / or delete it #alterar {background:#e3e3e3;padding:15px...
asked by 21.08.2018 / 03:13
1
answer

HTTP Basic Authentication with AJAX and php

I'm trying to do a simple password authentication using HTTP BA. follow the codes: login.php <?php if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']))){ header('WWW-Authenticate: Basic realm="Restricted A...
asked by 28.08.2018 / 02:46
1
answer

I added a class with JQUERY and tried to use it to trigger a function, but it did not work, what's wrong?

Hello everyone! I am an industrial designer (designer and illustrator) for training and not a programmer, but I really like learning and programming, you see, I'm a curious person! I'm trying out a jQuery plugin for client-side translations on...
asked by 30.08.2018 / 00:25