If I remember correctly, then take a look at AbstractAjaxTimerBehavior
because it has a fix for a IE error. Something with putting the
function in quotes or something.
Frank
On Thu, May 1, 2008 at 3:31 AM, Matthew Young <[EMAIL PROTECTED]> wrote:
> Alright, that worked. Thanks!
>
> On Wed, Apr 30, 2008 at 6:13 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > window.setTimeout(function() {Effect.Fade('feedback-id');}, 7000)
> >
> > -igor
> >
> >
> > On Wed, Apr 30, 2008 at 6:08 PM, Matthew Young <[EMAIL PROTECTED]> wrote:
> > > I have a feedback panel on the page I want to fade way after 7 seconds.
> > I
> > > tried adding this to the page:
> > >
> > > private static AbstractBehavior feedbackSelfDisappear = new
> > > AbstractBehavior() {
> > > private static final long serialVersionUID = 1L;
> > > @Override public void renderHead(IHeaderResponse response) {
> > > super.renderHead(response);
> > >
> > >
> >
> response.renderOnDomReadyJavascript("window.setTimeout(Effect.Fade('feedback-id'),
> > > 7000)");
> > > }
> > > };
> > >
> > >
> > > But the fade happens immediately without delay. I tried these and all
> > the
> > > same:
> > >
> > >
> > >
> >
> response.renderOnDomReadyJavascript("setTimeout(Effect.Fade('feedback-id'),
> > > 7000)");
> > >
> > >
> >
> response.renderOnLoadReadyJavascript("window.setTimeout(Effect.Fade('feedback-id'),
> > > 7000)");
> > >
> > >
> >
> response.renderOnLoadReadyJavascript("setTimeout(Effect.Fade('feedback-id'),
> > > 7000)");
> > >
> > > What's the right way to get make this happen?
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]