Explore the community Forums Lectora LMS Integration Direct output to back-end server

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #419700 Score: 0
    Profile photo of Roger Kreitman
    Roger Kreitman
    Member
    beginner
    intermediate
    curious george
    wise owl
    @rkreitman5694

    I am new to Lectora, and investigating the feasibility of directly outputting activity variables to databases via PHP

    I am familiar with SCORM and LMS products.   However the background is that we have a large body of existing back-end LMS functionality in PHP and mySQL

    From study of previous postings, I can see that Lectora variables can be exposed to Javascript – so far, so good!

    The missing bit is how to export from Javascript to PHP, and it seems to me that this is either going to be a GET/POST with loading of a new PHP script, or something like Ajax

    Has anybody been down a similar route before?

    All suggestions much appreciated

    #419721 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    194 pts
    @Klaatu

    I haven’t had the need to do this with Lectora, however, I’d say Ajax and JSON would work for you. I’d use jQuery as well.

    #419724 Score: 1
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    271 pts
    @timk

    You could try to use a Lectora Form element. Even if you don’t need the form itself, you can check “Include ALL variable values (Test and Title)” to POST (or GET) all values to a “Custom Script”, e.g. PHP, via a “Submit form” action.

    This post has received 1 vote up.
    #420739 Score: 0
    Profile photo of Roger Kreitman
    Roger Kreitman
    Member
    beginner
    intermediate
    curious george
    wise owl
    @rkreitman5694

    Thanks for the advice.

    With some assistance I have assembled a solution using Ajax and JQuery, and it seems to be working well

    I have been able to extend the life of a custom LMS database

    #420746 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    194 pts
    @Klaatu

    Awesome, great news.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.