You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Michael Preiss <mp...@11mp.de> on 2007/09/25 15:05:49 UTC

DOM changes via JavaScript get lost

I have added some DOM manipulating javascript to my wicket app, that
amongst other things inserts images at the mouse coordinates. The
problem is: after updating a component via wicket, the whole changes
to the DOM will get lost. Any ideas how to solve the problem or work
around it?

PS: I'm using wicket 1.3 beta 2
-- 
View this message in context: http://www.nabble.com/DOM-changes-via-JavaScript-get-lost-tf4515396.html#a12879083
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: DOM changes via JavaScript get lost

Posted by Matej Knopp <ma...@gmail.com>.
This is normal, if you replace the part of page using wicket ajax, it
will generate the markup and won't preserve your changes. You can
either not replace the affected parts of page, or notify server and
generate markup with the image.

-Matej

On 9/25/07, Michael Preiss <mp...@11mp.de> wrote:
>
> I have added some DOM manipulating javascript to my wicket app, that
> amongst other things inserts images at the mouse coordinates. The
> problem is: after updating a component via wicket, the whole changes
> to the DOM will get lost. Any ideas how to solve the problem or work
> around it?
>
> PS: I'm using wicket 1.3 beta 2
> --
> View this message in context: http://www.nabble.com/DOM-changes-via-JavaScript-get-lost-tf4515396.html#a12879083
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org