Validating some code

Discussion in 'Water Cooler' started by Michael, Sep 26, 2009.

  1. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    Anyone able to validate this code for me?

    Code:
    <div style="margin-top:8px;">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="120" height="600" id="clickTAG" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="FlashVars" value="clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09"><param name="movie" value="http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf     &clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="[URL="http://www.adminaddict.net/forum/view-source:http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf%20&clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09"]http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf     &clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09[/URL]" FlashVars="clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" quality="high" bgcolor="#ffffff" width="120" height="600" name="newcombo46860" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>
    
    </div>
    
    It is giving us 19 errors on our homepage :D
     
  2. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    Like make a .swf file? and test it?
     
  3. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    Im not on about testing if it works, it works just fine, I am talking about getting it to validate so that it is valid xhtml transitional code :)
     
  4. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
  5. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    Any takers? :D
     
  6. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    Michael, you may want to add the info on the actual errors you're getting. Good luck, I know how annoying trying to fix those errors can be sometimes! :)
     
  7. cheat-master30

    cheat-master30 Grand Master

    Joined:
    Jul 30, 2009
    Messages:
    789
    Likes Received:
    59
    Replace any '&' signs with '&'. See if that helps, it usually leads to a lot of errors when I forget to do that.
     
  8. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    That's the first thing that I was going to suggest cheatmaster as I had like 40 errors on a page last night that I fixed with just that :D
     
  9. cheat-master30

    cheat-master30 Grand Master

    Joined:
    Jul 30, 2009
    Messages:
    789
    Likes Received:
    59
    Oh, and 'param' needs a / before the >.
     
  10. Wayne Luke

    Wayne Luke Regular Member

    Joined:
    Apr 2, 2009
    Messages:
    991
    Likes Received:
    276
    Take out the last line...

    Code:
    </div>
    
    One of your param tags is fubared as well. You need to fix it.

    Code is easier to read when there is one tag per line and it is properly indented. Obvious errors become easy to spot.
    HTML:
    <div style="margin-top:8px;">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="120" height="600" id="clickTAG" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="FlashVars" value="clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09">
    <param name="movie" value="http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf     &clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
    <embed src="http://lwken.com/flash/5183-176652-120x600.swf?s=112143&subid=Teenforumz-PangyaGolf     &clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" FlashVars="clickTAG=http%3A%2F%2Flwken.com%2Fclick%2F%3Fs%3D112143%26c%3D176652%26subid%3DTeenforumz-PangyaGolf+%09" quality="high" bgcolor="#ffffff" width="120" height="600" name="newcombo46860" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </div>
    
    </div>
    
    For anything else, need to know what doctype you're using. Different doctypes have different rules.
     
  11. cheat-master30

    cheat-master30 Grand Master

    Joined:
    Jul 30, 2009
    Messages:
    789
    Likes Received:
    59
    I checked, and most of this comes from using the embed element in part of it, since it's not a recognised HTML tag.
     
  12. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    I think Im may leave this one :D It will only invalidate our forums over the next month and once its gone its gone with those errors too.
     
  13. cheat-master30

    cheat-master30 Grand Master

    Joined:
    Jul 30, 2009
    Messages:
    789
    Likes Received:
    59
    That might be a wise decision.
     
  14. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    I think it is since it wont be there afterwards, although validating it would be a great option, I am no good with validation, especially of tags I rarely use.
     
  15. Wayne Luke

    Wayne Luke Regular Member

    Joined:
    Apr 2, 2009
    Messages:
    991
    Likes Received:
    276
    Just move the code to a series of Javascript write statements. It would validate then. However you can rest pretty assured that unless you have pedantic stuck-up users, no one is going to validate your site before they use it.
     
  16. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    Can you show me how you mean Wayne? I dont know any JS unfortunately.
     

Share This Page