开发者

Iframes Vs. Frames

开发者 https://www.devze.com 2023-02-25 09:56 出处:网络
I understand that frames are a lot more typing work to implement than Iframes, and that they require a lot more styling than Iframes. I am currently working on a website which must download some conte

I understand that frames are a lot more typing work to implement than Iframes, and that they require a lot more styling than Iframes. I am currently working on a website which must download some content (in fact, an entire set of webpages) from another website, one - b开发者_开发问答y - one of course depending on the user's action on the main website. Iframes seem to be a short and rowdy way to implement this requirement, but what I am worried about is performance and integrity.

I would like some advice on what I would rather use when the following criteria is met:

  1. The pages that must be downloaded onto my webpage are quite large (width and height)
  2. Contains multiple images
  3. Experiences occasional downtimes (maintainence)

any ideas for a man in wonder?


At this point, go with iFrames:

  • iFrame is HTML5. Frameset is obsolete in HTML5.
  • You have to load pages into each Frameset. iFrames can be embedded anywhere in a document.
  • You can style, hide, resize either, but iFrames are much easier to work with in this regard.

I've seen cases where the developer went with Frameset because he couldn't get the iFrame to size properly, but this isn't too big a deal with a little Javascript (if even that). The only reason to use a Frameset is if you don't fear it's eventual deprecation with modern browsers, and/or if you can't get iFrames to size the way you want based on the content you're integrating and need a quick solution.


If this is about display of 3rd party data in your site, you could use data feeds from the other sites if they're available, or use a screen scraper to extract the information you need, then display it in your own way on the page.

Unless it needs to look exactly like to other page.

Check out this link on screen scraping for ASP.NET

0

精彩评论

暂无评论...
验证码 换一张
取 消