代码之家  ›  专栏  ›  技术社区  ›  Andrew Arnott

jQuery对话框iframe在IE中加载一次,在其他浏览器中加载两次?

  •  5
  • Andrew Arnott  · 技术社区  · 16 年前

    http://openidux.dotnetopenauth.net/

    谢谢。

    3 回复  |  直到 16 年前
        1
  •  7
  •   Andrew Arnott    16 年前

    $(document).ready(function() {
        $("#loginDialog").dialog({
            close: function(event, ui) {
                // Clear the URL so Chrome/Firefox don't refresh the iframe when it's hidden.
                iframe.src = "about:blank";
            },
            open: function(event, ui) {
                iframe.src = loginContent;
            },
        });
    });
    
        2
  •  2
  •   Daniel Brink    14 年前

    我刚才也遇到了同样的问题。我发现问题与打开对话框时的动画选项有关,它似乎会干扰iframe。只需从javascript中删除“显示”设置即可。

    更改此

    $("#blah").dialog({ title: 'Dialog Title', show: 'slide', .... }); 
    

    $("#blah").dialog({ title: 'Dialog Title', ... });
    
        3
  •  0
  •   Pekka    16 年前