Hi all!
Right now in our website we have a series of DIVs that we want to sort
using sortable. Everything's fine until inside the sorted divs there
is javascript code (ex: we have an adsense and other ad server code
inside one of the divs). When we sort, the javascript code inside the
div is reevaluated and that's a mess.
After some debugging i found out that the append function in jQuery
evals the scripts contained inside the appended code. Right now, i
have put a comment in that line in the append function in jQuery that
prevents the reevaluation of the javascript code when the div is
sorted but i would prefer not to touch the core of the libraries
(neither jQuery nor UI).
Any solutions on that? Or that's the default behaviour and there's
nothing i can do about?
Thanks a lot :-)
Albert