Questions tagged as 'javascript'

1
answer

How to get size of a file on an external server?

Galera wanted to know if it would take the size of a file that is hosted on an external server for example: an audio on google server www.google.com/audio.mp3 would have how do I get the filesize of this same file n being on my server with php o...
asked by 17.06.2016 / 00:47
2
answers

Moving character and map with canvas + js

Well I have a question, I would like to know how I could use the image at normal size, but I can navigate it with the directional left and right, eg I have a canvas of size 968 width and 643 height, and I have one image of 643 tall and 2000 width...
asked by 18.06.2016 / 04:39
2
answers

Get a value stored in a .html link

The Site link returns a value and would like to know how to implement it, for example, every 5 minutes. Currently I'm doing with the following script <script> function loadTemp() { var xhttp = new XMLHttpRequest(); xhttp...
asked by 25.05.2016 / 08:36
1
answer

Facebook API - Get photo (with defined size) with other information (name, email, id)?

I need to get the id, name, email and photo of the person upon clicking. I'm doing it this way so far but it's in trouble: <script type="text/javascript"> function statusChangeCallback(response) { if (response.status === 'connec...
asked by 23.05.2016 / 21:17
1
answer

How can I be doing multiple modalities on a page, just pulling another PHP page within the modal?

I have a code that opens a modal with another PHP page within modal, but I only managed to do that with a page. I would like to do the same thing using this code for the other buttons, only opening other distinct pages. Can someone help me with...
asked by 24.05.2016 / 14:31
1
answer

Required attribute in an input text javascript

I want to put the required attribute in this input created in javascript // Celula 4 -Local // Cria um <td> var locall = row.insertCell(4); // Cria o input var local = document.createElement('input'); // Input do ti...
asked by 24.05.2016 / 12:00
3
answers

Return DB values via ajax

I have a screen where I should populate with database values using ajax. When I click the button to fill in the fields the following error appears:    Failed to load resource: the server responded with a status of 500   (Internal Server Er...
asked by 18.10.2016 / 20:13
3
answers

Empty string passed to getElementById ()

I'm using jQuery and I have the following code jQuery(document).ready(function($){ $(".checkParcelamento").click(function(){ var bandeira = $("#bandeiraCartao").val(); var numero_cartao = $("input[name='numero...
asked by 19.10.2016 / 04:40
2
answers

How do I extract the field values from a javascript Object (JSON)?

I have a Javascript object, eg: var pessoa = {nome: 'Carlos', cpf: '123', rg: '456'}; I need to list the fields that this Object has and the corresponding values.    To list the fields I have achieved the following: Object.keys(pessoa...
asked by 16.05.2016 / 18:44
1
answer

Problem uploading a .gif file when updating php page?

I have a problem in my code to load a gif when updating a page the gif until it appears more does not leave it running straight. Can anyone help me? Here's my javascript: <script> $(document).ready(function(){ $("#loa...
asked by 16.05.2016 / 15:55