Questions tagged as 'javascript'

1
answer

Modal does not work after load div

Well, my problem is, I have a function in an external file function lista_contas(id) { var url = 'lista_dados.php'; var method = 'POST'; var params = 'id='+id; params += '&select_ano='+document.getElementById('select_ano')....
asked by 02.06.2015 / 20:08
1
answer

Display values adding to the FormData object and remove

I have often tried to debug an instance of the FormData object, but I can not see the values stored by the append method. I tried this: f = new FormData(); f.append('name', 'Wallace Maxters'); f.append('image', $('#file').pr...
asked by 01.06.2015 / 19:56
1
answer

Retrieve input file file with Angular Js

I need to create an object with the data of a form and I do not know what to do with the input type="file". Is there any ready-made ng-model directive that retrieves the file from an input type="file" with Angular Js?     
asked by 20.07.2015 / 12:46
1
answer

Add parameters to URL without changing path to file

So I have a url imagine ...    link The idea is for me to add a parameter or a variable to a url:    link This parameter is written by the user when defining the url. The idea is then to use the parameter to define what will ap...
asked by 19.05.2015 / 12:40
1
answer

Display error loading page with url not found

I wonder if it's possible to create an iframe with URL error ex: if you do not find the url type that browser error when the site is off or the network is disconnected.     
asked by 21.05.2015 / 07:59
1
answer

2 simple points in Google Maps

If I create a dot on Google Maps like this: function initialize() { var myLatlng = new google.maps.LatLng(-28.457122, -52.197458); var mapOptions = { zoom: 15, center: myLatlng }; var map = new google.maps.Map(document.getEl...
asked by 21.05.2015 / 20:12
1
answer

problem with response.redirect

The response.redirect is causing my javascript msg to be undone, how do I run redirecit and make the message appear? if request("action2") = "alteracliente" then sql3 = "update clientes set nome_cliente ='"&request("nome2")&"',desc...
asked by 21.05.2015 / 15:00
1
answer

how to add a simple polylines to Map Api gmaps v3?

I can not see the line on the map, the code is apparently correct, it does not break on any line, when I see it on the console. function initialize() { var latlng = new google.maps.LatLng(latitudes, longitudes); var options =...
asked by 04.05.2015 / 18:25
2
answers

Forward and rewind JavaScript slide

I have a photo slider on my page, with buttons to go back and forward. I can not make these buttons work. First I figured that the logic to move forward would be the same one used for the slide to advance automatically, but I could not. I get th...
asked by 02.05.2015 / 22:21
1
answer

JavaScript - Return image dimensions

Explanation Hello everyone, I'm uploading an image with JavaScript , using the following code: $('#image-background').on("change", function(e) { var arq = URL.createObjectURL(e.target.files[0]); $("#mp-image-bg").attr("src", arq).c...
asked by 02.05.2015 / 18:34