Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

HTML Validation problem

  • 29-04-2010 11:52am
    #1
    Registered Users, Registered Users 2 Posts: 4,946 ✭✭✭


    Hey

    Im doing a project atm and im just finishing up the validation process.. Its nothing major, just having a problem with that auto play. Basiclly when the page loads they want a chime to play. The code below plays it fine, but its not valid with 4.01 transitional.

    Any help/alternatives would be appreciated.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
    
    <embed src="intro.wav"
    hidden="true"
    autostart="true">
    </embed>
    


    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    Does this page help?

    The zealots might not agree with this, but if you want standards compliant XHTML but still need a non-standard (but fully working) bit of mark-up, you can be naughty and write out the HTML using a JavaScript function.


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Moved from Development, I think this is a better home for this question.


  • Closed Accounts Posts: 9,700 ✭✭✭tricky D


    Embed is not going to validate but you need it. Just take the hit. It won't cause any browser problems. I wouldn't even bother with hiding in js as eoin suggests despite me being one of those zealots.


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭cormee


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml"&gt;
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>

    <body>
    <object height="0%" width="0%"
    classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
    <param name="AutoStart" value="1" />
    <param name="FileName" value="sound.wav" />
    </object>
    </body>
    </html>

    Validates OK


  • Registered Users, Registered Users 2 Posts: 4,946 ✭✭✭red_ice


    Thanks for all the replies

    loads of help, learned a bit too in the process, thumbs up for everybody


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 7,838 ✭✭✭Nulty


    I cant say for sure but when I was working on embedding objects I think I read somewhere that embed is an unofficial tag used by FF and object is used by IE (I could have them mixed up). If you want the object to work in both browsers I think you need to use both tags like so....

    [HTML]<object width="255" height="206">
    <param name="movie" value="http://www.youtube-nocookie.com&quot; />
    <param name="allowFullScreen" value="true" />
    <param name="allowscriptaccess" value="always" />
    <embed src="http://www.youtube-nocookie.com/&quot; type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="255" height="206"></embed>
    </object>[/HTML]


Advertisement