Explore the community Forums Lectora Lectora Questions & Answers CurrentTime – IE & Edge Vs FireFox or Chrome

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #317415 Score: 0
    Profile photo of Paul Thomas
    Paul Thomas
    Member
    beginner
    intermediate
    junior moderator
    curious george
    contributor
    wise owl
    LUC17 Attendee
    5 pts
    @pthomas1378

    I noticed that when I utilize a simple action to display Lectora default VAR “CurrentTime” and have an action display it in a text box using Change Contents, the time displayed in Edge and IE is odd to say the least.

    Any ideas how to correct/change this?

    1st img of Lectora

    2nd img of IE

    3rd img of Chrome

    • This topic was modified 3 years, 3 months ago by Profile photo of Paul Thomas Paul Thomas.
    #317422 Score: 0
    Profile photo of Paul Thomas
    Paul Thomas
    Member
    beginner
    intermediate
    junior moderator
    curious george
    contributor
    wise owl
    LUC17 Attendee
    5 pts
    @pthomas1378

    Of course the attachments are displayed in reverse order….  :0

    #317502 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Member
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    114 pts
    @jvalley4735

    Hey Paul! From my searching it looks like this is a known issue.  IE and Edge’s native code doesn’t have the same formatting as Chrome and FF.  I’ll ask if there’s a work around known.

    #317503 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Member
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    114 pts
    @jvalley4735

    What version are you running?

    #317504 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Member
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    114 pts
    @jvalley4735

    Maybe this? https://msdn.microsoft.com/en-us/library/cd9w2te4(v=vs.94).aspx

    #317533 Score: 0
    Profile photo of Paul Thomas
    Paul Thomas
    Member
    beginner
    intermediate
    junior moderator
    curious george
    contributor
    wise owl
    LUC17 Attendee
    5 pts
    @pthomas1378

    Thanks, I’ll work on using JS to change the information.

    #317995 Score: 0
    Profile photo of Paul Thomas
    Paul Thomas
    Member
    beginner
    intermediate
    junior moderator
    curious george
    contributor
    wise owl
    LUC17 Attendee
    5 pts
    @pthomas1378

    I’m stuck….

    here what I have so far:

    // I create a new var in JS and make it equal the var JavaTime which was declared in Lectora;

    var cow= VarJavaTime.value;

    //To make sure it is a string to edit I convert it;

    var cow2string = String(cow);

    //Now that it is a string I remove the excess

    var CowMinusOne = cow2string.slice(0, -3)

    ___________

    At this point CowMinusOne has to correct information I want.

    So how to I set the variable JavaTime in Lectora to equal CowMinusOne?

     

     

     

    #318002 Score: 2
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    336 pts
    @ssneg

    I would have posted a solution but I have a meeting at 11:377… Just kidding! 😀
    If your script is working, just add another line: VarJavaTime.set(CowMinusOne); that’s it!

    This post has received 2 votes up.
    #318017 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    11:377. Too  funny. 

    #318024 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Member
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    114 pts
    @jvalley4735

    P.S. The development team is working on publishing out a fix for this issue so the script won’t always be neccessary.

    #318027 Score: 0
    Profile photo of Paul Thomas
    Paul Thomas
    Member
    beginner
    intermediate
    junior moderator
    curious george
    contributor
    wise owl
    LUC17 Attendee
    5 pts
    @pthomas1378

    Thanks Sergey…

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

You must be logged in to reply to this topic.