var htmlResponse is the variable that contains complete html response i.e containing the javascript function and html content
Now i want to evaluate the javascript out of this response
i tried below jquery function but does not work and gives some weird error
$.globalEval(htmlResponse);
I am not sure is there any standard javascript function where we can give complete html response and function
extracts the javascript out of it and evaluate it(so that it can be executed and can be put in current browser context)?
$(“#divSelector”).html( htmlResponse ) does evaluate the javascript automatically while appneding