jQuery Cross Site Fetch

I feel like this is easy but I am missing something... Using jQuery, I am trying to fetch a remote page (on a different server), capture the HTML contents, and inject that content into a hidden DIV. However, using either $.ajax or $.get results in a cross-site scripting error in FireFox. Any suggestions? Code: $.ajax({ type: 'GET', url: "http://www.remote-url.com", dataType: 'html', success: function(data) { $('#put_here').empty().append(data); } }); Thanks! Chad

以上就是jQuery Cross Site Fetch的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准