开发者

Embedded Internet Explorer and hashchange event

When using Internet Explorer and I'd like to bind to hashchanged event, no JavaScript function is evaluated.

$(window).bind('hashchange', function()
{
    alert ( 'HasChange' );
}

On 'real' Internet Explorer using the integrated webserver, I get the correct action开发者_运维百科.

this.NavigateTo = function(newPath)
{
    window.location.hash = '#' + newPath;
    alert ( 'Navigate' );
};

'Navigate' will be alerted, but no 'HasChange'.

Is there a method to retrieve the Debugger by F12 for embedded Internet Explorer? I got this behaviour when Internet Explorer is embedded in System.Windows.Forms and WPF. No change when I create a 32-Bit, 64-Bit or AnyCPU Executable.

Or is this behaviour even known?


I think that by default the embedded IE behaves like IE7, so you won't get any event that was added in later versions unless you modify the integration to make it behave as the latest version available in the computer

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜