class MyPanel implements IHeaderContributor { // ctor ....
public void renderHead(IHeaderResponse response) { response.renderJavascript( mySliderJavascript ); } } On Mon, Jul 26, 2010 at 3:39 PM, zoran <jeremy...@gmail.com> wrote: > > Hi, > > I have a panel that sets some properties at its constructor. Then I want to > use one of this properties to set a javascript slider, so I need to call > javascript code like > "$('#slider').slider('option','value',"+expLevVal+");" > I know how I can do this when I have some event, like link or button click, > but how about the calling set method or after construction of the class. > > Thanks > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-call-javascript-from-panel-constructor-tp2302355p2302355.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >