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 5 of 5

Thread: Code Validation

  1. #1
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    I guess this is a bit of a newbie question, but in a javascript code, what is the value for the "type" attribute?.
    Code:
    <script language="javascript" type="???"></script>
    I'm using HTML-KIT to validate my code at the moment, and when I validate it, I get a "warning" that my tables "lack the "summary" " attribute. What is this and is it necessary?
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    type="text/javascript"

  4. #3
    Junior Member
    Join Date
    Oct 2003
    Location
    California
    Posts
    1
    Member #
    3395
    I love HTML-Kit

    The summery tage "Specifies a summary of the table for speech-synthesizing/non-visual browsers" ... i don't /think/ it's necessary, standards wise... but i stick it in just because. I think there's a way you can skip those errors (mine does) but I'm not sure how.

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    IT may also help to define the version of JScript that you're using (e.g. "Javascript 1.2"). I'm not sure if this is causing your specific problem or not.

    The TYPE attribute is used to define the type of script that it is and its encoding (e.g. text/Javascript as brother transio mentioned.)
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    Thanks for the replies .
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile


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
  •  
All times are GMT -6. The time now is 01:09 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com