0
Fixed

Hebrew Date JS not working?

Susan B. 5 years ago updated 5 years ago 5
I put the JS for both Hebrew and Transliterated Hebrew date on this page https://bethemeth.org/jewish-calendar but it does not show up. In the next topic on the page, the JS for Shabbat times works great. The dates did work in the past. This is a Drupal site and I'm not a tech expert, so hoping someone can tell me where I went wrong. Thanks in advance.

Answer

Answer
Fixed
Looks like a mismatch between http and https. Your synagogue website is https, but you were trying to load from hebcal over http. The security-level mismatch prevents the browser from fetching content from hebcal.com.

If your website uses https, you'll need to reference hebcal URLs using the same protocol.

We've updated our script tags to use // instead of http://. See the updated HTML you should use at this page:

http://www.hebcal.com/home/40/displaying-todays-hebrew-date-on-your-website


Under review
Looks like you did this with unbalanced HTML tags:
<script type="text/javascript" charset="utf-8"
 src="http://www.hebcal.com/etc/hdate-he.js">
 src="http://www.hebcal.com/etc/hdate-en.js">
</script>

When in fact you want two pairs of script tags like this:
<script type="text/javascript" charset="utf-8"
 src="http://www.hebcal.com/etc/hdate-he.js">
</script>

<script type="text/javascript" charset="utf-8"
 src="http://www.hebcal.com/etc/hdate-en.js">
</script>
Thanks, however this does not work either. I had tried this before as that's what's on your site, and it still does not work. I've updated the page http://bethemeth.org/jewish-calendar, cleared the site cache, cleared my PC cache, and it still does not show up. Thanks in advance for your assistance.
Answer
Fixed
Looks like a mismatch between http and https. Your synagogue website is https, but you were trying to load from hebcal over http. The security-level mismatch prevents the browser from fetching content from hebcal.com.

If your website uses https, you'll need to reference hebcal URLs using the same protocol.

We've updated our script tags to use // instead of http://. See the updated HTML you should use at this page:

http://www.hebcal.com/home/40/displaying-todays-hebrew-date-on-your-website


Thanks so much! Working great now.