Thanks a lot. That works like a charm.

cheers


On Mon, May 28, 2012 at 9:02 AM, Martin Grigorov <mgrigo...@apache.org>wrote:

> Hi,
>
> Do something like:
> img = new NonCachingImage(...);
> img.add(new AttributeModifier("onload", "yourStuffHere"));
> form.add(img);
>
> On Mon, May 28, 2012 at 1:21 AM, Pasithee Jupiter <pasit...@gmail.com>
> wrote:
> > Hi all
> >
> >
> > How can i add the onload attribute to an image? or is it possible to
> > prevent wicket overwriting html attributes on the img-tag?
> >
> >
> > In my HTML I have a form, and inside the form an img and several input
> > fields and a button. Click on the button triggers an ajax request and
> > returns new form values and a new NonCachingImage. So my goal is to run
> > some javascript after the image is loaded means <img ...
> > onload="javascript:abc();">. How can I do that with wicket?
> >
> >
> > Thanks a lot
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to