Forum Moderators: open

Message Too Old, No Replies

FLASH: a barrier for getting pages to validate!

who-hoo I'm getting there...

         

HelenDev

12:32 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



After much banging my head against the wall, I am finally starting to get pages to validate on my site.

I now realise that I was taking the validator way too literally at first. I was thinking 'whaddya mean I can't have a body tag in my document?!' Of course once I started to try and fix the 'errors' which I did understand, the others magically disappeared.

Anyway, for a long time it has been my ambition to be able to put one of those cute little validation pics on my site, and my question is...

As has been much discussed, Embedding Flash movies on your page stops it validating. No-one seems to have an answer to this, I know, but can I declare my pages valid, if all is valid apart from the Flash being there? And can I put the cute little pic there without feeling guilty? Does anyone else do it?

If it was up to me I wouldn't bother with flash, but the boss wants it, so it must stay.

Helen.

MatthewHSE

1:41 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The picture is supposed to be a link to validate the page. If you use the "Validates" image and link it properly, and someone clicks the link and it doesn't validate, what impression does that make? ;)

Most of my pages WOULD validate to HTML 4.01 Strict, except for some third-party scripts that insert some invalid code here and there. I have to use those scripts, so I'm not able to validate like I want to. So, I don't use the image, either.

HelenDev

1:56 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you use the "Validates" image and link it properly, and someone clicks the link and it doesn't validate, what impression does that make?

Well, perhaps I'll just 'hide' my flash with javascript like I saw someone suggesting in another thread.

It doesn't seem fair that your pages are valid, but yet they won't validate :(

Perhaps this is the sort of thing digitaltv was getting at in his rant [webmasterworld.com]. I'm not saying I agree with his views but the validator can be extremely frustrating.

MatthewHSE

2:06 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It doesn't seem fair that your pages are valid, but yet they won't validate :(

It certainly doesn't seem fair. I mean, you can go through all the turmoil of your first validation, get the hang of it, and write clean code, but sometimes certain limitations just can't be avoided. And then your page doesn't validate. <edit>But, what else is the W3C to do? They really can't give a validation for a "best effort" try; all or nothing is really the only standard they can have.</edit>

But, I'm soon going to be doing a site with nothing but static HTML pages - and my goal is for every page to validate Strict on the first try! :)

HelenDev

2:14 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry if I sound bitter. It just seems like another good reason not to use flash at all. You would think that the powers that be, both at Flash and at WC3, would try to come up with an acceptable solution.

H.

bumpaw

5:01 pm on May 13, 2004 (gmt 0)

10+ Year Member



I just got my first site to validate HTML 4.01 Transitional. Those third party scripts were a pain, but after they were tweaked a little it's good to go. The W3C merit badge is going up right after lunch.

tedster

5:26 pm on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried the so-called "Flash Satay" method?

[macromedia.com...]

Author Drew McLellan put in some substantial effort into "Embedding Macromedia Flash while Supporting Standards".

HelenDev

1:21 pm on May 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



tedster, that's great! Exactly the sort of thing I need!

I see that Drew firstly came up with a very simple way to do it, but this apparently only works for small flash movies...

<object type="application/x-shockwave-flash" data="movie.swf" 
width="400" height="300">
<param name="movie" value="movie.swf" />
</object>

On my page however, I have a bunch of six small flash movies, around 10k each, and this method works fine for them.

It works in Mozilla and ie, it validates, and I don't have to go into the flash movies themselves and edit them. Do you think it is OK for me to use this method, or does anyone know of any problems with it?

encyclo

1:30 pm on May 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This thread [webmasterworld.com] gives some information (even if the post linking to the flash satay method has mysteriously disappeared), as well as another method suggested by DrDoc.

Flash Satay works to a limited extent, but I wouldn't use it. One advantage with flash is that works in any browser with the plugin. Flash Satay breaks when viewing in older browsers such as Netscape 4, so you should test it thoroughly before going live with your changes. Flash is a proprietary technology which goes against the open standards such as HTML, CSS, etc. Validation is always going to be an issue when you're embedding such elements in your pages.

tedster

2:11 pm on May 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Every couple weeks I search Google for "Flash satay" with quotes - there are a number of folks working through alternatives for valid Flash embedding and they keep putting up current information - and almost always mention the Satay method on their pages.

I haven't found anything earth-shaking yet, but knowing that there's active research going on, I figure it's good to stay tuned.

HelenDev

2:23 pm on May 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, so am I correct in thinking that using the <object> tag only, like in the code I posted above, this causes problems in some older browsers (and stops movies streaming properly in ie), but is it the future way to do it?

bcolflesh

2:24 pm on May 14, 2004 (gmt 0)

HelenDev

2:35 pm on May 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Right! That's it, I've had enough! I'm going to document.write it!

If you do use javascript, does it still direct users to the plug in if they don't have it, in the usual way?