Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.1.8, 2.1.9, 2.2
-
None
-
None
Description
The way Ajax currently handles script tags in browser updates, the scripts are evaluated before the HTML elements are replaced.
Because scripts may call for example document.getElementById() they act on the old elements, that are replaced later on.
It would be better to evaluate the scripts after the element has been replaced.
The attached file contains a few overridden functions from from the default cocoon-ajax.js file to postpone script evaluation until after element replacement.
I'm still investigating a possible problem with IE.
Because scripts may call for example document.getElementById() they act on the old elements, that are replaced later on.
It would be better to evaluate the scripts after the element has been replaced.
The attached file contains a few overridden functions from from the default cocoon-ajax.js file to postpone script evaluation until after element replacement.
I'm still investigating a possible problem with IE.