Then why wont the font load? I have removed the document ready (I found a couple sources on line that said to place the document ready in the setOnLoadCallBack because of slow loading with google.load
I have removed that and yet still the font wont load. On Jun 3, 11:44 am, Jeremy Geerdes <jrgeer...@gmail.com> wrote: > The problem that you're having here is that google.setOnLoadCallback and > $(document).ready are essentially synonymous. The onload event only fires > once, and that's what both of these are listening for. > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project quote:http://jgeerdes.home.mchsi.com > jrgeer...@gmail.com > > If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan > Church! > > On Jun 2, 2010, at 2:15 PM, mystrymaster wrote: > > > > > I have copy and pasted the code from the examples into a local web > > page and I have gotten nothing in return. > > > I am trying to verifiy that they have been loaded by simply calling an > > alery from within the jquery $(document).ready > > > Nothing. > > > Any help? > > > Here is the base code I am using > > > <script type="text/javascript" src="http://www.google.com/jsapi?key=MY- > > Key-Removed"></script> > > <script type="text/javascript"> > > google.load("jquery", "1"); > > google.load("webfont", "1"); > > google.setOnLoadCallback(function() { WebFont.load({ google: > > { families: [ 'Droid Sans' ] } }); > > $(document).ready(function() { > > alert('Here'); > > > }); > > </script> > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google AJAX APIs" group. > > To post to this group, send email to > > google-ajax-search-...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-ajax-search-api+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-ajax-search-api?hl=en. -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to google-ajax-search-...@googlegroups.com. To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.