Download content of the page using ajax jquery
- by niao
Greetings,
how can I download some page content using ajax and jquery:
I am doing something like that (2 versions inside one script):
$("p").click(function() {
$('#result').load('http://google.com');
$.ajax({
url='www.google.com',
success: function(data) {
$("result").html(data);
alert('Load was performed.');
var url = 'www.wp.pl';
$('div#result').load(url);
//var content = $.load(url);
//alert(content);
//$("#result").html("test");
}
});
});
but it does not return any content