Why this won't fetch source code?
This code should fetch the HTML source of http://yahoo.com/(index.html),
and show it in dialog.
$.ajax({ url: 'http://yahoo.com', success: function(data) {
alert(data);
}
});
However, it won't do anything...
What's wrong with my code?
No comments:
Post a Comment