Hi All,
I'm using MVC 2 and the default view engine to return .ascx partial views using the JQuery Ajax .get() method. The partial views have some javascript in them and I'm finding that the behaviour of the javascript is erratic in that sometimes it executes, while other times it doesn't. I came across a reply from a MS Program Manager on another forum with the following:
"When you update the DOM with new HTML, the browser doesn't automatically execute scripts in the new bit of HTML. Our Ajax helpers would need to parse the partial HTML and try and execute the scripts, which is tricky and something we don't currently do."
I know I can use jquery live events as a workaround, but I was wondering, is this problem specific to the default view engine and would a view engine like Spark resolve the issue? I've never used another view engine before? Thanks for the help !