搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

how to show RSS in an iframe or div?

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 WaxyChicken

more options

I'm writing my own hard drive HTML for my homepage and need to disable the RSS XML Live Bookmarks prompt so that i can display the feed in an iFrame or DIV.

I do NOT need instructions about how to "view source" from the menu, only how to disable the Live Bookmarks subscription HTML prompt.

I'm writing my own hard drive HTML for my homepage and need to disable the RSS XML Live Bookmarks prompt so that i can display the feed in an iFrame or DIV. I do NOT need instructions about how to "view source" from the menu, only how to disable the Live Bookmarks subscription HTML prompt.

被選擇的解決方法

Still the easiest way that I can think of is to use the view-source protocol.

Maybe you can load that page code via an XMLHttpRequest.

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.


<html><head><title>IFRAME</title></head><body>
<p id="p1">
<a href="#pHRF">http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml#</a>
</p>
<iframe id="f1" src="view-source:http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml#" height="95%" width="100%">
</iframe>
</body></html>

(I will lock previous thread about this subject)

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

選擇的解決方法

Still the easiest way that I can think of is to use the view-source protocol.

Maybe you can load that page code via an XMLHttpRequest.

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.


<html><head><title>IFRAME</title></head><body>
<p id="p1">
<a href="#pHRF">http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml#</a>
</p>
<iframe id="f1" src="view-source:http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml#" height="95%" width="100%">
</iframe>
</body></html>

(I will lock previous thread about this subject)

由 cor-el 於 修改

more options

Thanks Corel! you came through for me! :)