Re: body onload contribution

2007-10-18 Thread John Patterson
Something I have noticed with renderOnLoad with my site is that it  
stopped being called after I added some Javascript for banner ads.   
Maybe their included script replaced the wicket function.  I had to  
revert to using onLoad which makes gives the impression that the maps  
load more slowly.


I have been thinking about creating a panel to include at the bottom  
of the page that renders scripts etc.  Anyone tried something like this?


On 8 Oct 2007, at 08:15, Matej Knopp wrote:


What wicket version are you using?

In 1.3 there's much better way to do this. Just use
renderOnLoad/renderOnDomReady javascript on IHeaderResponse.

-Matej

On 10/8/07, Evan Chooly <[EMAIL PROTECTED]> wrote:
I used the following in my page constructor, but I'm not seeing  
the change

in the HTML.  What am I missing?

add(new BodyTagAttributeModifier("onload", true, new Model 
("foo()"),

this));



-
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]



Re: body onload contribution

2007-10-08 Thread Evan Chooly
Ah.  that was the 1.3ism i was looking for.  I'll try that.  Thanks.  I knew
it had changed but couldn't remember the new approach.

On 10/8/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> What wicket version are you using?
>
> In 1.3 there's much better way to do this. Just use
> renderOnLoad/renderOnDomReady javascript on IHeaderResponse.
>
> -Matej
>
> On 10/8/07, Evan Chooly <[EMAIL PROTECTED]> wrote:
> > I used the following in my page constructor, but I'm not seeing the
> change
> > in the HTML.  What am I missing?
> >
> > add(new BodyTagAttributeModifier("onload", true, new
> Model("foo()"),
> > this));
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: body onload contribution

2007-10-08 Thread Matej Knopp
What wicket version are you using?

In 1.3 there's much better way to do this. Just use
renderOnLoad/renderOnDomReady javascript on IHeaderResponse.

-Matej

On 10/8/07, Evan Chooly <[EMAIL PROTECTED]> wrote:
> I used the following in my page constructor, but I'm not seeing the change
> in the HTML.  What am I missing?
>
> add(new BodyTagAttributeModifier("onload", true, new Model("foo()"),
> this));
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



body onload contribution

2007-10-08 Thread Evan Chooly
I used the following in my page constructor, but I'm not seeing the change
in the HTML.  What am I missing?

add(new BodyTagAttributeModifier("onload", true, new Model("foo()"),
this));