views:

63

answers:

1

I'm pretty new to javascript, and has built a script that is working in webkit but not in firefox. When i check for errors in firebug, I get this:

google.maps.Geocoder is not a constructor
    $('.to, .from').geo_autocomplete(new google.maps.Geocoder, { 

what does it mean?

+1  A: 

Your function starts when APIs are not completele loaded, or you are not loading them at all :) http://code.google.com/apis/ajax/documentation/ - Here is an example, hope this will help you.

Denis