删除框架集会产生非常大的页面

发布于 2024-08-19 05:06:15 字数 370 浏览 5 评论 0原文

我的任务是从网站中删除框架集(该网站现在需要通过各种东西进行索引,因此框架集必须删除)

该框架集由左手资源管理器组成,如树(可能有数千个节点) 。右手是主要内容出现的地方。

(我将把这个问题保留为不特定于语言,因为它通常适用于网络,但我们正在使用 ASP.Net,因此当考虑母版页时,它会变得稍微容易一些)

它位于框架中的原因首先是这样每次页面刷新时树都不会重新加载......删除框架将成为一个问题。

这里有人知道我们可以用来解决这个问题并保持页面性能的机制吗(使用任何类型的框架(包括 iframe)都不是真正的选择)

我们考虑了像 jquery 面板这样的东西从左侧扩展 - 但这仍然需要在每次页面刷新时加载......

I've been tasked with removing a frameset from a website (the site now needs to be indexable by various things, so the frameset must go)

The frameset is made up of a left hand explorer like tree (which could have thousands of nodes). The right hand is where the main content appears.

(I'll leave this question as not language specific as it really applies to the web generally, but we are using ASP.Net so it's made slightly easier when MasterPages are considered)

The reason it's in a frame in the first place is so that the tree isn't re-loaded every time the page refreshes...which on removing the frame is going to be an issue.

Is anyone on here aware of a mechanism that we may be able to use to solve this problem and maintain the performance of the page (using frames of any kind (including iframes) is not really an option)

We considered things like a jquery panel that expands from the left hand side - this would still need to be loaded every page refresh though...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

木落 2024-08-26 05:06:15

只在页面加载时加载树的一小部分(例如根级别,可能还有当前节点的同级节点)并在单击子节点时使用 Ajax 填充子节点怎么样?

What about only loading a small part of the tree at page-load (e.g. the root level and perhaps the current node's siblings) and use Ajax to populate child nodes as and when they are clicked on?

白云不回头 2024-08-26 05:06:15

部分缓存可以解决这个问题吗?

https://web. archive.org/web/20211020113508/https://www.4guysfromrolla.com/articles/022802-1.aspx

恕我直言,我认为即使是巨大的文本菜单/树也不是问题 - 如果你有 2000项目,每个项目有 20 个字符,总共您下载 20kB 的数据...如果我们以 javascript 的方式谈论的话,这被称为“微小”:)

Could partial caching be the answer?

https://web.archive.org/web/20211020113508/https://www.4guysfromrolla.com/articles/022802-1.aspx

IMHO, I don't think that even huge text menu/tree is problem - if you have 2000 items, each having let's say 20 characters, overall you download 20kB of data... that is called "tiny", if we're talking in manners of javascript :)

三岁铭 2024-08-26 05:06:15

只需使用服务器端包含即可。在 ASP 中,您可以使用 #include 来实现此目的。

Just use server-side includes. In ASP you can use #include for this.

红玫瑰 2024-08-26 05:06:15

如果您不想在每次页面加载时传输树,那么唯一的选择是框架。

另一种选择是按需传输树(不是通过 JavaScript,因为搜索引擎机器人不会使用它)。如果用户选择根节点,则加载下一页,并展开子节点等。

If you don't want to transfer the tree on every page load then the only option is a frame.

Another option would be to transfer the tree on-demand (not by javascript as it won't be used by search engine bots). If the user selects a root node load the next page with the child nodes expanded, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文