- $("a[rel^='ids']").click(function() {
var id=$(this).attr("id");
$.ajax({
url: "lista.php",
method: "get",
data: "id="+id,
beforeSend: function() {
$("#loading"+id).html("<img src='img/ajax-loader.gif' />");
},
success: function(data) {
$("#loadhere").html(data);
}
})
});
The "lista.php" file contains some javascript. When i try to load it via ajax, it does show nothing; if i try to place its javascript in the "mother" page, it shows the content as pure html. If i load it directly by url, it works.
If you need to know what is the javascript code, i this it's enough if i say it is TinyMCE.
So, someone can help?