localendar Forums Homepage

Print at Apr 24, 2024, 4:54:10 AM View all posts in this thread on one page
Posted by OPwebmaster at Feb 16, 2015, 4:41:04 AM
Auto return to top of Localendar
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

Posted by support at Feb 18, 2015, 8:32:29 PM
Re: Auto return to top of Localendar
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

Posted by OPwebmaster at Feb 19, 2015, 4:58:50 AM
Re: Auto return to top of Localendar
Marc:
 
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>


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

Posted by support at Feb 20, 2015, 1:14:56 AM
Re: Auto return to top of Localendar
Cool, I didn't even test that myself before replying smile
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news


Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us