Jump to content
Graham Quince

Understanding Frog's APIs

Recommended Posts



I've tried to write it for those of you who understand code, but have never tried to access an API. Before I joined Frog, I had never been successful in using APIs. I'm sure users like JElliott * will find this insultingly simple and be appalled at the poor use of coding terms (I don't mention the DOM once). 

For the rest of us mortals, I hope this tutorial can show you the possibilities of using Frog's APIs and that it will encourage you to build your own resources.


* I'd love your feedback to improve this, to be honest

Link to post
Share on other sites

Hi @pconkie,

The HTML widget is just being super strict here.  This particular tutorial is using elements of FrogOS already defined, so when the script runs these things are picked up.  But the HTML widget doesn't know that and flags up a potential issue.   It shouldn't cause any problems for the final result 

Link to post
Share on other sites

Thanks Graham.  I must have a typo somewhere else then as I don't see anything in the console when this code runs.  

Most code examples on here use FrogOS.fdp, but this one uses Frog.Model.api.  Is one approach legacy or is one better than the other?

What is the difference between the HTML widget on a frog page and the new FrogCode that has appeared in my frogdrive?

Link to post
Share on other sites

FrogOS.fdp uses the "set in stone" APIs for the Frog Developer Platform.   Frog.Model.api uses the internal APIs our developers uses.  There is a potential for these APIs to change.   Ideally you'd always use the FDP ones, but sometimes there isn't an API to get the job done.

The HTML widget means you have to know what you're doing with code.  FrogCode will allow you to build this code into a widget so non-technical staff can make use of features you build, without having to copy-and-paste code.

We're waiting on a hotfix (looking like end of May) at which point you'll be able to activate FrogCode.  in the meantime though, you can install the Office365 widget from the FrogCode area on the community and i'll be adding more soon.

Link to post
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.

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.

  • Similar Content

    • By Sean_M
      Is there a bit of html I can add to a page to autoplay videos in the Media widget on page load?
      Many thanks
    • By Graham Quince
      Some of you have already spotted this tutorial, but we've just updated it to reflect feedback from schools.
      You can now use the same code 'hack' a menu to open external links, subpages and even sites
    • By K.Ermit
      I have been provided with this code from Linguascope, but it doesn't work in the HTML widget.   
      <script language="javascript" src="http://www.linguascope.com/link/login/linguascope_login250x250.js"></script> Can anyone help please?
    • By K.Ermit
      Every time I add in a text widget,, I have to resize the text, as it starts too small, is there a way of setting the size be default?
    • By Dawn Spears
      I have set up a sildeshow, using a file drop as detailed in the tutorial below:
      My first slideshow was working correctly, and I could add/remove files to the drop and the correct pictures were showing.
      I then tried to add another slideshow (on a new tab within the site), so set up a new file drop, got the new ID and created the HTML again as per the tutorial, however the second file drop won't work as expected. The pictures from the second file drop show up in the first slideshow, despite them having completely different IDs. If I set up a list of file names for the second file drop, the files are correct, but they are showing on the wrong page. Sometimes they appear as part of the slideshow, and other times the new pictures are above the first pictures. I will attach some screenshots so that hopefully you can see what I mean.
      Additionally, the first file drop will work correctly until I try and look at the second file drop, then when I go back to the first I have the problem (caching issue maybe?).
      First file drop showing Micky Mouse correctly:
      2nd file drop showing only the file name (testing) widget. The file drop arrows show up but no pictures.

      Now, I go back to the first tab and Goofy is showing despite him being on the other file drop.

      Any ideas?
      Kind regards
  • Create New...