开发者

Unable to dynamically add jump list tasks to IE9 / Win7 menu

开发者 https://www.devze.com 2023-03-04 11:59 出处:网络
I am able to add \"tasks\" to a pinned site in IE9 using meta tags eg. <meta name=\"msapplication-task\" content=\"name=Twitter;action-uri=http://www.twitter.com;icon-uri=http://a1.twimg.com/a/130

I am able to add "tasks" to a pinned site in IE9 using meta tags eg.

<meta name="msapplication-task" content="name=Twitter;action-uri=http://www.twitter.com;icon-uri=http://a1.twimg.com/a/1301438647/images/favicon.ico" />

But if I try to add new tasks using javascript, they开发者_开发问答 never show up.

function jQuery_ActivateJumplists() {
    var favicon = "http://a1.twimg.com/a/1301438647/images/favicon.ico";
    var externalWindow = null;

    if (window.external.msIsSiteMode()) {
        externalWindow = window.external;
        externalWindow.msSiteModeCreateJumpList("Twitter!");
        externalWindow.msSiteModeAddJumpListItem("Twitter Link", "http://www.twitter.com", favicon);
        externalWindow.msSiteModeShowJumplist();
    }
};

Any suggestions?


Appears to have been an issue with corrupt cache in windows. Solution is to create and run a .bat with the following contents...

del /F /Q %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*
del /F /Q %APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*
0

精彩评论

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