kabit999 / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Use Google AJAX API Loader #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We should switch the Maps and AJAX APIs to use the Google AJAX API Loader
instead of the direct load versions.

The options appear to be as follows:

1) Continue to use the direct loading scheme.  The question then becomes
when will this form of loading be deprecated?  What do we loose in
flexibility and elegance if we do this?

2) Use BobV's API loader wrapper classes.  A user would need to request
that the desired API be loaded and wait for the asynchronous load to
complete before calling any of the GALGWT that depends on the API.

3) Allow the API key to be specified in a module property that does impact
the number of permutations that the GWT compiler will generate.  This will
also require some mechanism to be able to deal with the asynchronous
loading used the AJAX API loader and a way to provide notification of
errors during loading.

Original issue reported on code.google.com by gwt.team...@gmail.com on 27 Sep 2007 at 8:07

GoogleCodeExporter commented 9 years ago
Hello,

I've played with Bob V.'s ajax feed api and Loader implementation yesterday 
looking
to add some features and changes,
Except of fact that implementation is dependant on library from Incubator I 
haven't
managed to get Loader working correctly in hosted mode:
GWT 1.60/WinXP PRO/IE7
Both ajax feed api sample and my own code cannot work with api in hosted mode 
if Ajax
Loader implementation is used. It seems that iframe used to preload api is not
updated in hosted mode (so assigned callbacks do not fire),
I"m looking for some solution instead of using direct linking, mostly because 
current
Google Ajax API docs discuss/show examples of using ajax Loader only,

regards,
Peter

Original comment by peter.bl...@gmail.com on 20 Feb 2008 at 2:12

GoogleCodeExporter commented 9 years ago
hi,
I've to use classic inclusion via head script tags (jsapi+google loader) and 
modified
Loader code which simply checks for google.feeds google.feeds.Feed being 
defined in
document at intervals,
That way I can play with Feed api samples in hosted mode. 

regards,
Peter

Original comment by peter.bl...@gmail.com on 21 Feb 2008 at 1:32

GoogleCodeExporter commented 9 years ago
hi,

sorry for another post,
If Google Loader is used that is adviced to use new consistent naming 
convention:
google.feeds.Feed
google.search.NewsSearch
etc,
However in gwt apis direct naming is used. Exception is Bob's Ajax Feed api 
example
implementatio which knowns about new namespace however it create local 
reference to
it with custom namespace, so google.feeds becomes google_feeds.feeds in JSIO
implementation,
If I use existing api as is to bind into already loaded Feed api (via javascript
loadedr from page header) I cannot use api because of that different naming 
(solved
again as custom patches to use $wnd.google.feeds instead of 
$wnd.google_feeds.feeds),
With Loader GWT implementation it could be probably better to make local 
reference
only if it is not defined yet (e.g. with native javascript loader 
google.load(...))
and choose recommended namespace for variable: $wnd.google,
That way I would be able to use GWT Google apis with pages where Google loader 
script
is used natively,

regards,
Peter

Original comment by peter.bl...@gmail.com on 21 Feb 2008 at 2:42

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 9 Jun 2008 at 11:31

GoogleCodeExporter commented 9 years ago
Alex volunteeered to look at migrating the AJAXLoader class created for the
Visualization API into its own project.

Original comment by galgwt.reviews@gmail.com on 9 Jan 2009 at 2:34

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 12 Jan 2009 at 3:42

GoogleCodeExporter commented 9 years ago
An AjaxLoader class has been added to trunk.

Original comment by galgwt.reviews@gmail.com on 21 Feb 2009 at 1:35

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 21 Dec 2009 at 1:32

GoogleCodeExporter commented 9 years ago
Search sample has been updated.
one patch for maps is here: http://galgwt-reviews.appspot.com/53602/show

Original comment by zundel@google.com on 12 Apr 2010 at 10:56

GoogleCodeExporter commented 9 years ago
I didn't convert the maps sample, but there are plenty of examples that do use 
it.

Original comment by zundel@google.com on 10 May 2010 at 7:02

GoogleCodeExporter commented 9 years ago

Original comment by piotr.sw...@gmail.com on 14 May 2010 at 9:39