On 16 juil, 20:15, Alexey <[email protected]> wrote:
> I've written an image gallery widget in GWT that uses floating div's
> to expand and move images along a horizontal axis in response to mouse
> movements. Everything works fine in Firefox, but IE refuses to load
> the module. It complains about the following in the bootstrap
> Gallery.nocache.js file:
>
> Webpage error details
>
> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
> 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
> Timestamp: Thu, 16 Jul 2009 18:12:09 UTC
>
> Message: 'undefined' is null or not an object
> Line: 38
> Char: 7
> Code: 0
> URI: file:///C:/pub/media/alixisdizzy/Gallery/Gallery.nocache.js
>
> Here's the code in question:
>
> function maybeStartModule(){
> if (scriptsDone && loadDone) {
> var iframe = $doc_0.getElementById('Gallery');
> var frameWnd = iframe.contentWindow;
Do you have an element in your HTML page with id="Gallery"? If your
have, then IE might return your element instead of the <iframe> that
the *.nocache.js is injecting, so frameWnd is undefined here (unless
your element is an iframe too...) and trying to call frameWnd.gwtOnLoad
() later on fails.
Many people seemed to have faced this issue; last time I checked I
couldn't find in the issue tracker. Time to check again and eventually
fill a new issue?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---