Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member undoIT's Avatar
    Join Date
    Jan 2007
    Posts
    70
    Member #
    14704
    I am trying to turn off the built-in spellcheck functionality in certain browsers such as Firefox and Opera on a textarea that contains HTML embed code for visitors to copy and paste. This can be done with following attribute:

    spellcheck="false"

    However, this causes a validation error for XHTML Strict. Also, it doesn't work properly in Opera, because the spell checking returns after a user selects the embed code in the text area. Is there another method for turning off spell check functionality?

  2.  

  3. #2
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    instead of a textarea just put the readout in a <pre> tag and use a javascript button to copy code.

    while($get_it !== true){ continue; }

  4. #3
    Junior Member
    Join Date
    Dec 2009
    Posts
    16
    Member #
    20696
    Quote Originally Posted by undoIT
    I am trying to turn off the built-in spellcheck functionality in certain browsers such as Firefox and Opera on a textarea that contains HTML embed code for visitors to copy and paste. This can be done with following attribute:

    spellcheck="false"

    However, this causes a validation error for XHTML Strict. Also, it doesn't work properly in Opera, because the spell checking returns after a user selects the embed code in the text area. Is there another method for turning off spell check functionality?
    Well, you're going to get that validation error because spellcheck is not a valid XHTML attribute.

    Can you turn off the spellchecking with a JavaScript call?

  5. #4
    Member undoIT's Avatar
    Join Date
    Jan 2007
    Posts
    70
    Member #
    14704
    Quote Originally Posted by htmljenn
    Well, you're going to get that validation error because spellcheck is not a valid XHTML attribute.

    Can you turn off the spellchecking with a JavaScript call?
    Yes. I was able to apply the spellcheck attribute with JavaScript using this:

    Code:
    document.getElementById('IDFORYOURTEXTAREA').setAttribute('spellcheck', 'false');
    Then, the XHTML is also valid.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

css spell check off

Click on a term to search for related topics.
All times are GMT -6. The time now is 10:24 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com