sharepoint 动画 gif 进度条

发布于 2024-12-18 11:05:51 字数 966 浏览 2 评论 0原文

我对 SharePoint 很陌生,我正在尝试做一些标准 HTML 的事情,但由于某种原因在 SP 中不起作用。

我有一系列使用向导创建的页面,我希望倒数第二个页面显示进度微调器 (gears_an.gif)。

但是,当显示此页面时,gif 不会生成动画。

有没有办法让标准的、工作的 gif 在 SP 页面上以标准的方式工作?

(我在页面的其他地方使用 jQuery,以防它可用于构成解决方案的一部分。)

如果您需要更多信息,请告诉我。

jQuery 和 HTML 如下:

if ($('input[name$="nextButton"]').val() == "Proceed") {
    $('.pageTable').hide();
    $('.buttonBlock').hide();
    $('#processingPage').show();
    $('#progressSpinner').show();

<img id="progressSpinner" enableviewstate="true" src="/_layouts/images/gears_an.gif" width="100" height="100" alt="This is the spinner..." />

<asp:Image ImageUrl="~/_layouts/images/gears_an.gif" AlternateText="This is from an asp:label..." Height="100" AlternateText="with a tilde" />

<asp:Image ImageUrl="/_layouts/images/gears_an.gif" AlternateText="This is from an asp:label..." Height="100" AlternateText="without a tilde" />

非常感谢

I'm quite new to SharePoint and I'm trying to do something that's standard HTML but for some reason doesn't work in SP.

I have a series of pages that were created using the wizard and I would like the penultimate page to show a progress spinner (gears_an.gif).

However, when this page is displayed the gif doesn't animate.

Is there a way of getting a standard, working gif to work in a standard way on an SP page?

(I'm using jQuery elsewhere on the page, in case that may be used to form part of the solution.)

Please let me know if you need any more information.

The jQuery and HTML is as follows:

if ($('input[name$="nextButton"]').val() == "Proceed") {
    $('.pageTable').hide();
    $('.buttonBlock').hide();
    $('#processingPage').show();
    $('#progressSpinner').show();

<img id="progressSpinner" enableviewstate="true" src="/_layouts/images/gears_an.gif" width="100" height="100" alt="This is the spinner..." />

<asp:Image ImageUrl="~/_layouts/images/gears_an.gif" AlternateText="This is from an asp:label..." Height="100" AlternateText="with a tilde" />

<asp:Image ImageUrl="/_layouts/images/gears_an.gif" AlternateText="This is from an asp:label..." Height="100" AlternateText="without a tilde" />

Many thanks

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

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

发布评论

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

评论(2

我ぃ本無心為│何有愛 2024-12-25 11:05:51

它没有直接回答问题,但您是否考虑过使用 SPLongOperation< /a> 类?

它专门针对这种情况,并呈现了旋转齿轮类型页面。

Keith Dahlby 发布了自定义此页面的方法。它并不全面,但可能足以满足您的要求。实际上,您可以将 HTML、CSS、javaScript 注入到前导和尾随 HTML 元素中,并使用它们来重新设计页面样式。

It's not directly answering the question, but have you considered using the SPLongOperation class?

It is specifically for this sort of situation, and presents a spinning gears type page.

Keith Dahlby has posted on a method of customising this page. It's not comprehensive, but might be enough for your requirements. Effectively, you can inject HTML, CSS, javaScript into the leading and trailing HTML elements and use them to restyle the page.

无需解释 2024-12-25 11:05:51

过去我发现 ASP.Net UpdatePanel 控件会干扰动画 GIF。您的页面上有 UpdatePanel 吗?

In the past I've found that ASP.Net UpdatePanel controls interfere with animated GIFs. Are there any UpdatePanels on your pages?

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