googlearchive / gwt-google-apis

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

AjaxLoader API won't load the JQuery api #306

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
1.0.0

Detailed description:
The jquery API refuses to load unless it is loaded before the DOM is 
loaded.  Unfortunately, the GWT selection script doesnt run until after the 
DOM is loaded.

Workaround if you have one:
Use Ray Cromwell's gquery:  http://code.google.com/p/gwtquery/

or

Use JavaScript to load the API in the the host page.

Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/gwt-google-
apis/browse_thread/thread/706fdd0bdbedcc6

Original issue reported on code.google.com by galgwt.reviews@gmail.com on 25 Sep 2009 at 12:15

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 7 May 2010 at 4:03

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
I am still getting the same issue loading swfobject in 1.1.0. any suggestions?

Original comment by key...@gmail.com on 14 Jun 2010 at 4:12

GoogleCodeExporter commented 9 years ago
I see it too for swfobject.

Original comment by erich.pl...@gmail.com on 22 Feb 2011 at 2:14

GoogleCodeExporter commented 9 years ago
Using the CrossSiteIframeLinker we eventually might be able to create a solve 
this, but there isn't a way right now.

The linker allows you to hook in JS at various points in a module.xml file:

<!--
 The following lines force the GWT onModuleLoad() to run immediately 
 after the javascript file is loaded instead of waiting for document ready.
-->
<set-configuration-property name="installCode" value="false" />
<set-configuration-property name="installScriptJs" value="function 
installScript(filename) {}" />

But this is before any GWT compiled code is loaded.  I think the best bet for 
now is to not use the Ajax Loader on these libraries with GWT.

Original comment by zundel@google.com on 22 Feb 2011 at 6:16