Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #315923 Score: 3
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day Susan,
    This can be done using a few lines of JavaScript.  On the page with the DD question add an “HTML Extension” with a type of “Custome DIV”, click the Edit button and add the following JavaScript:

    <script>
    var ansVar = VarQuestion_0002;
    var restoreInitFunc = Update_qu53;
    function dragItemDrop(dropId){
    window.setTimeout(‘delayDragItemDrop(‘+dropId+’)’,100);
    }
    function delayDragItemDrop(dropId){
    var ansVarArray = ansVar.getValue().split(‘,’);
    if(ansVarArray[dropId-1]!=(dropId + ‘-‘ + dropId)){
    dragMgr.arrDragItems[dropId-1].restoreInit(restoreInitFunc);
    }
    }
    </script>

    In the above script change the VarQuestion_0002 to the correct variable name for the question, also, change the “Update_qu53” to the correct question HTML name.  To find this see the help on “Viewing the HTML name of an object”.  So if the HTML name is qu1036 then change Update_qu53 to Update_qu1036

    Add a Run JavaScript Action to each of the drag objects:

    dragItemDrop(1);

    Where the number is the drag item number.

    For this to work you need to ensure that the drag item names are consecutive numbers and these match the names of the “Drop Zone Names” that are also consecutive numbers and all are correct.  This is the default for a new DD question.
    Therefore, if drag name “2” is dropped on drop zone name “2” then this is correct and the drag item (number 2) will not reset, if, however, drag name “2” is dropped on drop zone “1” or “3” or any drop zone that is not named number “2” the drag item will reset.

    Once done you can test this in “Run” mode or F10.
    BTW a nice option for DD questions would be to randomize the position of the drag items:-)
    HTH

    Regards, Peter

    This post has received 3 votes up.
    #310180 Score: 2
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day jcsmith,

    Take a look at the following link, you need to select the .awt file:

    http://www.lectoradeveloper.com/share/qexport/

    The questions will display in very basic tables, let me know how it goes.

    Regards, Peter

    http://www.LectoraDeveloper.com

    This post has received 2 votes up.
    #311445 Score: 2
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day Andrew,

    All you need is:AICC_Student_Name.getValue()

    However, the variable will not be available on the page or pages unless Lectora knows that it is needed, therefore, you need to use it.  To do that just create a dummy variable, I use “junk”, then I load junk with all the variables I will need, so I do:

    Modify Variable
    junk
    Set Equale to
    VAR(PageInTitle) + VAR(CurrentPageName) + VAR(AICC_Student_Name)

    Then I can get the current page name by doing: CurrentPageName.getValue()

    HTH

    Regards, Peter

    http://www.LectoraDeveloper.com

    This post has received 2 votes up.
    #313566 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day Darrel,

    I agree, however, in my case that would mean a little more code:-) In this case I have special checkboxes which use standard Lectora buttons, using JavaScript when clicked I swap the normal state with the down state.  Therefore, each button has 3 image files assigned to the 4 states, on publishing instead of having only the 3 original files I get 4 for each button plus the original 3 which are not used.

    On one page I have 28 checkboxes which means 112 images need to be fetched instead of only 3.

    IMHO this is such a simple fix:

    1. Add a checkbox to the publisher dialog:
      1. Export button graphics that use an image resource “AS IS”
    2. During the publish process for buttons that use an image file:
      1. Check if a button graphic already exists
        1. If yes do nothing
        2. Else just copy the file “AS IS”

    Clearly this would only apply to button graphics that have not had any formatting applied or maybe add a sub checkbox:</div>

    1. Export button graphics that use an image resource “AS IS”
      1. Ignore any formatting

    Regards, Peter

    http://www.LectoraDeveloper.com

    This post has received 1 vote up.
    • This reply was modified 3 years, 3 months ago by Profile photo of Peter Jackson Peter Jackson.
    #314168 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day cpliu,

    Try:
    var theURL = window.location.href.toString().split(‘/’);

    HTH

    Regards, Peter

    This post has received 1 vote up.
    #314979 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day Andrew,

    Take a look at:

    https://community.trivantis.com/contest/contest-8-expand-lectora-with-xapi-peer-comparison/

    This use SCORM Cloud as the LRS.

    HTH

    Regards, Peter

    http://www.LectoraDeveloper.com

     

    This post has received 1 vote up.
    #314987 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day Andrew,

    Rustici Software development Tin Can AKA Experience API, Rustici own scorm.com which hosts SCORM Cloud which has an LRS.   Sounds like the house that Jack built:-)
    That is what I used in the Peer Comparison example.

    HTH

    Regards, Peter

    This post has received 1 vote up.
    #316078 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day Jesse,

    This is a know issue, take a look at:

    https://community.trivantis.com/forums/topic/responsive-output-is-too-slow/

    Many of us hope that Trivantis will fix this soon.

    Regards, Peter

     

    This post has received 1 vote up.
    #347438 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day Tamer,

    pageStatus = trivPageTracking.GetRangeStatus(pageNumber);

    This will return “complete” or “notstarted”, the pageNumber would start at 1 and end with the number of pages you have in the title.  The number of pages in a give chapter is in the TOC but you need a lot of work to get at it, I suggest that you simple take note of the start and end page numbers of each of the chapters and hard wire these for each title, not the best solution but it will work.

    HTH

    Regards, Peter

    This post has received 1 vote up.
    #403707 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    <span class=”handle-sign”>@</span>jvalley4735

    Thank you so much for your detailed reply. I have used the above mentioned forum to communicate, however, I have had no feedback on my suggestions/requests. Whilst asking fellow Lectora developers to like or comment on a suggestion is a good idea, the problem with that is one needs to know about the forum and request to be notified, I suspect that 90+% of community members just look for answers and post questions if they cannot find an answer to their issues, that said, some of my requests have been voted, liked and commented.

    I also understand the process as I was part of the ToolBook development team on a few significant projects and was part of the Lectora version 17 testing team.

    I know this is not the forum but here are the top three:

    1. Ability to launch published titles locally without the need to re-publish.
      1. https://community.trivantis.com/forums/topic/launching-local-content-without-lectora-editor/
      2. https://community.trivantis.com/forums/topic/button-to-preview-published-content/
    2. Publish Titles – Copy extern files last
      1. https://community.trivantis.com/forums/topic/publish-titles-copy-extern-files-last/
    3. Extra graphics created when publishing in Lectora 12 and through to 17
      1. https://community.trivantis.com/forums/topic/extra-graphics-created-when-publishing-in-lectora-12/
      2. https://community.trivantis.com/forums/topic/responsive-output-is-too-slow/
      3. https://community.trivantis.com/forums/topic/lectora-16-creating-to-much-images/
    This post has received 1 vote up.
    #311439 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day Andrew,

    JavaScript functions are global for the given page that is loaded.  If you declare the function at the page level then it will only be available for that give page, if declared at the chapter level then every page that shares that chapter will have access to the function and the best place if it’s going to be a common function is to put it at the title level from where it will be available on every page.

    HTH

    Regards, Peter

    http://www.LectoraDevelper.com

    This post has received 1 vote up.
    • This reply was modified 3 years, 3 months ago by Profile photo of Peter Jackson Peter Jackson.
    #313407 Score: 1
    Profile photo of Peter Jackson
    Peter Jackson
    Member
    beginner
    intermediate
    advanced
    friend finder
    contributor
    junior moderator
    wise owl
    group mod
    entry
    winner
    17 pts
    @pjackson2462

    G’day All,

    Great posts, unfortunately, I cannot provide a balanced view as I’m a ToolBook expert with over 20 years invested in the product and as Darrel has already mentioned ToolBook is a dead product.  Again, as Darrel mentioned, the ToolBook Action System is very powerful and to compare it to the Lectora Actions is like comparing Tiddlywinks to Chess.  The ability to incorporate JavaScript allows advanced Lectora uses to do a lot more but even then it’s a lot of work to get at object properties and make changes that are persistent.  As a contractor for SumTotal I extended the Action System to include JavaScript which allowed other ToolBook developers the ability to create add-on such as PowerPac.  One of ToolBook’s greatest features is it’s OpenScript and therefore it’s extensibility, the ability to use OpenScript to build ToolBook applications and add-ons.  It’s virtually impossible to create tools/add-ons for fellow Lectora developers, I would love to assist Trivantis to extend Lectora.

    So why am I here?  Lectora objects are the closest fit to ToolBook objects and Lectora titles can be created from ToolBook books, one of my ToolBook customers has over 80 courses and each course can have from 2 to 8 titles, 50/50 lesson/test, with lessons containing between 80-400 pages including audio on every page, approx. 80,000 pages.  It would have taken them many man (or should I say Peter:-) years to go from ToolBook to any other package, it now takes seconds to create a 100 page title without the need to change anything, just publish.  All done using ToolBook, whoops, there I go again.

    Hopefully, Trivantis will not fall into the same marketing trap that Click2Learn fell into, which was to market ToolBook as the most powerful authoring package available.  A very true statement, however, it is synonyms for complicated, difficult, hard to learn, etc.  FYI Asymetrix – Click2Learn – SumTotal, the name game:-)

    Regards, Peter

    http://www.LectoraDeveloper.com

    Previously: http://www.ToolBookDeveloper.com

    This post has received 1 vote up.
Viewing 12 posts - 1 through 12 (of 12 total)

Peter Jackson

Profile picture of Peter Jackson

@pjackson2462

active 5 months ago