Explore the community Forums Lectora Web Accessibility Alt Tags not Showing

Tagged: 

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #433886 Score: 0
    Profile photo of Ann Sisco
    Ann Sisco
    Member
    beginner
    intermediate
    friend finder
    wise owl
    curious george
    contributor
    profile
    5 pts
    @prg1792

    Hi, Monica (@mspencer.2813)

    To attach the JS file to your title, perform the following steps:

    1. Select the Insert ribbon.
    2. Way over on the right, select Attachment.
    3. A window will open. Navigate to the folder where you saved your new JavaScript file.
    4. Select the file.
    5. Select Open.

    The JavaScript file is now attached to your title. You can verify this by selecting the Tools ribbon, then Resources. The file should be listed under Attachments/Other.

    When a file is attached to a title, it is copied into the root folder of the published files each time you publish. If it is not attached, it is not copied into this folder, and you will get an error message for any corresponding JavaScript calls.

    Hope this helps.

    #433890 Score: 0
    Profile photo of Ann Sisco
    Ann Sisco
    Member
    beginner
    intermediate
    friend finder
    wise owl
    curious george
    contributor
    profile
    5 pts
    @prg1792

    @mspencer.2813

    I just published my test title in v18.2.1 using the code I had posted. It is not working with this version. I’ll have to dig a bit to see what changed since I posted my example. Sorry!

    UPDATE: Be sure that any smart quotes are replaced with straight quotes both in the code of your new JavaScript file and in the HTML Extension text. That’s what caused my recent attempt to fail.

    • This reply was modified 2 weeks ago by Profile photo of Ann Sisco Ann Sisco.
    #434044 Score: 0
    Profile photo of Monica Spencer
    Monica Spencer
    Member
    beginner
    intermediate
    wise owl
    @mspencer.2813

    @prg1792

    Thank you, Ann! I replaced the smart quotes with straight quotes in both the js file and the HTML extension text and it WORKED!!!

    Thanks for the script, explanations, clarification, and quick response. It was all very helpful!

    #434047 Score: 0
    Profile photo of Ann Sisco
    Ann Sisco
    Member
    beginner
    intermediate
    friend finder
    wise owl
    curious george
    contributor
    profile
    5 pts
    @prg1792

    You’re welcome 🙂 Glad that worked for you!

Viewing 4 posts - 16 through 19 (of 19 total)

You must be logged in to reply to this topic.