Questions tagged as 'javascript'

2
answers

Google Maps information

I would like to know the following ... I have some map images, which indicate a certain coverage, I would like to add these images over google maps ... I believe this is not difficult ... The big problem that I see, these images have a density....
asked by 14.04.2015 / 03:18
1
answer

Identify the positions of objects

I have two images that I move, and that I store its position x and y in an array. I create a clone of each image, and when I parse to move (onmouseup) I keep its position. I give the same id to each generated image so I can know which one. Witho...
asked by 25.03.2015 / 11:50
1
answer

How to make a "for" that writes its values to an array?

I have this for that will get all data "this.retorno += data.usuarios[i].descr;" and "this.retorno += data.usuarios[i].valor;" wanted to take these values and make an array with them, then get those values stored in the array in an...
asked by 25.03.2015 / 13:41
1
answer

How do you know what elements (js, css) are taking longer to render?

My page has taken a long time to load (20 ~ 30 seconds), sometimes it crashes my browser during this process (and it was not just me, other people have come to complain about it). I did some load speed tests and realized that most of the time is...
asked by 06.06.2015 / 23:50
1
answer

How do I play a song when I start playing an image?

How do I play a song when I start playing an image? javascript or php <script type="text/javascript"> rodarImagem( function adicionaClassERoda() { document.getElementById('pic').className = 'rodar'; }); </script>...
asked by 06.06.2015 / 20:21
1
answer

Change execution order of JavaScript files

I'm developing a project that by clicking the button next to the application ASP.NET WebForms runs a dynamic code (this script is built in loading each page, Dynamic.JS - it is translated from C # programming blocks) and then in same event shoul...
asked by 08.06.2015 / 13:13
1
answer

How to change the formatNoMatches in select2 4.0.0?

I'm using select2 4.0.0 and I'm having trouble changing the way the message that says I have not found results is shown. In the old version I used formatNoMatches to change the presentation, how is it done now? obs: I can not change thi...
asked by 24.03.2015 / 17:30
1
answer

Ajax response time

Personally I'm doing my first AJAX and am having a problem which is as follows. It calls a PHP routine that downloads and uploads one or more files via FTP. And this can take a while. How do I get AJAX to wait for it to finish before the answer....
asked by 24.03.2015 / 15:04
1
answer

When the user clicks on the image, open it at full size

I have the following HTML: <li class="editable" name="Galeria"> <a href="./imagens/galeria.jpg" rel=""> <img class="mudar" src="./imagens/galeria.jpg" title="" alt="" /> </a> </li> For example, I would...
asked by 12.03.2015 / 22:20
1
answer

Make a javascript work inside a URL

The javascript code below works perfectly in the HTML of my site. It is a geo-target server that shows the city based on the user's IP. <script src='http://promos.fling.com/geo/txt/location.php?testip='></script> What I'm trying...
asked by 08.03.2015 / 21:37