internet explorer - msSiteModeActivate does not seem to work -
hi i'm working on ie9 task bar integration cant seem mssitemodeactivate()
work.
my code:
settimeout("tvoverlay()", 30000); settimeout("tvactivate()", 35000); <script type="text/javascript"> function tvactivate() { try { if (window.external.msissitemode()) { window.external.mssitemodeactivate(); } else { } } catch (e) { } } function tvoverlay() { try { if (window.external.msissitemode()) { window.external.mssitemodeseticonoverlay('/tvoverlaygul.ico', 'tv overlay'); } else { } } catch (e) { } } </script>
the tvoverlay()
works fine icon never flashes when tvactivate()
called
have tried this? example. following script redirects start page if current window running pinned site. try/catch
statement allows script recover gracefully if call not supported browser.
also see more info on mssitemodeactivate
:
http://msdn.microsoft.com/en-us/library/ff976297%28v=vs.85%29.aspx
update: new documentation:
http://blogs.msdn.com/b/ie/archive/2011/01/17/working-with-pinned-sites.aspx
function testsitemode() { try { if (window.external.msissitemode()) { location.href = startpage; } } catch(ex) { alert("site mode not supported."); return; } } window.onload = testsitemode;
Comments
Post a Comment