How to execute JavaScript after inserting into element.innerHTML automatically

Here is a scenario: you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function; you can insert any HTML tags including <script>; you can not call any JS function (software/component does not have such functionality), and inserted script using innerHTML is not executed automatically. After some lost time trying to come …

On production machine: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts.

I was helping my colleagues to debug one weird bug on ASP.NET 4.0 website. Everything worked well on developer’s machine, but after publishing to IIS 7.5 Windows 2008 R2 Webserver, we always got site partially working. Everything worked, except AJAX Control Toolkit controls. There were no any signs of errors. Ajax controls just were not …

2011 links no. 3

Interview With Sacha Barber in The Code Project. The ABA problem occurs during synchronization, when a location is read twice, has the same value for both reads, and “value is the same” is used to indicate “nothing has changed”. However, another thread can execute between the two reads and change the value, do other work, …