【问题标题】:redirect and refresh html page, onclick image from other page重定向和刷新html页面,点击其他页面的图像
【发布时间】:2014-08-17 13:32:06
【问题描述】:

我正在 Telerik Tool 中构建一个移动应用程序。在页脚上,我放置了一些图标,例如

联系人、群组、聊天等。当我点击页脚图标时,它会很好地重定向。我有问题

重定向页面后,它不会自行刷新。需要刷新(模拟器

刷新按钮-Telerik 工具)。

<div class="nav" data-id="oneFooter" id="page-location-footer" data-position="fixed">
            <ul data-role="listview">
                <li>
                    <table>
                        <tr>
                            <td width="35%">
                            <a href="contacts.html">
                                    <img src="images/user.png" alt="Smiley face"  
width="40" height="40">
                                </a>
                            </td>
                            <td width="35%">
                                <a href="groups.html">
                                    <img src="images/images.jpg" alt="Smiley face" 
width="40" height="40">
                                </a>
                            </td>
                          <td width="35%">
                                <a href="metext.html">
                                    <img src="images/chat.png" alt="Smiley face" 
width="40" height="40">
                                </a>
                            </td>
                            <td width="35%">
                                <a href="social.html">
                                    <img src="images/images1.jpg" alt="Smiley face" 
width="40" height="40">
                                </a>
                            </td>
                        </tr>
                    </table>
                </li>
            </ul>
        </div>

所以我需要的只是将页面从页面重定向到其他页面 onclick of image 并获取

刷新重定向页面。

请多多关照……

【问题讨论】:

  • 重定向后为什么需要刷新?
  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers."
  • Teemu 先生,我会把这东西放在中间

标签: javascript html telerik


【解决方案1】:

Use the http-equiv meta tag with a refresh value.

(您在问题中暗示重定向工作正常,所以我没有触及它。)

要让刷新只发生一次,而不是每隔一段时间持续刷新,您可以在 if 语句中使用 javascript reload(),这取决于 HTTP referer [sic] header 的值。

【讨论】:

  • ya Parthian Shot,重定向工作正常,我可以知道如何使用元标记只刷新一次。我不想在一段时间后刷新页面。我是堆栈溢出和使用 HTML 和 JavaScript 的新手,如果有任何问题,请不要介意。
  • 我将使用 javascript Parthian,我认为它会更好。非常感谢Parthian Shot先生
猜你喜欢
  • 2023-03-22
  • 1970-01-01
  • 2019-01-05
  • 2014-11-13
  • 2016-07-12
  • 2015-09-14
  • 2020-12-31
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多