Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorpoofeq
    • CommentTimeApr 11th 2006
     permalink
    Well.. i found something like this...

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
    <param name="movie" value="flash.swf">
    <!--[if !IE]> <-->
    <object data="flash.swf" type="application/x-shockwave-flash">
    <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
    <img src="nieflash.gif" alt="Fajny filmik">
    </object>
    <!--> <![endif]-->
    </object>

    And I must say it works... almost... Well, on Apache + PHP there are no problems. In clean html there are also no problems. But setting this on an IIS Server causes an internal error - nested tags (or something like this as far as I remember).

    Maybe anyone has a solution on this one? :)
    •  
      CommentAuthornifkin
    • CommentTimeApr 11th 2006
     permalink
    FLASH OBJECT!!!

    Best way of getting flash on a page yet.
    • CommentAuthorKanashii
    • CommentTimeApr 11th 2006
     permalink
    Poofeq: Solution- Don't use IIS :P

    Nifkin: What about people who want to see flash content who have javascript disabled? 2 dependencies for 1 thing can't be the best : )

    Also, using Javascript to inject invalid code into a document because using the code normally makes it invalid defeats the purpose of standards and validation. Like how some people use Javascript to create target attributes on links because using the attribute normally causes the page not to validate -shrugs-
  1.  permalink
    Kanashii, while I sincerely appreciate your deveotion to validation, have you ever considered that there are some cases where the W3C is just wrong?
    • CommentAuthormaspick
    • CommentTimeApr 11th 2006
     permalink
    Scott -

    Careful! There are those that would brand you a heretic for a statement like that! ;)

    Levity aside, the w3c set the standard - the bar to reach. Can everyone reach it? I certainly fall short of the ideals in certain ways, but I keep striving. To say the standards are wrong because they push us to be better than we are is like saying childbirth is wrong because I can't do it as a man.

    That's my 2 cents. :^{>
  2.  permalink
    What about people who want to see flash content who have javascript disabled? 2 dependencies for 1 thing can't be the best : )

    Also, using Javascript to inject invalid code into a document because using the code normally makes it invalid defeats the purpose of standards and validation. Like how some people use Javascript to create target attributes on links because using the attribute normally causes the page not to validate -shrugs-


    1) Flash is usually used as behavior, so using Javascript to embed it is the logical way to add it into your pages

    2) the drawbacks of using javascript to do plugin detection and embedding *far* outweigh the drawbacks - you get better user experience, better search engine placement (if done correctly) and you can use the express install stuff, too.
    •  
      CommentAuthornifkin
    • CommentTimeApr 11th 2006 edited
     permalink
    Nifkin: What about people who want to see flash content who have javascript disabled?

    Yes, both of these users will see nothing. They will then go back to their babylon 5 message board and bitch about it there and about how nobody supports NN4.7 any more either.

    In more significant (and directly related) news (pulled straight from ten safe frogs' blog): FlashObject will get you around that pesky EOLAS lawsuit revision to IE/PC that's apparently being rolled into the April IE update.
    • CommentAuthorKanashii
    • CommentTimeApr 11th 2006
     permalink
    Hehe I saw that coming. : )

    Good to see it gets around the revision, some of the stupid patents these days are so rediculous. Remember the patent for "rich media applications on the internet"? Crazy stuff.
    •  
      CommentAuthorSpookyET
    • CommentTimeApr 11th 2006
     permalink
    FlashObject does not work with XHTML 1.1.
    •  
      CommentAuthornifkin
    • CommentTimeApr 11th 2006
     permalink
    So write your own DOM code that does.

    Seriously, short of the whole "i'm an alpha nerd" street cred, i'm don't see why there's any sort of big drive to go 1.1 anytime soon.
    • CommentAuthorpoofeq
    • CommentTimeApr 12th 2006
     permalink
    The point is I think, that webpages containing any flash objects are classified as wrong. I just don't get it why.

    It's an obvious validation problem, yet the W3C doesn't boher to do something with it.
    • CommentAuthoralixe
    • CommentTimeApr 12th 2006
     permalink
    why do you bother with the following attributes: classid and codebase ?!?

    It should be as simple as:

    <object type="application/x-shockwave-flash" data="movie.swf" width="305" height="160">
    <param name="movie" value="movie.swf" />
    <param name="wmode" value="transparent" />
    <a title="You must install the Flash Plugin for your Browser in order to view this movie" href="http://www.macromedia.com/shockwave/download/alternates/"><img src="images/image_movie.gif" width="305" height="160" alt="placeholder for flash movie" title="placeholder for flash movie" /></a>
    </object>

    Am I wrong?
    •  
      CommentAuthornifkin
    • CommentTimeApr 12th 2006
     permalink
    I believe (though I'm not certain, I haven't worked with flash in a while), that the classid and codebase are pointers to tell a browser where to go to get the appropriate plugin.
    • CommentAuthorpoofeq
    • CommentTimeApr 12th 2006
     permalink
    alixe: just as nifkin said - they should be there.

    The code that you've given probably won't work under Firefox (mozilla)... or am I wrong? :D
    •  
      CommentAuthorSpookyET
    • CommentTimeApr 12th 2006
     permalink
    hifkin: Alpha nerds?
  3.  permalink
    <object type="application/shockwave-flash" data="path/to/flash/">
    <param name="movie" value="/path/to/flash">
    <param name="height" value="350px">
    <param name="width" value="350px">
    <p>This is a flash video that shows [insert what the flash is of here]. It isn't required for this site to work so we respect your wish to not display flash objects. If you want to see this flash but can't, it may be that your browser doesn't support the <object> element.</p>
    <p>If you want a better browser that is more standards compliant and will allow you to see this flash, consider, <a href="http://www.stopie.com/" title="Get a better browser - take back the web">downloading a standards compliant browser</a> which will increase your positive browsing experience.</p>
    </object>

    Something like that, ftw!
    • CommentAuthoralixe
    • CommentTimeApr 13th 2006
     permalink
    poofeq said:
    "The code that you've given probably won't work under Firefox (mozilla)... or am I
    wrong? :D"

    Yeah wrong ;) It works fine in Firefox. I use Firefox! IE sucks.

    To nifkin
    By plug in do you mean the Flash Player? The Flash Player comes by default nowdays and you could still put a link on your page somewhere or in my example replace the <img> tag and put a text to say "Download the plug in" or whatever.
    The only thing is I doubt IE shows the alternate text/image if the Flash Player is missing.

    Well there is the new stupid update from IE where you first have to click on a Flash object to activate it, so I guess everyone will now insert Flash with JavaScript rather than the object tag!

    Alixe
    • CommentAuthorKanashii
    • CommentTimeApr 13th 2006
     permalink
    Maybe you could just use the javascript to activate the flash. Like having the flash on the page properly with object and fallback but than using javascript to find the flash and set it to play?

    I haven't used flash so I have nothing to test with, have no idea if that can be done : )
    •  
      CommentAuthornifkin
    • CommentTimeApr 13th 2006
     permalink
    By plug in do you mean the Flash Player? The Flash Player comes by default nowdays and you could still put a link on your page somewhere or in my example replace the IMG tag and put a text to say "Download the plug in" or whatever.

    I know A version of it comes preinstalled by default with most everything, but how many "joe enduser" type people who bought a winXP machine 3 years ago know how to upgrade the flash player when a new one comes out? That's the other part of where these things tie in, being able to direct people to the right place to get them up to date.
  4.  permalink
    Using just a bare-assed object tag like that *should* work, but if you try it in all the different browsers, you'll see a few problems surface.

    first, all your flash content will stop being progressively downloaded, so it won't start until the whole swf is done loading, so your users will but stuck with a blank screen until your site finishes loading. you can get around this with a small swf that loads your other swf files, but who wants to bother with all that crap?

    second, because all the browsers treat object tags differently, some of them might ignore your param tags (like safari) and some of them won't let JAWS or other screen readers see your Flash content *or* the alternate content - it just becomes invisible.

    http://weblogs.macromedia.com/accessibility/archives/2005/08/in_search_of_a.cfm
    • CommentAuthorljromanoff
    • CommentTimeApr 14th 2006 edited
     permalink

    Well there is the new stupid update from IE where you first have to click on a Flash object to activate it, so I guess everyone will now insert Flash with JavaScript rather than the object tag!


    That stupid update was the result of an exceedingly stupid lawsuit that MS lost. Now that Eola has a precedent, you can expect them to sue Apple and Mozilla as well. Might as well start using JS now to embed Flash as you're going to have to sooner or later.
    •  
      CommentAuthorSpookyET
    • CommentTimeApr 14th 2006
     permalink
    Unobtrusive Flash Object uses DOM and works with XHTML 1.1.
  5.  permalink
    Actually it uses innerHTML because using DOM methods to embed flash content is very painful.

    from the UFO site:

    UFO supports MIME type application/xhtml+xml. For those who are interested in the technical details of the implementation, please note that UFO only uses W3C DOM methods to embed Flash movies for older Gecko based browsers and uses innerHTML for all other browsers. The reasons for this are:

    1. Older versions of Gecko based browsers are the only browsers that don't support setting content with innerHTML when using MIME type application/xhtml+xml, which is a bug or misinterpretation that is fixed in later versions.
    2. At the moment W3C DOM methods for embedding Flash movies only work correctly in Gecko based browsers.
    3. Using W3C DOM methods, Safari and Opera suffer from all kinds of issues, like repaint problems, lack of support for certain parameters and varying levels of support for different browser versions.
    4. Internet Explorer (both on Windows and Mac) doesn't support MIME type application/xhtml+xml at all.
  6.  permalink
    in fact, now that i read this part:

    1. Older versions of Gecko based browsers are the only browsers that don't support setting content with innerHTML when using MIME type application/xhtml+xml, which is a bug or misinterpretation that is fixed in later versions.

    this doesn't make any sense, innerHTML should *not* work when using application/xhtml+xml.

    just adding strings into your xml documents is a nice way to invalidate them very quickly.
    •  
      CommentAuthorSpookyET
    • CommentTimeApr 16th 2006
     permalink
    I suspect that people will create an innerHTML.
    fooElement.appendChild(XMLToDOM("<p>bla bla bla</p>");
Add your comments
    Username Password
  • Format comments as (Help)