Thursday, October 04, 2007

Ajax, Telerik and mootools ouch

I was having massive problems with getting javascript (to control mootools) to correctly work with calls set up through a Telerik Ajax Panel. I was doing the trick of populating (serverside) a literal on the page with the javascript I wanted to execute, but I wasn't getting the javascript to be evaluated. I was sure I have gotten this to work in situations in the past and realized that the reason the javascript I was injecting wasn't being evaluated was because the literal was on the page itself and not in a user control. Pulling everything into a user control allowed the injection trick to work (and the javascript to be evaluated.) Makes sense when I thought about it, but I thought I'd write it down in case anyone else has the same problem.

Labels: , , , ,