492 posts
  • 9 Years of Membership
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 1
+4 more
avenue28
says

Hi guys! I’m using SWFObject 2.0 to embed my swf. Now from what I know, if there is no flash plugin on the user’s computer, then the content put in the alternative ‘div’ tag is displayed. But what I want to do here is to redirect the user to another page if flash plugin is not installed.

I’ve googled it and found this, but it is not working for me. It doesn’t even display the flash content. Any ideas on how it can be achieved.

Also, I’d like to know if you guys are aware any method to disable flash plugin of my browser so that I can test it out. I’m using firefox 3.0. I found flashblock but it is not working. Thanks.

6231 posts
  • Exclusive Author
  • Elite Author
  • Author Level 8
  • 8 Years of Membership
+13 more
VF
says
Also, I’d like to know if you guys are aware any method to disable flash plugin of my browser so that I can test it out.

If your purpose of test is just to preview the alternative content, then simply enter a higher player version in the code (say “11” ) instead of 8, 9 or 10.

492 posts
  • 9 Years of Membership
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 1
+4 more
avenue28
says

wow…that worked like a charm. Thanks VF. Would love to know if anyone can come up with a solution for redirecting…

8586 posts Community Moderator
  • United Kingdom
  • 8 Years of Membership
  • Moderator
  • Winner
+10 more
MSFX
Moderator
says

havent tried it but if you have some PHP within the div that is displayed when flash player isnt installed you could get that to redirect using header(redirect-url-here)

492 posts
  • 9 Years of Membership
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 1
+4 more
avenue28
says
havent tried it but if you have some PHP within the div that is displayed when flash player isnt installed you could get that to redirect using header(redirect-url-here)

Not working… :( That is because the header information is already sent by the time it reached the ‘div’ tag. So it cannot modify the headers!

492 posts
  • 9 Years of Membership
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 1
+4 more
avenue28
says

ha…got it!!! :)

pastie

In this link, redirectUrl was placed in double quotes and it must be placed in single quotes as I wrote here. Thanks for the help guys!.

2128 posts
  • Author Level 6
  • Featured Author
  • Featured Item
  • Weekly Top Seller
+4 more
fiddy_music
says
492 posts
  • 9 Years of Membership
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 1
+4 more
avenue28
says

wow…that is a lot of code… :D Thanks for sharing though fifty. I’ll definitely find use for it.

2128 posts
  • Author Level 6
  • Featured Author
  • Featured Item
  • Weekly Top Seller
+4 more
fiddy_music
says

no problem :). I forgot to mention, that’s the index.html file. For example www.yousite.com has that index.html, and if flash player (the right version) is found the user can be redirected to www.yoursite.com/flash, and if not, to www.yoursite.com/noflash.

492 posts
  • 9 Years of Membership
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 1
+4 more
avenue28
says

got it. ;)

by
by
by
by
by
by