Not signed in (Sign In)

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

    • CommentAuthorRuud
    • CommentTimeFeb 28th 2008
     
    I recently tried to change the MIME type of my site to appilication/xhtml+xml, but now there seems to be a strange bug. When I add this line of code:
    so.addVariable("pagina", "0" );
    or with any number as value (I didn't try strings), no content is written to the div in Firefox. It works good under IE. When I open the DOM inspector the div is empty. The previous content (for users without flash) is removed, but no swf! Any idea how to fix this? The problem is that I can't change the name of the parameter, because I lost the source of my swf file...
    • CommentAuthorAran
    • CommentTimeFeb 28th 2008
     
    From the 1st paragraph of the swfobject page -

    swfobject "can be used in valid HTML and XHTML 1.0 documents*, and is forward compatible, so it should work for years to come."
    * Pages sent as text/html, not application/xhtml+xml.

    So, your MIME type is not compatible. SWFObject 2.0 is also not compatible with application/xhtml+xml.

    Aran
    • CommentAuthorRuud
    • CommentTimeFeb 28th 2008
     
    But I have a second swfobject, which works fine.

    So do I have to choose? Warnings of the w3c validator or correct swf...
    • CommentAuthorAran
    • CommentTimeMar 2nd 2008
     
    Can you post your page?

    Aran
    • CommentAuthorRuud
    • CommentTimeMar 3rd 2008
     
    http://veniogames.com/download.php
    Note that I commented out the line that gives the error. The MIME type still works a bit weird. W3c validator still says it's the wrong type but Firefox says it's the right one.
    • CommentAuthorAran
    • CommentTimeMar 4th 2008
     
    I guess it comes down to your need to use application/xhtml+xml as the MIME type. Everything else on the page looks fine to me. As I stated earlier, it is known that SWFObject will not work with application/xhtml+xml.

    You can still use xhtml MIME type/validation, but set the type as text/html. You will still have a valid page, and your flash will work as it should. Is there any particular reason you are using application/xhtml+xml?


    Cheers,
    Aran
    • CommentAuthorRuud
    • CommentTimeMar 5th 2008
     
    I guess that's the only solution. The only reason I wanted an other MIME type was because of the validator (I want no warnings), but I didn't even fix it for the w3c validator, so I'll switch it back. Thanks for the help! The only strange thing is... why does the second one work fine? (only on the page with the battle of the white eagle)
    • CommentAuthorAran
    • CommentTimeMar 5th 2008
     
    Ruud.

    You can get XHTML1.0 strict validation not a problem.

    Using Geoff's example page:
    http://validator.w3.org/check?uri=http%3A%2F%2Fblog.deconcept.com%2Fswfobject%2Fswfobject.html

    I don't know why the second one works but the first one doesn't- I think we'll just have put it down to "not compatible"... :)

    A
    • CommentAuthorRuud
    • CommentTimeMar 6th 2008
     
    Ok thanks for the help.