jackma93 / wami-recorder

Automatically exported from code.google.com/p/wami-recorder
0 stars 0 forks source link

SWF doesn't show up in IE9 #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start IE9
2. Open http://code.google.com/p/wami-recorder/
3. Nothing shows up in the SWF area.

4. Press F12
5. Refresh the page.
6. It shows up!

7. Open a new tab, open http://code.google.com/p/wami-recorder/ again.
8. Unfornately still nothing's there

IE9's compat mode works fine.

I'm afraid it's caused by some weird IE 9 features. But I'm not familiar with 
IE at all. Do you know what's happenning?

Original issue reported on code.google.com by cxcxcxcx@gmail.com on 16 Jan 2012 at 4:46

GoogleCodeExporter commented 8 years ago
OK...

Around line 76 of record.js , please change
if (console)
to 
if (console == undefined)

Then it should be fine.

Original comment by cxcxcxcx@gmail.com on 16 Jan 2012 at 4:58

GoogleCodeExporter commented 8 years ago
Thanks for the detective work!  Try the latest version to test the fix.  

Original comment by mcgrawian@gmail.com on 16 Jan 2012 at 5:41

GoogleCodeExporter commented 8 years ago
My apologies, it was wrong... This works:
 if (window.console !== undefined)
"window." is necessary, and it should be !== instead of ==

An alternative way is:
 if (typeof console != 'undefined')

Sorry for the error yesterday...

Original comment by cxcxcxcx@gmail.com on 16 Jan 2012 at 7:00

GoogleCodeExporter commented 8 years ago
Oh, whoops, right.  OK, comitted the alternative which lines up more closely 
with:
http://stackoverflow.com/questions/519145/how-can-i-check-whether-a-variable-is-
defined-in-javascript

Original comment by mcgrawian@gmail.com on 16 Jan 2012 at 7:26

GoogleCodeExporter commented 8 years ago

Original comment by mcgrawian@gmail.com on 24 Jan 2012 at 3:28

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by cxcxcxcx@gmail.com on 24 Jan 2012 at 3:43

GoogleCodeExporter commented 8 years ago
I can confirm this with Windows 7 Home Premium 64 bit and IE 9.0.8112.16421. 
There is nothing in the console, debugging the page with F12 shows an swfobject 
instance, but nothing appears on the screen and calls to any Wami functions 
fail with 'Object doesn't support property of method XXXXX'

Original comment by peter.an...@gmail.com on 12 Jul 2012 at 1:03