Re: adding wicket generated link to javascript

2014-09-04 Thread Martin Grigorov
Hi, On Wed, Sep 3, 2014 at 11:15 PM, Jason Novotny jason.novo...@gmail.com wrote: Hi, My designer gave me code where HTML is created in javascript as part of a jquery dataTable: script $(document).ready(function() { $('#datatable').dataTable( {

adding wicket generated link to javascript

2014-09-03 Thread Jason Novotny
Hi, My designer gave me code where HTML is created in javascript as part of a jquery dataTable: script $(document).ready(function() { $('#datatable').dataTable( { $('.clientinvoices .dropholder').html('div class=opener/div*button class=btn type=resetCancel

Re: adding wicket generated link to javascript

2014-09-03 Thread Pierre Goupil
Good evening, You can use a Behavior: - subclass AbstractDefaultAjaxBehavior, - in the overriden renderHead(final Component component, final IHeaderResponse response) use template interpolation to pass the URL to the JS: template.interpolate(variables); - in the JS, use the Wicket client-side