Questions tagged as 'html5'

2
answers

Wanted to show an alert after a form is submitted, PHP, JAVASCRIPT, HTML, AJAX

I'm having problems, where my form is being sent to the bank but in the alert it appears alert("erro ao enviar formulário"); . <?php if(!empty($_FILES['uploaded_file'])){ $username = 'root'; $password = ''; $connec...
asked by 06.10.2018 / 15:41
2
answers

Count elements within a parent div separately

In Jquery it is possible to count the number of like divs within another using $(".pai .filha").length; . Example: <div class="pai"> <div class="filha"></div> <div class="filha"></div> </div>...
asked by 03.02.2016 / 02:59
2
answers

How to modify CSS dynamically using PHP

I need to modify some CSS styles according to a condition in PHP, so I looked it up, and from what I saw it is necessary to include a header in the CSS file and change the file .css to .php , or create a file htacess (but where? whe...
asked by 20.05.2015 / 22:34
2
answers

onclick event does not work in chrome!

I am not able to perform a transition exercise. I have the img of the lamp erased and another one lit and a ragged one! Until the access I did, but when it's pa, breaking the code does not work! Here is the source code: <!DOCTYPE html...
asked by 28.10.2017 / 22:03
4
answers

POST API Rest JSON

I have a form in HTML that should send data to a server in JSON format. How do I format this input and submit data to an API Rest the data in JSON in the way I described below? As I see it, I need to do a POST, the difficulty is...
asked by 17.10.2017 / 17:34
1
answer

paste command in javascript

How do I paste what's on the clipboard? I researched a lot, but what I found was just copying it, not the necklace! The only thing I found about paste, did not work, which was document.execCommand("paste"); I want when the user c...
asked by 27.01.2017 / 12:19
2
answers

put link in one image to be redirected to another site

So I have an image, I wanted the user to be redirected to the link I defined, <a href="www.google.com"><img src="img/css3.png" class="media-object img-responsive img-thumbnail"></a> But when I click on the image it appear...
asked by 13.01.2017 / 01:00
2
answers

Error sending some photos

I made a script that uploads a photo to the server and saves the name in MySQL, but some photos it does not send, some 3 mega pixels type JPEG is not sent and gives error. index.php: <form action="upload.php" method="POST" enctype="multi...
asked by 02.07.2018 / 20:34
4
answers

Put a url in the text field and show it in a DIV next to it

How can I do this? I have a form that has some input text, I would like it when the user pastes a url of an image on the web it appears next to a div with that image. I think it would be with Ajax but I have no idea how to get started.     
asked by 13.07.2015 / 18:50
1
answer

How do I get the value of a list of ckeckboxes with jquery?

I've tried the following: <input name="chklista" id="chk01" value="01" type="checkbox" />01<br /> <input name="chklista" id="chk02" value="02" type="checkbox" />02<br /> <input name="chklista" id="chk03" value="03" t...
asked by 18.12.2014 / 15:11