Jump to content
Sue Busher

Code Help

Recommended Posts

Try this on your fixtures page....

<div tkf-wrap-guid="tkf-client-window-wrap-fullcalendar-1">
<iframe title="calendar" name="tkf-client-window-embed-fullcalendar-1" src="https://events.kennetschool.co.uk/kennet?tags=fixture" style="height: 1721px;"></iframe>
</div>

Get rid of everything else.

replace tags=fixture for your other pages.

Link to comment
Share on other sites

@Simon Law

 

Any joy Simon? Tockify seem to think it could be one of the following (although are working blind and are guessing):

Guess 1: The Frog environment you're in is deleting our embed code on the pages where it doesn't appear, possibly as a side effect of using client side navigation that rewrites the DOM. Calling _tkf.loadDeclaredCalendars() on page navigation might help if that's the issue.

Guess 2: We are behind a firewall of some kind that's accidentally blocking the secondary loads of the calendar.

Guess 3: Both of our browsers have a security plugin that's blocking the calendar in some circumstances.

Guess 4: The Frog environment is overriding some of the browser's built in functions and that breaks the calendar. The reason the calendar works once could be that it runs before those changes are made.

Any help would be gratefully appreciated.

Link to comment
Share on other sites

@pconkie

Tockify has come back and said that there is nothing their end that would prevent multiple calendars on a site site or page.

One thing did occur t them. The script we use to load Tockify is:

<script>$.getScript( "https://public.tockify.com/browser/embed.js" ).done(function( script, textStatus ) {console.log( textStatus );}).fail(function( jqxhr, settings, exception ) {console.log( "There has been an error" );});</script>

Whereas what we recommend is:

<script data-cfasync="false" data-tockify-script="embed" src="https://public.tockify.com/browser/embed.js"></script>

Perhaps it's part of the problem? However, that wasn't working for me.

They then went on to re-emphasize that they can see our site no problem without an issue so it seems that it is more to do with our local environment.  Do you get the same problem as me?

Link to comment
Share on other sites

Hi Sue, just as an update really,

Your code was getting replacing the embed.js file each time a new page was clciked on, so I attempted to get it to load once, use cache if already there, something tockify suggest above,

however it didn't seem to make the thing work.

Not had a chance to look at it today

Link to comment
Share on other sites

On 28/04/2018 at 10:32, pconkie said:

Try this on your fixtures page....


<div tkf-wrap-guid="tkf-client-window-wrap-fullcalendar-1">
<iframe title="calendar" name="tkf-client-window-embed-fullcalendar-1" src="https://events.kennetschool.co.uk/kennet?tags=fixture" style="height: 1721px;"></iframe>
</div>

Get rid of everything else.

replace tags=fixture for your other pages.

Tried that and get the same  thing :( (shows the the first page but then doesn't load other pages unless I log out and back in again).

I am going to try from home - outside the school environment to see if that fixtures it. Also tried embedding the white label as a website embed widget but got an error message (attached).

Thank you for your help so far. Will update you tomorrow.

Screen grab.PNG

Link to comment
Share on other sites

On 28/04/2018 at 10:32, pconkie said:

Try this on your fixtures page....


<div tkf-wrap-guid="tkf-client-window-wrap-fullcalendar-1">
<iframe title="calendar" name="tkf-client-window-embed-fullcalendar-1" src="https://events.kennetschool.co.uk/kennet?tags=fixture" style="height: 1721px;"></iframe>
</div>

Get rid of everything else.

replace tags=fixture for your other pages.

This worked for me (with no other html or js). Opened site - it displayed. Closed site and reopened (without refreshing frog) - it displayed. 

Using external <script> tags won’t work in frog.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...