Welcome Guest   | Login   
  Search  
  Index |  Recent Threads |  Register | 


Quick Go »
Thread Status: Normal
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
Previous Thread This topic has been viewed 227 times and has 3 replies Next Thread
OPwebmaster
localendar Expert



Joined: Jan 24, 2015
Posts: 301
Status: Offline

Edit this Post   Auto return to top of Localendar Reply to this Post
Reply with Quote
[Delete this Thread]

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]
[Feb 16, 2015, 4:41:04 AM] [First IP: 72.241.195.138 - Last IP: 72.241.195.138] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Aug 9, 2022
Posts: 6395
Status: Offline
Edit this Post   Re: Auto return to top of Localendar Reply to this Post
Reply with Quote
[Delete this Post]

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
[Feb 18, 2015, 8:32:29 PM] [24.189.166.198] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
OPwebmaster
localendar Expert



Joined: Jan 24, 2015
Posts: 301
Status: Offline

Edit this Post   Re: Auto return to top of Localendar Reply to this Post
Reply with Quote
[Delete this Post]

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
[Feb 19, 2015, 4:58:50 AM] [72.241.195.138] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Aug 9, 2022
Posts: 6395
Status: Offline
Edit this Post   Re: Auto return to top of Localendar Reply to this Post
Reply with Quote
[Delete this Post]

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
[Feb 20, 2015, 1:14:56 AM] [24.189.166.198] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
[Show Thread Printable Version] [Post new Thread]

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