Questions tagged as 'javascript'

1
answer

How to put a "page" opening on a piece of the page?

In the DatePicker example, when someone clicks on input date, opens the correct calendar down. How can I do this ? In my case I have a page that only has a calendar made by me, it's a specific calendar, but I would like it when someo...
asked by 05.09.2015 / 00:53
2
answers

Get rows from a table by a value with Jquery

I have a table, with a select , in each row, and when I click a button I want to get all the items in the table where select option has value. <table id="myTable"> <span class="result"></span> <thead>...
asked by 08.04.2016 / 21:35
1
answer

Why does AJAX allow synchronization?

Hello, in my studies on AJAX, the form of synchronous transmission is always viewed with bad eyes, and the widely recommended form of transmission is asynchronous. If only asynchronous is the one we should use, can anyone explain in what situati...
asked by 20.04.2016 / 04:45
1
answer

Open page by clicking Ok - SweetAlert

I am testing with the SweetAlert plugin, and would like to open a page by clicking ok , but I could not do it. I did a test using setTimeout , but there was a lot of gambiarra ... <html> <head> <...
asked by 20.04.2016 / 22:14
1
answer

Error displaying / hiding Div with Angular.js

I need to hide fields using Angular JS , after clicking a button will appear the label below: <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script><bodyng-app=""> <div>...
asked by 26.09.2016 / 16:30
2
answers

How to display / hide fields according to selection?

Follow the code: function exibir_ocultar(val){ var cpf = document.getElementById('cpf'); var nome = document.getElementById('nome'); var cnpj = document.getElementById('cnpj'); var razao = document.getElementById('razao...
asked by 26.10.2016 / 00:19
1
answer

javascript problem receiving variable with date

<td class="A8" style="text-align:center;"> <?php $dta_inicial = $dados['data_inicial']; var_dump($dta_inicial); ?> <div class="B2" onclick="preencheform_edicaoJS(<?php echo $dados['etapa_projeto_id']; ?>,&...
asked by 17.12.2015 / 17:06
3
answers

JavaScript: Retrieve text from an Option

Where is the error in this code below that is only returning the state acronym? window.onload=function(){ var form = document.getElementsByTagName("form")[0]; var cmdEstados = form.Estados; cmdEstados.onchange=function(){ ale...
asked by 07.12.2015 / 17:40
1
answer

Clickable 3D globe

I'm thinking of doing a project using a 3D globe with the possibility of clicking countries, but I do not know where to start. I've been researching and so far I've found this: link It seems to be pretty full, but it does not give the...
asked by 28.12.2015 / 01:23
2
answers

Video loop in html5 doing infinite re-downloads. Burst bandwidth consumption

I'm using a background video from the top area of the site. Identical to this site , which uses <iframe> pointing to a video on YouTube. The biggest problem I've noticed in all sites that use video like this is that the video...
asked by 25.03.2015 / 13:47