Download content of the page using ajax jquery
Posted
by niao
on Stack Overflow
See other posts from Stack Overflow
or by niao
Published on 2010-05-05T09:18:22Z
Indexed on
2010/05/05
9:28 UTC
Read the original article
Hit count: 203
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
© Stack Overflow or respective owner