Hi, It should work. It won't work if the appended JS is executed in a different context, e.g. inside an iframe (a ModalWindow with a Page).
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Sep 27, 2014 at 2:36 PM, Mathias Nilsson < [email protected]> wrote: > Hi, > > I have a javascript function already loaded when the first page loads. When > adding a new Panel thru ajax I add target.appendJavascript afterwards but I > get Exception evaluating javascript: ReferenceError: deselectAll is not > defined. > > I know that the script is there..... I must be missing something. Any > pointers? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Make-wicket-aware-of-loaded-javascript-tp4667733.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
