dev@jsftemplating.java.net

Re: JSFTemplating: Fwd: google calendar problem

From: Michael Phoenix <michaelandrewphoenix_at_gmail.com>
Date: Fri, 28 Sep 2007 15:36:22 -0700

Curious, it was working when I first embedded the calendar back in May. I
wonder if it was a change inthe java.net environment or the google calendar?

On 9/28/07, Jason Lee <jason_at_steeplesoft.com> wrote:
>
> On 9/27/07, Michael Phoenix <michaelandrewphoenix_at_gmail.com> wrote:
> >
> > Curious, why do you think that you had to add the src attribute after
> > the onload event? BTW, I tested successfully using the latest versions of
> > Firefox and IE7.
>
>
> With it the way it was (<iframe src=...), the JS runtime in the browser
> got a large and cryptic error message when loading the page from the
> java.net servers. This could be replicated locally by changing index.htmlto include the CSS and JS (the JS is likely all that matters, but I added it
> all anyway) and loading the page in a browser via the file:// protocol.
> Moving the addition of the src attribute to the window's onload event
> handler solved the problem for reasons I don't understand and don't have
> time to chase down. That it works across all the major browsers is good
> enough for me. :)
>
> --
> Jason Lee, SCJP
> Software Architect -- Objectstream, Inc.
> JSF RI Dev Team
> http://blogs.steeplesoft.com
>