...

View Full Version : trying to validate my embed or object.



bazz
05-18-2009, 05:01 AM
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?



<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

rangana
05-18-2009, 05:09 AM
Try:


<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>

bazz
05-18-2009, 05:31 AM
Thank you rangana. :thumbsup:

That works a treat.

bazz

bazz
05-19-2009, 01:49 PM
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

_Aerospace_Eng_
05-19-2009, 02:01 PM
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

bazz
05-21-2009, 07:05 PM
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

_Aerospace_Eng_
05-21-2009, 07:19 PM
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.

bazz
05-21-2009, 09:23 PM
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

_Aerospace_Eng_
05-21-2009, 09:54 PM
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.

bazz
05-22-2009, 12:15 AM
OK, thanks. Animated gifs seem 'old hat' somehow but I like that if it works, it remains current.


bazz



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum