High Definition eLearning
Welcome guest, is this your first visit? Create Account now to join.
  • Login:

Welcome to the Lectora and CourseMill Forums

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Remove ALT tag from form objects

    Greetings,

    Is it possible to remove ALT tags from FORM OBJECTS in Lectora?

    When adding images, I know you can turn off alt tags. But I see no such option with form objects such as text entry fields and drop-down boxes.

    BTW - using Lectora 7.

    Thx!

  2. #2
    Member
    Join Date
    Jul 2004
    Location
    Columbia, SC
    Posts
    462
    Thanks
    1
    Thanked 25 Times in 24 Posts

    Default

    Not that I know of. I think this has been added as a request for the next update by several people.

  3. #3
    Ben Pitman aka Dr Lectora
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    5,948
    Thanks
    7
    Thanked 271 Times in 265 Posts

    Default

    There is no way in native Lectora. However it can be done using JavaScript. For entry boxes, see Entry Box Kit. If you have others, post which ones and I will figure out.
    New Jan 19: Free Chapter of Designing Effective eLearning: A Step-by-Step Guide from Amazon

    cheers, ben -- aka Dr. Lectora: Lectora Resources & Services

    678-571-4179 - ben.pitman@eProficiency.com

  4. #4
    Member
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the responses!

    I was able to remove the form object ALT tags by editing the published code. I simply deleted the "title" attribute. Title="FormObject" becomes Title="".

  5. #5
    Ben Pitman aka Dr Lectora
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    5,948
    Thanks
    7
    Thanked 271 Times in 265 Posts

    Default

    That will work as long as you remember to do it each time and there are not too many of them.
    New Jan 19: Free Chapter of Designing Effective eLearning: A Step-by-Step Guide from Amazon

    cheers, ben -- aka Dr. Lectora: Lectora Resources & Services

    678-571-4179 - ben.pitman@eProficiency.com

  6. #6
    Member
    Join Date
    Feb 2010
    Posts
    37
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    With the latest version of Lectora, have they made a way to remove object alt tags? If not, how can I have all Alt tags removed from my course? Will it have to be javascript? Or editing HTML pages? Any help would be appreciated. Thanks!

  7. #7
    Ben Pitman aka Dr Lectora
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    5,948
    Thanks
    7
    Thanked 271 Times in 265 Posts

    Default

    You can control most of them at publish time. There is an option. Uncheck it. But as the starter of this thread said, it does not work for some form objects. So you have to use the Entry Box kit I mentioned above.
    New Jan 19: Free Chapter of Designing Effective eLearning: A Step-by-Step Guide from Amazon

    cheers, ben -- aka Dr. Lectora: Lectora Resources & Services

    678-571-4179 - ben.pitman@eProficiency.com

  8. #8
    Member
    Join Date
    Oct 2011
    Posts
    24
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Quote Originally Posted by Chad_Oglesbay View Post
    With the latest version of Lectora, have they made a way to remove object alt tags? If not, how can I have all Alt tags removed from my course? Will it have to be javascript? Or editing HTML pages? Any help would be appreciated. Thanks!
    Javascript would be the easiest way to do this. I use JQuery to help with this, it's pretty much the de facto javascript library out there for doing these things.

    Add an External HTML object, of type "META tag", and insert the following link for JQuery:
    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    If you need offline access to JQuery, you can download it yourself and modify that link.

    Then, add another External HTML object, with this code:
    Code:
    <script type="text/javascript">
    	$(document).ready(function () {
    		$('input').removeAttr('title');
    		$('select').removeAttr('title');
                    $('img').removeAttr('title').removeAttr('alt');
    	});
    </script>
    What's happening here is that we're telling the browser to run this code as soon as the page is "ready" for display (ie, after everything's loaded). Then, I'm telling it to remove the 'title' attribute from all inputs (text boxes, password boxes, checkboxes, submit buttons), selects (drop-down lists/listboxes), and for images, both the title and alt tag.

    Place that External HTML object wherever you need, or at the top of your title to have it apply title-wide. I'm not at my computer with Lectora to test this, but we're doing some similar things, and this should work for you.

  9. #9
    www.intea.lv
    Join Date
    Aug 2010
    Posts
    353
    Thanks
    9
    Thanked 55 Times in 53 Posts

    Default

    Quote Originally Posted by benpitman View Post
    That will work as long as you remember to do it each time and there are not too many of them.
    Notepad++ is free and can do mass replace in multiple files, and also can use RegExp for complex automated edits. Or as said above, you can strip all alt properties at runtime with a script.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Lectora and CourseMill are registered trademarks of Trivantis Corporation, Camtasia and Snagit are registered trademarks of TechSmith Corporation and
Flypaper is a trademark of Flypaper Studio. Camtasia and Snagit are used with the permission of TechSmith Corporation.
Copyright © 1999-2012 Trivantis Corporation Inc. All rights reserved.