Validating some code

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

  1. Michael

    Michael Regular Member

    166
    35
    104
    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

    979
    20
    0
    Like make a .swf file? and test it?
     
  3. Michael

    Michael Regular Member

    166
    35
    104
    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

    979
    20
    0
  5. Michael

    Michael Regular Member

    166
    35
    104
    Any takers? :D
     
  6. ArnyVee

    ArnyVee Regular Member

    1,264
    39
    404
    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

    789
    59
    134
    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

    1,264
    39
    404
    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

    789
    59
    134
    Oh, and 'param' needs a / before the >.
     
  10. Wayne Luke

    Wayne Luke Regular Member

    991
    276
    202
    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

    789
    59
    134
    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

    166
    35
    104
    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

    789
    59
    134
    That might be a wise decision.
     
  14. Michael

    Michael Regular Member

    166
    35
    104
    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

    991
    276
    202
    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

    166
    35
    104
    Can you show me how you mean Wayne? I dont know any JS unfortunately.
     

Share This Page