Questions tagged as 'html'

1
answer

Why does this while loop not work? (infinite)

I'm having trouble with a while loop in my code. For some reason, it is looping endlessly. The code is this: function transf(){ var container = document.getElementById('container'); var compartimento = document.getElementById('compartimento')...
asked by 14.02.2018 / 14:06
1
answer

How to filter the format of the file by the input type file?

When it is sent I make a validation checking if the chosen file is of the format that I need: function validaExtensao(id) { var result = true; var extensoes = new Array('xls'); // Arquivos permitidos var ext = $('#' + id).val().split(...
asked by 06.01.2016 / 18:32
0
answers

Ajax does not work on the server

I have read some answers in the forum, but none have solved my problem, Ajax works on the site, but when upload does not work, follow the code: jQuery('#formLogin').submit(function(){ var dados = jQuery( this ).serialize(); jQuery.aja...
asked by 13.02.2018 / 18:54
0
answers

Passing date as a parameter to JavaScript function

I'm trying to pass a PHP date to a HTML block that has a Javascript function, the problem is that it's going in How can I solve this? Part of the HTML string being mounted: $tabelaDados = "<tr><td scope='row'>'.$idDesp.'&...
asked by 12.02.2018 / 13:50
1
answer

display content from another page using fancybox

I have a page with the names of several products and I would like to click on one to open a fancybox with the details of each product. These details (name, price, etc.) are on another page and would like to display them on the same page as the p...
asked by 12.02.2018 / 00:41
1
answer

POST image, via ajax

Hello basically what I want to do is a system similar to facebook, to create posts. Where you press on send photo, choose the photo and automatically the photo goes to the server and has a visual feedback that the photo is going and then the thu...
asked by 14.02.2018 / 20:28
0
answers

Possible reading of data in firebase

Good afternoon  I would like to ask a question regarding the Firebase Realtime Database.  I have some data stored in my firebase but wanted to make a compilation or reading them through an HTML page is possible and how to do     
asked by 22.02.2018 / 14:24
1
answer

Bootstrap 4 multiple modal

I'm making a page that uses modal over modal (click the button, opens modal and when you click the button inside that modal opens another). I was doing this with bootstrap 3.3.7, BUT I now migrated to version 4 and where I had modal on modal...
asked by 19.02.2018 / 13:37
1
answer

Create mask for a text [duplicate]

I need to return a value of CNPJ with a mask through Javascript for a text in a td tag of my html code. The value is returned from the default bd of CNPJ as in the code below: <tr th:each="cliente : ${clientes}" class="cliente"> <td...
asked by 22.02.2018 / 14:45
0
answers

How could I do in JavaScript the buttons on my slider work

How could I make the previous and next JavaScript buttons work? <div class="c-sliders-slideshow"> <div class="o--sliders-container"> <button class="o--sliders__buttons prev-button" value="prev"><a href="">ante...
asked by 08.02.2018 / 02:01