I am trying to get a specific div with some Javascript inside that div, from another page using AJAX, but for some reason the Javascript doesn’t load… I can only see the HTML.
What am I doing wrong?
This is my code:
$.ajax({ url: 'web.php', type: 'GET', datatype: 'html', success:
function (html) {
var data = $('#content',$(html)).html();
YAHOO.plugin.Dispatcher.process($('#content').get(0), data);
}
});
use this