localendar Forums Homepage


Print at Sep 6, 2025, 10:34:39 PM

Posted by support at Jun 8, 2021, 6:45:40 PM
Re: Calendar not showing up on my webpage
Ah, the answer is super-simple smile

First, the problem:
If your page is being served over https, then the inclusion of some content (like your calendar) over http is considered "insecure" and most browsers won't load it.

Now, you could just change the localendar code to use https://, and that would fix it. But what if someone still hits your site with http? Some ISPs will automatically redirect them to https. But if they don't, now you have the same problem but in reverse.

The best solution is to use what's called a "protocol relative" url. This will load the frame using whatever the parent page uses (either http or https). The format looks like this:

<iframe src="//www.localendar.com/public/staugies?style=M0" height=1600 width=770 marginheight=10 marginwidth=10 scrolling=yes frameborder=0 border=0></iframe>
----------------------------------------
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