Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Calendar and Web Browser
#1
I don't know much about html but can usually figure out enough to get a webpage to display on CQC with a web widget.  I am having a problem getting a Google Calendar to display using the tools they provide within their Google Calendar settings.  You can generate a customized embedded script using IFrames to place into your webpage, which I did.

I can run the .html file I built without problems on both Chrome and IE, but I get an error message when using the WebBrowser widget as follows:

1st Error: Object doesn't support property or method 'map'
2nd Error: Object doesn't support property or method 'addEventListener'

Here is the html file I access in the /HTMLRoot folder:
Code:
<!DOCTYPE html>
<html>

<head>
</head>

<body>
<iframe src="https://calendar.google.com/calendar/embed?showTitle=0&amp;showNav=0&amp;showDate=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;mode=AGENDA&amp;height=520&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=emailaddy1%40gmail.com&amp;color=%2329527A&amp;src=emailaddy2%40gmail.com&amp;color=%23182C57&amp;src=en.usa%23holiday%40group.v.calendar.google.com&amp;color=%23125A12&amp;ctz=America%2FChicago" style="border-width:0" width="284" height="520" frameborder="0" scrolling="no">
</iframe>
</body>
</html>
Reply
#2
I have diagnosed this a bit further - The IV will display the Web widget properly (without the errors) on the CQC Master Server.  It is the client PC's that are throwing the error above.  It's the same version/build of Windows.  Also, the calendars I am trying to display are tagged as public within Google Calendar.
Reply
#3
You may need to check the compatibility version for embedded browser windows. You may have in the past cranked it up higher on the MS or something.

https://docs.microsoft.com/en-us/previou...0(v=vs.85)

You might also put this value in the Meta section of the html and see if that helps.

<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
Dean Roddey
Explorans limites defectum
Reply
#4
I decided to go a different route, and actually like it much better, as I really just wanted an option to view the Google Calendar rather than manipulate it, which could happen using the WebBrowser widget.

Rather than use a WebBrowser Widget, I am going to generate a screenshot of the calendar using Chrome's headless command:

Code:
chrome --headless --disable-gpu --screenshot="C:\Program Files\CQC\CQCData\HTMLRoot\MenuGCal.png" --virtual-time-budget=3000 --hide-scrollbars --window-size=284,528 "http://cqcserver\MenuGCal.html"

I can run this as a scheduled task using the MS Task Scheduler on the master server that will generate a .png file in the \HTMLRoot folder that will be displayed.

What I like about this is that it will allow it to be viewed with WebRiva.  I am going to do this in a few other places on my Interfaces as well.  I currently have a toggle when logged in via WebRiva, and it will allow me to show a static image rather than a WebBrowser Widget.
Reply
#5
Just as an FYI in case anyone else is wanting to do this, adding this to the html script just below the <html> tag:

<meta http-equiv="X-UA-Compatible" content="IE=10;"/>

allowed the web browser widget to work properly on both Win10 and Win7 computers.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Reading Text File of Google Calendar Entries kblagron 19 189 05-15-2019, 09:45 AM
Last Post: Dean Roddey
  Is it possible to tie in CQC into a third part calendar to drive schedules ghurty 6 426 01-01-2019, 05:30 PM
Last Post: Dean Roddey
  Cover Art Browser pjgregory 15 3,130 05-25-2018, 11:18 AM
Last Post: Dean Roddey
  Using Overlay and Static Image Browser kblagron 2 1,108 03-11-2018, 11:59 PM
Last Post: kblagron
  Problem with Genre Browser pjgregory 4 1,256 03-02-2018, 09:34 AM
Last Post: Dean Roddey
  Google backup and sync and CQC kfly 4 2,015 10-06-2017, 11:17 AM
Last Post: kfly
  Cover Art Browser scrolling issues sic0048 7 2,860 08-22-2017, 08:00 PM
Last Post: Dean Roddey
  Web browser widget background color dlmorgan999 3 1,892 04-27-2017, 05:01 PM
Last Post: Dean Roddey
  Static List Browser and Parameters zra 15 5,424 04-12-2017, 02:44 PM
Last Post: Dean Roddey
  Google Home Integration using Amazon Echo Approach? Jnetto 4 3,049 12-21-2016, 02:04 PM
Last Post: Jnetto

Forum Jump:


Users browsing this thread: 1 Guest(s)