• Login
    • Search
    • [[global:header.categories]]
    • [[global:header.recent]]
    • [[global:header.popular]]
    • MyVR.com

    Solved Calendar on other Web Sites

    Availability
    3
    3
    3561
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Darrell Looney112 last edited by

      Is there a way to use HTML code to place a copy of our MYVR calendar on another web site?

      Darrell

      Markus Nordvik 1 Reply Last reply Reply Quote 0
      • Markus Nordvik
        Markus Nordvik MyVR Employee @Darrell Looney112 last edited by

        @Darrell-Looney112 That is a great use case for our calendar widget.

        1 Reply Last reply Reply Quote 0
        • Joseph Sennish
          Joseph Sennish last edited by

          Just a housekeeping note regarding use of the Calendar Widget in a WordPress Install.

          Before anyone attempts to paste the widget into your webpage, I would suggest removing the blank lines in the javascript.
          If not, Wordpress will automatically insert some html code ( <p> </p> )to preserve the empty lines.
          The inserted html will cause the script to appear similar to the script below. The html causes the script to fail.

          <script id=‘myvrCalendarScript’ type=‘text/javascript’>
          (function(m,y,v,r,t,a,g){m.MyVRWidgetObject=t,m[t]=m[t]||function(){
          (m[t].q=m[t].q||[]).push(arguments);},m[t].l=1new Date(),a=y.createElement(v),
          g=y.getElementsByTagName(v)[0],a.async=1,a.src=r,g.parentNode.insertBefore(a,g);
          }(window,document,‘script’,‘https://static.myvr.com/public/calendar/widget.js’,'myvr’));
          myvr(‘calendar’, {propertyKey:‘b371f253f7286005’, showRates:false});
          <p> </p>
          /

          You can optionally specify a unique HTML element id as a 3rd parameter
          above. If specified, the calendar will be rendered at the element
          instead of inline.
          <p> </p>
          myvr(‘calendar’, {
          propertyKey:‘b371f253f7286005’,
          showRates:false,
          elementId:‘#elementId’
          });
          */
          </script>

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          About the MyVR Community

          • Getting Started
          • Community Rules
          • Best Practices
          Copyright © 2016 - 2020 MyVR | Contact Us
          Admin Login | Logout