Jump to content
mobrien

FrogLearn FrogTags and the HTML widget

Recommended Posts

@Graham Quince and community Frog,

In another topic about HTML tables that @Chris.Smith is providing me with a huge amount of hand-holding, he mentioned amending the data contained within my HTML code using a script and JSON format data. It is much simpler than lines and lines of HTML for each row data.

It started me thinking: further to our discussions about using FireBase to contain and access individualised data, could there be an alternative method written directly into the HTML widget, without the need for FireBase?

My thinking for the HTML is as follows, and as mentioned in my other post, please note that my skills are barrel bottom in terms of availability:

1. Call up/define the logged in user's upn, as described in the "Displaying personalised, custom data" post on the Frog Community

2. Define a table

3. Provide all required table cell data in JSON format within the script (see below)

4. Populate the data in the table with the fields that ONLY correspond to those that match the user's upn. This would somehow also require the data in the JSON format to contain and recognise the upn? Upn would obviously not be displayed.

@Chris.Smith included the JSON data as follows. I have amended it to include a reference upn and an alternative use.

        data = [
            { upn: 'FRG_12321', name: 'Student Tom', house: 'Bowman', tutor: 'ACR', MyMaths un: 'Tom', MyMaths pw: 'tree' },
            { upn: 'FRG_34243', name: 'Student Sarah', house: 'Fulford', tutor: 'MOB', MyMaths un: 'Sarah', MyMaths pw: 'flower' }
        ];

The applications for this are enormous, such as passwords as in the data, or sharing student grades.

Hope you can help,

Michael

Share this post


Link to post
Share on other sites

Hi @mobrien,

That's the goal - but there is a security flaw with using just the HTML widget to contain the data.  I'm not prepared to highlight what that flaw is on an open forum, but it is possible to read all the data stored in an HTML widget.  I've suggested similar approaches in the past to @Chris.Smith, but he's always found ways to identify all the information.

The Firebase method locks the data away behind the UPN.  You have to know the UPN to access just one student's data and would have to know everyone's to get their data individually.

In the future, one development Chris wants to add is Web Services.  This would enable you to have your own database inside FrogLearn and accessible via the HTML widget, but it would not interact with Frog's own databases. (so secure, but can't damage anything else)

Share this post


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.

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.


  • Similar Content

    • By emoseley
      Has anyone else encountered this problem on a similarly sized device?   We use the 11-inch MacBook Air and iPad.  When we make a quick assignment (specifically using Google Assignment)  the "Hand In" button is below the bottom of the screen with no ability to scroll down.   Since students are not Handing in the work the teacher has to access student work using the cumbersome back door through Google. This also affects iPads.   For quizzes. assigned directly from FrogDrive or through quick assignments we have the same problem, especially on iPads.  I was wondering why my numbers were so low at elementary since we were pushing the Championships.  Turnes out teachers had no interest since reports did not show because students literally could not hand in the quiz. 
    • 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
      https://www.frogeducation.com/community/tutorials/frogcode-tutorials/external-links
    • By K.Ermit
      Hi,
      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 emoseley
      For your consideration:
      I saw this on a competitors platform.   The teacher activates peer review and student clicks a button and they receive fellow students work.  The reviewer and reviewee remain anonymous to each other.  Ideally, Students would use Frog Feedback for this to work.
      https://ideas.frogcommunity.com/ideas/FRG-I-1249
       
    • 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?
×
×
  • Create New...