将外部网页加载到div中 [英] Load external webpage into div

查看:127
本文介绍了将外部网页加载到div中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读有关iframe,jquery,jsonp以及如何解决我的问题"的知识.

I have been reading about iframe, jquery, jsonp and what not how to come up with a solution to my "problem".

我想知道,什么是获得所需结果的最佳方法?

I am wondering, what is the best approach to get the result I need?

非常感谢您提供的所有帮助! 建议使用代码/脚本/字符串,我以前从未尝试过这种方法.

Any and ALL help with this is greatly appreciated! Suggestion code/script/strings is prefered, I have never tried something like this before.

场景:

  • 从external.com/loadme.html加载/显示外部URL/网页到domain.com/loaded.html
  • 可以在已加载/iframed输出中进行导航(单击链接)

我想知道,我应该如何制作external.com/loadme.html?

I am wondering, how should I go about making the external.com/loadme.html?

  • 使用ajax导航并将内容加载到loadme.html吗?
  • 常规导航链接?

基本上,我将创建一个包含一些内容,几个链接以及其他内容的页面,并将整个内容加载到DIV中包含导航和所有内容的其他2个网站中.

Basicly, I am going to make a page with some content, a couple of links and what not, and load the whole thing to 2 other websites with navigation and all, inside a DIV.

我不确定执行此操作的最佳方法是什么,在我花大量时间研究此问题之前,我想问问别人是否有任何建议?

I am not sure what would be the best way to do this, and before I use alot of time researching this, I wanted to ask if someone have any suggestions?

谢谢! -汤姆

推荐答案

iframe有什么问题?它会为您完成所有这些工作.

What is wrong with an iframe? It does all of this work for you.

这篇关于将外部网页加载到div中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆