Explore the community Forums Lectora Lectora Questions & Answers Calendar / Date Picker

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #388765 Score: 0
    Profile photo of Rebecca Sepeda
    Rebecca Sepeda
    Member
    beginner
    intermediate
    friend finder
    Group Member
    LUC17 Attendee
    curious george
    wise owl
    contributor
    3 pts
    @rsepeda7427

    Back in 2016, Sergey Snegirev assisted my office with a Date Picker. Over the last couple months, I can’t get it to work (or show up) when I upload my product to ReviewLink or save as an HTML. It shows up (most of the time) when I use Preview Mode in Lectora. Does anyone have any thoughts or suggestions?

    $( “#entry217004id” ).datepicker({
    minDate: +1, maxDate: “+6M +10D”,
    showOn: “button”,
    buttonImage: “custom/images/calendar-32.png”,
    buttonImageOnly: true,
    buttonText: “Select date”,
    dateFormat: “yy-mm-dd”
    });

     

    Per John Blackmon, I have tried changing the first line to $( “#”+ “%HTMLNAME%” +”id” ).datepicker({

     

    And now, to top things off. I have updated to the latest Lectora and now I get this message . . . [OnShowRunJS] TypeError: $ is not a function

    #388767 Score: 0
    Profile photo of Rebecca Sepeda
    Rebecca Sepeda
    Member
    beginner
    intermediate
    friend finder
    Group Member
    LUC17 Attendee
    curious george
    wise owl
    contributor
    3 pts
    @rsepeda7427

    Also, I need to set a second date that can’t be earlier than the first date . . . .

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

    Can you share the Lectora file? It seems to require a jQuery plugin or maybe jQuery UI?

    Which version do you use? $ should be a function in v17.1 and 17.1.3 only in 17.1.2 it wasn’t.

     

    #388883 Score: 0
    Profile photo of Rebecca Sepeda
    Rebecca Sepeda
    Member
    beginner
    intermediate
    friend finder
    Group Member
    LUC17 Attendee
    curious george
    wise owl
    contributor
    3 pts
    @rsepeda7427

    As of this morning, I am now up to 17.1.3, but that has caused more issues. Now Lectora doesn’t like the JS code at all and won’t show my page properly.

    Attached is the page I’m working on that needs the date pick calendar.

    Attachments:
    1. Visit.zip
    #388908 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

    I actually have to run so if you want me to explain some of the things I had to fix email me. I have a gmail account and my email name is obrumba.

     

    Attachments:
    1. visit_fixed.zip
    #388911 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

    By the way, I turned off seamless play. We can add it back but we will have to change some of the JavaScript. I’d just leave it off, it’s wonky.

    #388996 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

    Rebecca, use this one instead. I sent you an email explanation of this one instead of the original. Both work but this one is much closer to your original and easier to explain.

    Attachments:
    1. Visit-1.zip
    #389056 Score: 0
    Profile photo of Rebecca Sepeda
    Rebecca Sepeda
    Member
    beginner
    intermediate
    friend finder
    Group Member
    LUC17 Attendee
    curious george
    wise owl
    contributor
    3 pts
    @rsepeda7427

    Thanks Darrel for all your help. Good news is that it works when I publish to an HTML file. Bad news is the calendars won’t show up when I publish to ReviewLink.

    #389063 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

    The images, functionality or both?

    #389195 Score: 0
    Profile photo of Rebecca Sepeda
    Rebecca Sepeda
    Member
    beginner
    intermediate
    friend finder
    Group Member
    LUC17 Attendee
    curious george
    wise owl
    contributor
    3 pts
    @rsepeda7427

    Both, but only when it is uploaded to Review link.

    The calendar images don’t show up and there isn’t even a blank space that pulls up the calendar. That would be an easy fix . . . Just put in another calendar picture.

    #389621 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

    That sounds like the jQueryUI js and/or css files are not loading. Unfortunately, although I have multiple Lectora licenses, I do not have access to ReviewLink so I cannot test and figure out why it is not working.

    #389635 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

    Okay, I learned something today. I do have access to ReviewLink. To all that do not know this, if you have a lectora license you set up your free ReviewLink account by publishing a course to it. I somehow missed those instructions. Thank you to Lectora Support for so quickly getting back to me.

    Rebecca, it’s a little too late for today but I will try to see if I can get jQueryUI functionality working tomorrow. Is the test you uploaded the same as you sent me? If it is different, can you please either send it to me via email or post it here so I can see if I can get it to work?

    Darrel

    #389637 Score: 0
    Profile photo of Rebecca Sepeda
    Rebecca Sepeda
    Member
    beginner
    intermediate
    friend finder
    Group Member
    LUC17 Attendee
    curious george
    wise owl
    contributor
    3 pts
    @rsepeda7427

    It is the same. I have tried a few changes, but I keep coming back to your file.

    #389646 Score: 0
    Profile photo of Rebecca Sepeda
    Rebecca Sepeda
    Member
    beginner
    intermediate
    friend finder
    Group Member
    LUC17 Attendee
    curious george
    wise owl
    contributor
    3 pts
    @rsepeda7427

    I found the issue. It seems that when I published it, Seamless Play stayed selected.

    I was taking out most of the pages of my lesson except the one that needs the calendar. When I uploaded to make sure everything did what it was supposed to, I saw the Seamless Play checked and unchecked it . . . . . and the Calendar was there.

    I did attach the file in case you wanted to experiment.

    Thank you so much for your assistance.

    Rebecca

    Attachments:
    1. JPAS_PE3_Test.zip
Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.