|
Index | Recent Threads | Register | |
Forums » List all forums » Forum: Wish List » Thread: Auto return to top of Localendar |
Total posts in this thread: 4 |
[Change thread status]
[Delete this Thread]
[Move this Thread] [Add To My Favorites] [Watch this Thread] [Post new Thread] |
Author |
|
OPwebmaster
localendar Expert
|
When there are lots of events in a month, the browser vertical scrollbar has to be scrolled down to see the bottom of the calendar. Usually the Week and Day calendars are much shorter, and don't require scrolling. When a link is placed on my website that opens the calendar on Localendar's site (Publish->'link to a full-page view of my calendar'), then whenever I click on Week or Day after opening in Month view, that calendar always opens with the Title at the top of the browser screen. This way the user does not have to scroll up to see the calendar, or perhaps assume that there is no calendar. See www.ver10testing.ottawapark.org as an example, and click on 'Test Project - Localendar in new window'. However, when an iframe or fully interactive calendar is chosen, the user must manually move the vertical scrollbar upward to see some or all of the Week or Day calendar. See www.mobileexceltest.ottawapark.org for an iframe example. Is there some what that the iframe and fully interactive calendars in Week and Day view could be made to open at the top of the webpage (or the top of the iframe), similar to what the full-page view calendars do? Thanks, Harry ---------------------------------------- [Edit 1 times, last edit by OPwebmaster at Feb 16, 2015, 4:51:02 AM] |
||
|
support
localendar Expert Joined: Aug 9, 2022 Posts: 6395 Status: Offline |
An interesting question. For the iFrame, if a visitor has scrolled down and then clicks on the nav menu, they would have to scroll up. The iframe is more or less isolated from the rest of the page, so it can't communicate with its "container" (this is considered a security feature of the web; you wouldn't want iFrame content manipulating the container page) With the fully interactive calendar, including some javascript in your title or footer might make it possible to tell the browser to scroll back to the top. I am thinking something like this: <script>window.scrollTo(0,0);</script> ---------------------------------------- Marc Higgins Support Associate, localendar.com Follow us on Twitter! http://www.twitter.com/localendar_news |
||
|
OPwebmaster
localendar Expert
|
Marc:
Perfect! (0,0) takes one to the top left corner of the page. So I modified it so the calendar is more centered. This is the code I used in the Calendar Title: 'Event Activities - by Venue <script>window.scrollTo(50,0);</script>' And you can see the results here: http://www.sitetest.ottawapark.org/ I'm all set on this one. Thanks again. Harry |
||||
|
support
localendar Expert Joined: Aug 9, 2022 Posts: 6395 Status: Offline |
Cool, I didn't even test that myself before replying ---------------------------------------- Marc Higgins Support Associate, localendar.com Follow us on Twitter! http://www.twitter.com/localendar_news |
||
|
[Show Thread Printable Version] [Post new Thread] |
Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us |