Explore the community Forums Lectora Tips and tricks jQuery vs Lectora 17

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #367649 Score: 0
    Profile photo of George Bosveld
    George Bosveld
    Member
    beginner
    intermediate
    friend finder
    advanced
    curious george
    contributor
    wise owl
    picture perfect
    profile
    1 pt
    @GeorgeB

    Hi all, not sur eif this is the right place to ask / notify:

    I tried to do something with jQuery. So to get going I started the Part 1 blog by Trivantis: https://www.trivantis.com/blog/using-jquery-lectora-customize-e-learning-courses-part-1/

    But: The first test already fails. Is this because I’m using Lectora 17? (Publisher, desktop)

    Anyone else has problems? Or maybe cool jquery examples like a horizontal drag drop exercise?

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

    What are you trying to do that failed and how did you do it? There is no issue using jQuery with version 17.

    #367777 Score: 0
    Profile photo of George Bosveld
    George Bosveld
    Member
    beginner
    intermediate
    friend finder
    advanced
    curious george
    contributor
    wise owl
    picture perfect
    profile
    1 pt
    @GeorgeB

    Disabling the check boxes.

    When I load the page (preview and published to html) I don’t see the page as it should. Like it doesn’t load the styling.

    (similar like when you load a page when an action has a missing target)

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

    The code from the blog article should work (as long as you’ve deactivated Seamless Play). If you copied the code directly from the blog to Lectora, you should be aware that you have to replace all the fancy quotes (which aren’t quotes) with real quotes:

    $("input").click(check_and_limit);
    
    function check_and_limit() {
    if ($("input:checked").length == 3) {
    $("input:not(:checked)").attr("disabled", true)
    } else {
    $("input").attr("disabled", false)
    }
    }
    This post has received 2 votes up.
    #367792 Score: 0
    Profile photo of George Bosveld
    George Bosveld
    Member
    beginner
    intermediate
    friend finder
    advanced
    curious george
    contributor
    wise owl
    picture perfect
    profile
    1 pt
    @GeorgeB

    Aha, that works, thanks!

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

You must be logged in to reply to this topic.