I'm using jQuery 1.4.4 and I can't understand where I'm doing wrong, I'm simply populating all the rows of a table with template function, so far so good, but I cant delegate the "hover" (and click and all the events) event on a row or a cell.
I've tried to put the .delegate() code also in the footer of my page but nothing.
Ok, the question starts here: When I replace the link .click() doesn't work anymore I need to use .delegate() that works pretty good.
I need to create two functions, one for each case (.click() and .delegate()) or is there (I'm sure there is, but I don't know) a better way to do that?
I need to geocode 100 addresses from google maps, but if I iterate an array with a simple for loop, google maps stop all my request with a "OVER_QUERY_LIMIT" because te request are too fast.
What I want to get is to send a single request to google maps every 5 seconds but I don't know how to iterate avery item of my array every 5 seconds.
Any help or idea?
This is my code:
$(document).ready(function(){
geocoder = new google.maps.Geocoder();
var addresses = [" example address 1"," example address 2"," example address N"];
// This code does work too fast and I need to extract an item every 5 second and send it to the codeAddress function.