Questions tagged as 'javascript'

1
answer

Convert ZIP to latitude and longitude (Javascript)

I need a Javascript api that converts a ZIP code typed into latitude and longitude, does anyone know one I can use for free?     
asked by 24.05.2016 / 16:11
2
answers

How do I refer to the value of onclick ()

I want an "if" that its condition is based on the location of the user click, but I have no idea how to refer to it. I believe that with this basis understand what I want to happen: if (onclick == window) {executar bloco de código} If you'd...
asked by 15.06.2016 / 02:11
2
answers

Is there any way to call an action when the method does not exist in an object in javascript?

In PHP, we have some special methods that can be included in a class. One of them is __call , which causes an action to be invoked (through it) when a method does not exist in a class. Example: class Exemplo { public function e...
asked by 02.10.2015 / 16:20
4
answers

Working with Array and selecting a specific index

In my studies in JS I have the following code: <select name='options'> <option value="a">A</option> <option value="b">B</option> <option value="c">C</option> </select> <input class="i...
asked by 30.11.2015 / 17:17
1
answer

Why does an array in javascript continue with the same size even when we use delete?

I was running tests on javascript and I noticed that when I use the delete function at an index of array , array continues with the same size. Example: a = [1, 2, 3] delete a[1] console.log(a.length); // Imprime...
asked by 02.10.2015 / 17:19
3
answers

Get data on page by javascript and convert it to integer

This with a problem, when I get a number inside a span by javascript I try to convert it to int with parseInt, but nothing. For if I try to make a sum with another number it ends up concatenated. and if I convert with parseInt it will appear 'NA...
asked by 08.10.2015 / 17:34
2
answers

Problem with access limit by refresh account JAVASCRIPT

Is there any way to return updated direct server data in HTML without using setInterval , setTimeout these things? Because these functions are getting rid of the server .. Every time it refresh it is as if it were having one m...
asked by 14.07.2015 / 16:06
2
answers

Compare javascript dates! [duplicate]

In these two my alert I have two dates, the first date is the date that is taken from my datetime control of devexpress. The second I created a variable and concatenei with get date, month and year. I'm having trouble comparing what I con...
asked by 10.07.2015 / 16:33
2
answers

Use a function multiple times

I created a function that creates a certain clock. The goal is to use the function to reuse multiple times by changing the parameters of x and y . I use the setInterval function to update every second. The problem is that the...
asked by 16.04.2015 / 18:42
2
answers

Error Unexpected token for [closed]

I'm having trouble applying a for to fullcalender to list events in a calendar. It gives me the following error:    Unexpected token for Here is my code: for (i = 0; i< array1.length; i++) { { title: array5[i],...
asked by 22.06.2015 / 01:00