When I add a Google widget to the sidebar, the window does not display the widget but always:http://www.gmodules.com/ig/images/plus_google.gif gadgets powered by Google
I am able to preview the widget with the Notes browser.
Am using 8.0.2 FP1 CCH2.
This is the source of the weather widget page:
< h t m l >
< b o d y o n l o a d = " o n l o a d ( ) ; " >
< d i v i d = " t o o l b o x _ g a d g e t _ c o n t a i n e r " s t y l e = " v i s i b i l i t y : h i d d e n " >
< s c r i p t s r c = " h t t p : / / g m o d u l e s . c o m / i g / i f r ? u r l = h t t p : / / w w w . g o o g l e . c o m / i g / m o d u l e s / b u i l t i n _ w e a t h e r . x m l & s y n d = o p e n & w = a u t o & h = 6 1 2 & & b o r d e r = % 2 3 f f f f f f % 7 C 3 p x % 2 C 1 p x + s o l i d + % 2 3 9 9 9 9 9 9 & l a n g = e n & o u t p u t = j s " > < / s c r i p t >
< / d i v >
< s c r i p t l a n g u a g e = " j a v a s c r i p t " t y p e = " t e x t / j a v a s c r i p t " >
w i n d o w . o n r e s i z e = r e S i z e ;
v a r m y W i d t h = 0 , m y H e i g h t = 0 ;
g e t S i z e ( ) ;
v a r s c r o l l X = 0 ; s c r o l l Y = 0 ;
f u n c t i o n g e t S i z e ( ) {
i f ( t y p e o f ( w i n d o w . i n n e r W i d t h ) = = ' n u m b e r ' ) {
/ / N o n - I E
m y W i d t h = w i n d o w . i n n e r W i d t h ;
m y H e i g h t = w i n d o w . i n n e r H e i g h t ;
} e l s e i f ( d o c u m e n t . d o c u m e n t E l e m e n t & & ( d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h | | d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t ) ) {
/ / I E 6 + i n ' s t a n d a r d s c o m p l i a n t m o d e '
m y W i d t h = d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ;
m y H e i g h t = d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t ;
} e l s e i f ( d o c u m e n t . b o d y & & ( d o c u m e n t . b o d y . c l i e n t W i d t h | | d o c u m e n t . b o d y . c l i e n t H e i g h t ) ) {
/ / I E 4 c o m p a t i b l e
m y W i d t h = d o c u m e n t . b o d y . c l i e n t W i d t h ;
m y H e i g h t = d o c u m e n t . b o d y . c l i e n t H e i g h t ;
}
}
f u n c t i o n r e S i z e ( )
{
g e t S i z e ( ) ;
v a r s c r e e n H e i g h t = m y H e i g h t - 3 0 ;
v a r s c r e e n W i d t h = m y W i d t h - 5 ;
v a r b o d y = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) [ 0 ] ;
v a r t i t l e _ t r = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " t r " ) [ 0 ] ;
v a r s p a c e _ t r = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " t r " ) [ 1 ] ;
v a r i f r a m e = d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " i f r a m e " ) [ 0 ] ;
/ / t h i s c a n b e b r i t t l e i f G o o g l e c h a n g e s t h i s t o n o t u s e a t a b l e . . . .
/ / s o i f e i t h e r o n e s o f t h e s e i s n u l l w e a b o r t a n d u s e t h e i r d e f a u l t l a y o u t .
i f ( t i t l e _ t r = = n u l l | | s p a c e _ t r = = n u l l )
r e t u r n ;
b o d y . s t y l e . m a r g i n = " 0 p x " ;
b o d y . s t y l e . o f f s e t = " 0 p x " ;
/ / h i d e t h e f i r s t t w o r o w s o f t h e t a b l e
t i t l e _ t r . s t y l e . d i s p l a y = " n o n e " ;
s p a c e _ t r . s t y l e . d i s p l a y = " n o n e " ;
i f ( i f r a m e = = n u l l )
r e t u r n ;
i f r a m e . p a r e n t N o d e . s t y l e . b o r d e r = " 0 p x " ;
i f r a m e . p a r e n t N o d e . s t y l e . p a d d i n g = " 0 p x " ;
i f r a m e . s t y l e . h e i g h t = s c r e e n H e i g h t ;
i f r a m e . s t y l e . w i d t h = s c r e e n W i d t h ;
i f r a m e . b o r d e r = " 0 p x " ;
i f r a m e . p a d d i n g = " 0 p x " ;
v a r d i v W r a p p e r = d o c u m e n t . g e t E l e m e n t B y I d ( " t o o l b o x _ g a d g e t _ c o n t a i n e r " ) ;
/ / c l e a r t h e d i s p l a y : n o n e s o w e s h o w i t
d i v W r a p p e r . s t y l e . v i s i b i l i t y = " " ;
}
f u n c t i o n o n l o a d ( ) {
r e S i z e ( ) ;
}
< / s c r i p t >
< / b o d y >
< / h t m l >