开发者

Making sense of jquery - constructor error?

开发者 https://www.devze.com 2023-01-16 06:47 出处:网络
开发者_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:

开发者_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.

0

精彩评论

暂无评论...
验证码 换一张
取 消