Not signed in (Sign In)

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

    • CommentAuthortbalbekov
    • CommentTimeFeb 24th 2008
     
    Hi guys,

    I have a flash "thermometer" that counts the number of households that have agreed to recycle in our town. If you're not using MSIE6, it should work for you:
    http://www.nfgoinggreen.com

    But on MSIE6, it doesn't appear. I have no idea what's going on.

    Thanks!
    • CommentAuthorphilip
    • CommentTimeFeb 24th 2008
     
    your SWFObject code looks ok, although i suggest you move the JS file import to the head section.
    <script type="text/javascript" src="/swfobject.js"></script>

    there's a JS error in your code, which is unrelated to SWFObject, but causes a cascade of JS errors. the first one is:

    "Class is not defined"
    /js/caption.js line 22
    var JCaption = new Class({

    it appears your caption.js file comes before any other JS files, even though it's dependent on whatever framework you're using to create JS classes. your framework JS file probably needs to come before the caption.js file.

    window.addEvent is also throwing an error, so it definitely looks like you're missing your JS support file(s).

    i suggest you double-check the JS dependencies and the order of files.

    - philip
    • CommentAuthortbalbekov
    • CommentTimeFeb 24th 2008
     
    thanks philip,

    i deleted the mootools support js -- thats why the javascript error were occuring. i need to delete those too, then. everything is horribly bloated (300Kb!!!) so im cutting some fat.

    surprisingly, its working now: http://png.browsershots.org/0adb3989bdf3f167eace01a56a6c486d.png

    i think the problem was with absolute versus relative paths to the swf file... absolute works, relative breaks. i dont know why -- maybe mod_rewrite.

    thanks!