Stump the Panel: SharePoint Q&A

Immediate solutions for common SharePoint questions
It is currently Sun May 26, 2013 2:20 am

All times are UTC - 5 hours [ DST ]


Forum rules


What you are viewing is an archive of Stump the Panel. It remains for reference purposes. Please post all new questions on NothingButSharePoint.com
https://www.nothingbutsharepoint.com/sites/eusp/Forum



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Expand all calendar events
PostPosted: Fri May 06, 2011 3:36 pm 
Offline

Joined: Mon Jan 04, 2010 4:07 pm
Posts: 92
I have been trying to expand all calendar events by default on page load. first few attempts put me into an endless page loading loop. Then I came across several scripts and was able to make one work, I thought.
Code:
//Expant all events onload
var yScroll = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop
var y = window.innerHeight || document.body.clientHeight || document.documentElement.clientHeight
var xScroll = window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft
var x = window.innerWidth || document.body.clientWidth || document.documentElement.clientWidth;
var cover = document.getElementById("cover");
cover.style.height = (y + yScroll) + "px";
cover.style.width = (x + xScroll) + "px";

function expand() {
if (document.referrer != location.href && !location.href.match(/CalendarPeriod=((week)|(day))/i))
{ GetMonthView('11111111'); }
else { cover.style.display = "none"; }
}
window.onload = function() { expand(); };


the problem with this code is it hides any recurring events. Does any one know of a script that will expand all events on a calendar view including recurring events on page load, or see what is missing here?

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group