Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

W3c Validation flash errors... 1

Status
Not open for further replies.

jasc2k

Programmer
Nov 2, 2005
113
GB
Hi all,

Apologies for my ignorance but for some reason when I use the w3c validator on my website I get like 20 errors of invalid attributes for my flash movies.
Obviously this means my site will not pass the verification test, is there any way around this?


i.e:
Line 56, Column 39: end tag for "param" omitted, but OMITTAG NO was specified
Line 57, Column 3: start tag was here
Line 57, Column 44: end tag for "param" omitted, but OMITTAG NO was specified
Line 58, Column 18: Attribute "src" exists, but can not be used for this element.
Line 58, Column 46: Attribute "quality" is not a valid attribute

Thanks in advance
James
 
Hi

XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition) | Differences with HTML 4 | For non-empty elements, end tags are required
Differences with HTML 4 said:
In SGML-based HTML 4 certain elements were permitted to omit the end tag; with the elements that followed implying closure. XML does not allow end tags to be omitted. All elements other than those declared in the DTD as [tt]EMPTY[/tt] must have an end tag. Elements that are declared in the DTD as [tt]EMPTY[/tt] can have an end tag or can use empty element shorthand (see Empty Elements).
So put a slash ( / ) in front of the [tt]param[/tt] tags closing less-then ( > ) sign.

By the way, the validator told it already :
W3C Markup Validation Service said:
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

Feherke.
 
Thanks for your reply my current code is as follows...

<object type="application/x-shockwave-flash" width="666" height="118" title="Mill Autoquip">
<param name="movie" value="images/middle.swf" />
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="images/middle.swf" quality="high" wmode="transparent" pluginspage=" type="application/x-shockwave-flash" width="666" height="118"></embed>
</object>

Here is my validation error link:

Thanks
 
Hi

James said:
Thanks for your reply my current code is as follows...
I saw your code because you already mentioned the URL in your first post.

Was pointless to paste the HTML source here, but if you are doing it anyway, please post the code between [tt][ignore]
Code:
[/ignore][/tt] and [tt][ignore]
[/ignore][/tt] TGML tags.


Feherke.
 
lol sorry did not notice that :eek:)

what do you mean by tgml, I dont have any code tags?

Thanks
 
ok, ok here goes...

Code:
<object type="application/x-shockwave-flash" width="666" height="118" title="Mill Autoquip"><param name="movie" value="images/middle.swf" /><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="images/middle.swf" quality="high" wmode="transparent" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] type="application/x-shockwave-flash" width="666" height="118"></embed></object>
 
cool.

I have been doing some research on the flash satay mathod but am not sure I quite understand it, also I have been reading about using javascript to document.write it but I didnt want to rely on users having javascript turned on.

Is there another type of animation I can use that would be valid and looks as good as flash when the animation is running?
 
I doubt you'll find one, and if you do, it probably wont have the support that Flash does across all browsers and most users...

Personally, I'd go with Flash, or at a stretch, an animated GIF.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Hmm.. or both: Using Flash Satay you can write out an animated GIF for those whose browsers don't support Flash or who haven't got the Flash plugin installed.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
I do like flash because of the cross browser compatability and its smoothness I think I will just use the flash and remove that code when I validate the page.

Then I will eagerly await w3c to fix this issue, lol!

Thanks all,
James
 
Then I will eagerly await w3c to fix this issue

Are you saying that the Flash Satay method doesn't validate for you? This works for me in all browsers, and validates just fine:

Code:
<div id="banners">
	<object type="application/x-shockwave-flash" data="/assets/banners/flash/Deliver_Banners_1.0.swf" width="598" height="88">
		<param name="movie" value="/assets/banners/flash/Deliver_Banners_1.0.swf">
		<img src="/assets/banners/images/Deliver_Banners_1.0.gif" width="598" height="88" alt="Design to deliver" title="Design to deliver">
	</object>
</div>

It even has a fall-back graphic for those without Flash...

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
...also I have been reading about using javascript to document.write it but I didnt want to rely on users having javascript turned on...
worried about users not having JS turned on, but not worried about the user having flash installed? how peculiar.

@Dan - the doctype in his page is transtitional - the snippet you pasted does not validate unless you self-close the tags within your object. then it works sweet :]

@jasc2k - this is a little off topic, but with the current doctype, your page will not validate when you use the [tt]<link rel...[/tt] in the middle of the page. the stylesheets should be declared in the head for the page to successfully validate.

also, remember self closing tags - it is fairly consistent throughout the page, except in the [tt]<embed>[/tt] elements.

________________________________
Top 10 reasons to procrastinate:
1)
 
dan,
does that code support the param wmode=transparant?

g0ste,
thanks that style shet code should have been commented out, its because I use a PHP include statement and put the css sheet in there to design the page initially.
I also imagine that there are not many people without the flash plugin installed/enabled but would it not prompt to install?
Either way I think I am going to use javascript but also build the site to run without javascript, that will be interesting!
Did you see any other issues with my html?

Thanks
James
 
superb, thanks all for your help have used the code mentioned by dan and after I tweaked it a little has all validated fine.

Cheers,
James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top