Matej Knopp wrote:
That should work. I see no reason why ajax header contribution should
fail adding function. Do you use lastest wicket (any branch). If so,
can you please provide a quickstart app, so that I can look at it?
Just try to put an alert('foo'); in a header contributor re-rendered by
ajax. When ajax response is evaluate no alert come out.
I work with lastest branch 1.X under Firefox
thanks
--
Vincent
-Matej
Vincent Demay wrote:
Hi all,
I add a new script (a new function that never been render before) in
headerContributor tag of an ajaxTarget. After ajaxResponse, I tried
to call this function but it seems it has not been defined (function
xxxxx not defined)
I took a look at wicket-ajax.js and processScript method. It seems
the new function is just added to the header tag but never evaluated
(with an eval or other). Is the fact to add a function dynamically
via ajax in the header is sufficient to load the function définition?
How can I call my new function added dynamically (A new function
should be added on each ajax response)?
thanks in advance,