Rather than prompting the user to install CF (or whatever it's meant
to do!), it just comes up with a variety of errors in IE:
"'document.body' is null or not an object", or "'null' is null or not
an object".
Any ideas? I've tried in IE8 only currently.
-- You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
To post to this group, send email to google-chrome-frame@googlegroups.com.
To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-chrome-frame?hl=en.
On Sun, May 2, 2010 at 1:42 AM, Rich Bradshaw <rich.brads...@gmail.com> wrote:
> I've copied the demo code into a jsbin document here: http://jsbin.com/atifu4
> Rather than prompting the user to install CF (or whatever it's meant
> to do!), it just comes up with a variety of errors in IE:
> "'document.body' is null or not an object", or "'null' is null or not
> an object".
> Any ideas? I've tried in IE8 only currently.
> --
> You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
> To post to this group, send email to google-chrome-frame@googlegroups.com.
> To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-chrome-frame?hl=en.
-- You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
To post to this group, send email to google-chrome-frame@googlegroups.com.
To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-chrome-frame?hl=en.
<style>
/*
CSS rules to use for styling the overlay:
.chromeFrameOverlayContent
.chromeFrameOverlayContent iframe
.chromeFrameOverlayCloseBar
.chromeFrameOverlayUnderlay
*/
</style>
> IE doesn't like trailing commas on the last element in an object
> literal. You have:
> CFInstall.check({
> mode: "overlay",
> });
> Which should just be:
> CFInstall.check({
> mode: "overlay" // note the lack of comma
> });
> Regards
> On Sun, May 2, 2010 at 1:42 AM, Rich Bradshaw <rich.brads...@gmail.com> wrote:
> > I've copied the demo code into a jsbin document here:http://jsbin.com/atifu4
> > Rather than prompting the user to install CF (or whatever it's meant
> > to do!), it just comes up with a variety of errors in IE:
> > "'document.body' isnullor not an object", or "'null' isnullor not
> > an object".
> > Any ideas? I've tried in IE8 only currently.
> > --
> > You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
> > To post to this group, send email to google-chrome-frame@googlegroups.com.
> > To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/google-chrome-frame?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
> To post to this group, send email to google-chrome-frame@googlegroups.com.
> To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/google-chrome-frame?hl=en.
> IE doesn't like trailing commas on the last element in an object
> literal. You have:
> CFInstall.check({
> mode: "overlay",
> });
> Which should just be:
> CFInstall.check({
> mode: "overlay" // note the lack of comma
> });
> Regards
> On Sun, May 2, 2010 at 1:42 AM, Rich Bradshaw <rich.brads...@gmail.com> wrote:
> > I've copied the demo code into a jsbin document here:http://jsbin.com/atifu4
> > Rather than prompting the user to install CF (or whatever it's meant
> > to do!), it just comes up with a variety of errors in IE:
> > "'document.body' isnullor not an object", or "'null' isnullor not
> > an object".
> > Any ideas? I've tried in IE8 only currently.
> > --
> > You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
> > To post to this group, send email to google-chrome-frame@googlegroups.com.
> > To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/google-chrome-frame?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
> To post to this group, send email to google-chrome-frame@googlegroups.com.
> To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/google-chrome-frame?hl=en.
On Jun 11, 10:21 pm, JPSykes <sykes....@gmail.com> wrote:
> Looks like it's because you have the CFinstall.check in the head tag
> so it runs before the body has finished loading.
Although it has been part of the HTML 4.01 standard for many years now
I am not 100% sure if all Web browser vendors have implemented it yet,
but you can defer loading script as described here:
<style>
/* CSS rules to use for styling the overlay:
.chromeFrameOverlayContent
.chromeFrameOverlayContent iframe
.chromeFrameOverlayCloseBar
.chromeFrameOverlayUnderlay
*/
</style>
Another improvement in the above code snippet is the use of an
Internet Explorer conditional comment (see
http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx) to
prevent non-IE browsers from even looking at the JavaScript which will
speed up page load for them (no check for ActiveXObject etc.).
@CF team: would be great if somebody could update the CF Developer
Guide page with this. Thanks!
On Sat, Jun 12, 2010 at 4:53 AM, Sig Weber <siegfrie...@gmail.com> wrote: > On Jun 11, 10:21 pm, JPSykes <sykes....@gmail.com> wrote: >> Looks like it's because you have the CFinstall.check in the head tag >> so it runs before the body has finished loading.
> Although it has been part of the HTML 4.01 standard for many years now > I am not 100% sure if all Web browser vendors have implemented it yet, > but you can defer loading script as described here:
> Another improvement in the above code snippet is the use of an > Internet Explorer conditional comment (see > http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx) to > prevent non-IE browsers from even looking at the JavaScript which will > speed up page load for them (no check for ActiveXObject etc.).
> @CF team: would be great if somebody could update the CF Developer > Guide page with this. Thanks!
I added a conditional comment and an onload handler to the second example to deal with the potential race. Let me know if you think it can be clearer.
> On Jun 13, 6:53 am, Alex Russell <slightly...@google.com> wrote:
> I added a conditional comment and an onload handler to the second
> example to deal with the potential race. Let me know if you think it
> can be clearer.
Perfect (even better than mine by using attachEvent). Thanks!