【问题标题】:highslide refresh parenthighslide 刷新父级
【发布时间】:2013-04-29 06:51:33
【问题描述】:

使用 Highslide 我想在使用 close X 关闭 ajax 窗口时刷新父页面。我已经在页面上有一个按钮可以执行此操作,但不能保证用户会使用该按钮。我尝试了几个我找到的示例,但似乎都没有。

hs.Expander.prototype.onAfterClose = function() {
parent.window.location.reload();
}

hs.Expander.prototype.onAfterClose = function() {
if (this.a.id == 'tag-send-form') parent.window.location.reload();
}

任何帮助将不胜感激。

【问题讨论】:

    标签: highslide


    【解决方案1】:

    将其放在 Highslide Javascript 文件之后的脚本块中(或在您的 highslide.config.js 文件中):

    hs.Expander.prototype.onAfterClose = function() {
        window.location.reload();
    };
    

    注意:此代码需要 highslide-full.js

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-28
      • 1970-01-01
      • 1970-01-01
      • 2015-07-09
      相关资源
      最近更新 更多