SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Validation with <iframe>?

    Good morning

    The Cbox I put on my site throws validation errors. The errors are only within the <iframe> that holds the cbox (comment box). I've been able widdle the validation errors down to 7. But beyond that I can't figure out how to get rid of these errors - or if possible at all? Thanks for having a look!

    Here is the test page
    http://www.littleaboutalot.com/test.php

    Here are the 7 errors that I can't get rid of
    http://validator.w3.org/check?verbos...com%2Ftest.php

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,014
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    As indicated several places in the error messages:
    you must use the "Transitional" document type
    The other errors can be handled by not using inline CSS, i.e. the frameborder and scrolling attributes.

  3. #3
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mittineague View Post
    As indicated several places in the error messages:

    The other errors can be handled by not using inline CSS, i.e. the frameborder and scrolling attributes.
    Alright, thanks bro! I'm going to change it over to transitional. Is there a css equivalent for frameborder and scrolling attributes - I can't seem to find any that work with the iframe. And without them the cbox breaks.

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,014
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    I see that with the transitional doctype the frameborder and scrolling attributes are OK so you may want to leave it as is. I'm no CSS guru but AFAIK the scrolling could be replaced with overflow: auto and the frameborder maybe with border, although it appears that getting it right cross-browser is a bit trickier (i.e. setting html and body to border none first).

  5. #5
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Thanks man for your help - much appreciated.

    It validates now - I just had to go to a transitional doc.

    I'm trying to clean it up a little bit more though. I need a CSS equivalent for these 3 following thingy-madoogers? Do they exist? overflow auto does not work. border 0 does not work. Thanks!

    frameborder="0", scrolling="auto", scrolling="no"

  6. #6
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,014
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    Sorry I can't be more help. But the CSS forum is visited by some very knowledgeable members. Posting a thread in that forum is your best bet. http://www.sitepoint.com/forums/forumdisplay.php?f=53

  7. #7
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    No problem. Oh ya - I forgot I was in the html forum.


Bookmarks

Posting Permissions

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