dev@jsftemplating.java.net

Re: JSFTemplating: Fwd: google calendar problem

From: Jason Lee <jason_at_steeplesoft.com>
Date: Thu, 27 Sep 2007 10:15:33 -0500

On 9/27/07, Jason Lee <jason_at_steeplesoft.com> wrote:
>
> On 9/26/07, Jason Lee <jason_at_steeplesoft.com> wrote:
> >
> > I will take a look when I get a chance.
> >
>
> This is interesting:
>
> https://jsftemplating.dev.java.net/nonav/index.html
>

OK. I think I fixed it. It's working for me, at least, in FF 2.0.0.7,
Safari 3 and IE 6. Here's what I did:

* In index.html, I removed the src attribute from the iframe and add
id="calendar".
* In site.js, I added the following:
window.onload = function() {
    var i = document.getElementById("calendar");
    i.src = "
http://www.google.com/calendar/embed?src=qdrqt481g8sbgbnbsbg0m3ukf8%40group.calendar.google.com
";
}
  which basically adds the src attribute back after the page loads. Fancy,
eh?

Let me know if that doesn't work in some browser/OS config and we'll try to
work through it.

-- 
Jason Lee, SCJP
Software Architect -- Objectstream, Inc.
JSF RI Dev Team
http://blogs.steeplesoft.com