Making sense of jquery - constructor error?
开发者_JAVA百科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?
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.
精彩评论