Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    trying to validate my embed or object.

    Hi,

    The following code won't validate. it errors on the embed saying that I can;t use an embed for a 'src'. It then proceeds to reject other things such as 'quality' and 'high' both of which, it says, are not valid attributes.

    Wat must I do to get this to work xbrowser please?

    Code:
    <object class='animated_right' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="225" height="265">
    <param name="movie" value="http://example.com/flash/tearoom.swf" />
    <param name="quality" value="high" />
    <embed src="http://example.com/flash/tearoom.swf" width="225" height="265" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">
    </embed>
    </object>
    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Try:
    Code:
    <object type="application/x-shockwave-flash" width="225px" height="265px" data="http://example.com/flash/tearoom.swf">
    	<param name="movie" value="http://example.com/flash/tearoom.swf" />
    	<param name="quality" value="high" />
    	<h1>You don't have flash on your machine</h1>
    </object>
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • #3
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Thank you rangana.

    That works a treat.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #4
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Thank you Shirley.

    Unfortunately, the first link seems to be obsolete and the second tells me to do it the way it was already done and which wouldn't work cross-browser.

    I have it working now with rangana's code above.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Quote Originally Posted by bazz View Post
    Thank you Shirley.

    Unfortunately, the first link seems to be obsolete and the second tells me to do it the way it was already done and which wouldn't work cross-browser.

    I have it working now with rangana's code above.

    bazz
    But this link isn't obsolete.

    http://code.google.com/p/swfobject/

    Read the documentation to find out why you should use it. I use it on all of the sites I do that involve putting flash on a page.

    http://code.google.com/p/swfobject/wiki/documentation
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Bit slow replying here.

    Thanks Aero, I go it working xbrowser with less code. mega busy with it so forgot to come back with a response.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #7
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You should probably read WHY you should use SWFObject. What happens if the user doesn't have flash installed or the correct version of flash installed? You have no idea if they have flash or if they have the needed version by using the code you are currently using. You have no way of providing alternate content to the user.
    Last edited by _Aerospace_Eng_; 05-21-2009 at 09:54 PM.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #8
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Yep, Aero I get it now.

    As far as possible, I only code on the basis that the user has choice and that their choice should not diminish their web experience any more than it has to.

    I iuse JS for a total of about 3 functions and each of them offers an alternative or else, it doesn't interfere with accessibility.

    as a side issue, what is the concensus on animated gifs and do all modern browsers support them?

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #9
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Yes all modern browsers support animated gifs unless its a screen reader. Most mobile devices also support animated gifs but with this quality and the smoothness of how well it runs can diminish compared to flash.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #10
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    OK, thanks. Animated gifs seem 'old hat' somehow but I like that if it works, it remains current.


    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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