Maybe you need to re-register it with wicket post/precallhandlers... I have had lots of difficulties with jquery and ajax because the markup added by jquery and the magic remains attached to the component that is replaced via ajax... and then the state is a mess. With pre/postcallhanlers you can re-attach jquery events to the new html cmponents, but if the dom is dirty (from the old component's doings) you might need to clean it up somehow..
** Martin 2009/9/17 Decebal Suiu <[email protected]>: > Hello, > > I'm trying to add a hover effect for the actions column (icon with > popup menu panel on mouseover) in an ajax table. > The problem is that jQuery does not sense the new dom elements while > I'm retrieving them with Wicket Ajax - by clicking (header sort link), > so I'm using jquery "Live query" plugin. > > Problem is that neither this way works. The hover menu works when the > page loads first type but > when I click the header sort link in the table header which brings in > new set of data, the hover menu does not get displayed. > In the livequery documentation > (http://docs.jquery.com/Plugins/livequery) I found: > "If your plugin modifies the DOM without using the built-in DOM > Modification methods (append, addClass, etc), you can register your > plugin with Live Query like this. > > if (jQuery.livequery) > jQuery.livequery.registerPlugin("pluginMethodName"); " > > The default event types are: 'append', 'prepend', 'after', 'before', > 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', > 'toggleClass', 'empty', 'remove' > > What can I do? > > Thanks, > Decebal > > --------------------------------------------------------------------- > 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]
