Needs review
Project:
SWF Tools
Version:
6.x-3.0-beta4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 May 2010 at 05:02 UTC
Updated:
17 Dec 2010 at 18:09 UTC
Jump to comment: Most recent file
Comments
Comment #1
RedTop commentedcorrection:
disabling does not break playback and removes error only from pages without flash (which makes sense).
Interestingly, disabling also removes the error from pages using flowplayer.
Comment #2
Stuart Greenfield commentedI'm going to have to find a machine with IE7 on it to test this!
Comment #3
RedTop commentedI use this:
http://finalbuilds.edskes.net/iecollection.htm
It allows you to install almost ALL (except 1.0) IE versions on the same machine. :)
[edit]
This may also be an option:
http://spoon.net/browsers/
I'll test to see whether the latest dev version also has this issue. Perhaps I can save you the trouble. :)
[edit2]
I can confirm that the latest dev 2010 (2010-May-12) also has this issue.
Comment #4
bratsun commentedI can confirm the same. IE6 & 7 throws out an error. In my case it says the bug is in wordpress player and onepixelout JS integration files. The same happens with direct embedding and sfwtools emdedding options. Patch is highly appreciated!
Comment #5
Stuart Greenfield commentedPossibly related to #801666: Optimize JavaScript files breaks SWFtools in IE6 and IE7http://drupal.org/node/801666
Fixing now on DRUPAL-6--3. Try the dev package when it next generates and see if it clears the error.
Comment #6
Stuart Greenfield commentedComment #7
RedTop commentedDownloaded new dev and tested in IE7 (IE6 crashes, but that may have to do with the hacky IE collection. Will test tomorrow)
Above error does not appear on IE7 anymore.
[edit]
Tested it on a 'proper' IE6 install and can confirm this error does not appear anymore.
Comment #8
mandclu commentedFor some reason IE has a hard time with Javascript arrays that end with an empty element, which is what you get when the last proper element has a comma after it. I've had this error thrown twice: once from swftools_wpaudio.js (line 36) and also in swftools_onepixelout.js (line 34). For some reason when IE throws the error it reports a line number two more than where it appears in the file. That's quality software for you.
Please remove the unnecessary commas in the JS files, since so many people continue to insist on using substandard browsers.
Comment #9
RedTop commentedThe IE6 hurting never stops, does it? :P
They still use IE6 at my work which is ridiculous. Much to my joy they have started rolling out IE8 to selected staff as a 'test'. As soon as we're all over to IE8 I'm going to add the IEupgrade module to our sites. I don't want to annoy the hand that feeds me but I do want to annoy IE6 users in general (heck, IE6 has annoyed me for long enough). :P
Comment #10
altrugon commentedHere goes the patch to remove that extra comma.
I know it is an standard in Drupal to use the extra comma in the arrays when we are coding php, but we probably should avoid this for javascript.
Comment #11
mandclu commentedI know there are at least two files that have that problem, possibly more. Shouldn't we aim for a single patch that fixes everything?
Comment #12
A Romka commentedsame thing happens in swftools_wpaudio.js (sites\all\modules\swftools\wpaudio\swftools_wpaudio.js) - I'm too lazy to create a patch, but once you remove comma on line 36 the error goes away in IE7
Comment #13
Rob_Feature commentedAgreed with #11. This error occurs in a number of files (swftools_onepixelout.js in my case). I dont know enough to do a full patch but that would sure be appreciated :)
Marking as 'needs work' to get a proper fix across the whole module.
Comment #14
Rob_Feature commentedOk, I went thru the module and tried to find any instances of this. I only found them in swftools_wpaudio.js and swftools_onepixelout.js
Here's my first attempt at a patch (as in, first attempt ever :) Let me know if this works or if there are additional cases.
Comment #15
bcobin commentedThank you so much for this! (Sorry - I didn't try the patch - just did it manually...) Good detective work!