tag:blogger.com,1999:blog-8715156605536558986.post7436903478967536498..comments2022-11-03T06:01:03.758-07:00Comments on Raghu's SharePoint Corner: Collapsible QuickLaunch SharePoint Menu Using JqueryAnonymoushttp://www.blogger.com/profile/06670915468182049981noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-8715156605536558986.post-32798547611242304982012-04-23T11:39:46.820-07:002012-04-23T11:39:46.820-07:00Please let me know if this is possible in publishi...Please let me know if this is possible in publishing master page with currentNav left navigation.<br /><br />Thanks<br />Shailendrashailhttps://www.blogger.com/profile/02082304717467969121noreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-74307094831491008652012-04-01T01:48:02.735-07:002012-04-01T01:48:02.735-07:00I am using the version of collapsible menu without...I am using the version of collapsible menu without cookie and it works great.<br />Tried to move to the version with a cookie is not working for me.<br />any ideas?Ronnoreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-22925951847106054272012-03-11T05:15:22.251-07:002012-03-11T05:15:22.251-07:00hi,
great solution, works fine for me with SP2007....hi,<br />great solution, works fine for me with SP2007.<br />the only question, is there any way that direct click on title link will not open the sub-menu and redirect only?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-33594873374256974592011-11-22T20:26:44.358-08:002011-11-22T20:26:44.358-08:00anyone tried this with SharePoint 2007?anyone tried this with SharePoint 2007?Carlhttp://vevede.comnoreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-64937235189049727732011-08-10T00:42:12.062-07:002011-08-10T00:42:12.062-07:00@All: You can find the Collapsible QuickLaunch for...@All: You can find the <a href="http://moss-solutions.blogspot.com/2011/08/collapsible-quicklaunch-menu-for.html" rel="nofollow">Collapsible QuickLaunch for SharePoint 2010 Here</a>Anonymoushttps://www.blogger.com/profile/06670915468182049981noreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-28211905111666278172011-08-09T23:04:29.118-07:002011-08-09T23:04:29.118-07:00@Krillehbg: Thanks for the cookie snippet will def...@Krillehbg: Thanks for the cookie snippet will definitely use it while creating collapsible quick launch for SharePoint 2010 which i will be posting soon.Anonymoushttps://www.blogger.com/profile/06670915468182049981noreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-17978083319591872562011-07-28T04:43:16.521-07:002011-07-28T04:43:16.521-07:00Hi Everyone..
GREAT tip by the way..
I have added...Hi Everyone..<br />GREAT tip by the way..<br /><br />I have added some more funcitonality making the menu stay expanded after post back.<br /><br />See code below:<br /><br />//initialize menus <br />var menuRows = $("[id$='QuickLaunchMenu'] > tbody > tr"); <br />var menuHd = menuRows.filter("[id!='']:has(+tr[id=''])"); <br />//set img path for when submenu is hidden <br />var closedImg = "/_layouts/images/Menu1.gif"; <br />//set img path for when submenu is visible <br />var openedImg = "/_layouts/images/ptclose.gif"; <br />var cssInit = { <br />"background-image": "url('"+closedImg+"')", <br />"background-repeat": "no-repeat", <br />"background-position": "100% 50%" <br />} <br />var cssClosed = {"background-image": "url('"+closedImg+"')"} <br />var cssOpen = {"background-image": "url('"+openedImg+"')"} <br />//hide submenus <br />menuRows.filter("[id='']").hide(); <br />//apply initial inline style to menu headers <br />menuHd.find("td:last").css(cssInit); <br />var menuClickedOld = readCookie("Menu_Clicked");<br />//alert(menuClickedOld);<br />if(typeof menuClickedOld != 'undefined'){<br /> $("table#zz2_QuickLaunchMenu a.ms-navitem").each(function()<br /> { <br /> if(menuClickedOld.indexOf($(this).parents("tr[id]").text()) > 0){<br /> $(this).parents("tr[id]").parents("tr:first").show();<br /> }<br /> });<br /><br />}<br /><br />menuHd.click(function () { <br />var styleElm = $(this).find("td:last"); <br />var nextTR = $(this).next("tr[id='']"); <br />if (nextTR.is(':visible')) { <br />nextTR.hide(); <br />styleElm.css(cssClosed); <br />} else { <br />nextTR.show(); <br />styleElm.css(cssOpen); <br /><br />//eraseCookie("Menu_Clicked");<br /><br />var menuClicked = createCookie("Menu_Clicked",nextTR.text(),1);<br /><br />} <br />}); <br />}); <br /><br /><br /><br /><br />function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/";} function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null;} function eraseCookie(name) { createCookie(name,"",-1);}function createCookie(name,value,days) {<br /> if (days) {<br /> var date = new Date();<br /> date.setTime(date.getTime()+(days*24*60*60*1000));<br /> var expires = "; expires="+date.toGMTString();<br /> }<br /> else var expires = "";<br /> document.cookie = name+"="+value+expires+"; path=/";<br />}<br /><br /><br />function readCookie(name) {<br /> var nameEQ = name + "=";<br /> var ca = document.cookie.split(';');<br /> for(var i=0;i < ca.length;i++) {<br /> var c = ca[i];<br /> while (c.charAt(0)==' ') c = c.substring(1,c.length);<br /> if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);<br /> }<br /> return null;<br />}<br /><br />function eraseCookie(name) {<br /> createCookie(name,"",-1);<br />}Krillehbghttps://www.blogger.com/profile/03533754556562724163noreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-19056925147518830342010-07-13T04:24:35.064-07:002010-07-13T04:24:35.064-07:00I went throught the QuickLaunch on SP2010, i am so...I went throught the QuickLaunch on SP2010, i am sorry to say, this script does not work for SP2010. The way quick lauch is rendered in SP2010 is using DIV, UL and LI tags while in 2007 it was rendered in table format i.e. tr and td.Anonymoushttps://www.blogger.com/profile/06670915468182049981noreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-44152620930690778382010-07-13T02:02:35.377-07:002010-07-13T02:02:35.377-07:00I tried the exact steps which are suggested. There...I tried the exact steps which are suggested. There is no error on the page. But the style is not being applied to the Quick Launch!Ayaz Mhttps://www.blogger.com/profile/09433471872068340161noreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-3984568627228841432010-07-13T01:37:40.818-07:002010-07-13T01:37:40.818-07:00I had done this with MOSS 2007. what error are you...I had done this with MOSS 2007. what error are you getting when u tried this with SP2010?Anonymoushttps://www.blogger.com/profile/06670915468182049981noreply@blogger.comtag:blogger.com,1999:blog-8715156605536558986.post-28517494705655851192010-07-13T00:05:08.100-07:002010-07-13T00:05:08.100-07:00I followed the steps which you have advised. But t...I followed the steps which you have advised. But the code is not working. I am using sharepoint 2010Ayaz Mhttps://www.blogger.com/profile/09433471872068340161noreply@blogger.com