Is it possible to make a ajax request on one page with a response on another loaded page? I saw something similar but the page needed to be loaded with the response, but my page is already loaded. Is there a way? I tried something like this:
$('#videoSRC').click(function(e){
var url = $('#video_url').val();
$.ajax({
url:'server.php',
type:'GET',
data:{url:url},
success: function(){
$('#container').append('success!');
}
});
});
But is not working So the button "#videoSRC" is on the first html page and the "#container" div is on another loaded html page. Is it a way to do this ?