0

Possible Duplicate:
Ways to circumvent the same-origin policy

I searched for this code for load specific div from another site can any one write an example for this code in jsfiddle???

    $.ajax({
url: 'http://something.com',
type: 'GET',
success: function(res) {
var loadIt = $j(res.responseText).find('#divname').html();
$('#m').html(loadIt);
}
});

if is a better way ?????

Community
  • 1
  • 1
user1574533
  • 93
  • 1
  • 6
  • in fact he can by using some kind of server side proxy script for that. possibly written in php :) – Walialu Aug 16 '12 at 19:02

1 Answers1

-1

You can use the JQuery load method. Give this a try : $('#m').load(url);

yonigozman
  • 707
  • 8
  • 15