Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-18-2011, 10:28 PM #1
- Join Date
- Jul 2011
- Thanked 0 Times in 0 Posts
I need to redirect users based on browser...small problem but very frustrating.
I have a page up with an iframe that's approximately 300px by 405px. When I load up the site in FF and IE, it frames just fine. However, in Chrome and Opera the iframe is shifted upwards and is off-frame.
I've tried looking for a solution to center the iframe correctly. Someone said to make a php code that loads 2 different iframes depending on browser (1 iframe for IE/FF and another frame for OP/CH). I have no knowledge of php coding, so I couldn't get it to work.
So now, I think I'm limited to redirecting users based on browser type. If the user is using FF or IE, I'll redirect them to my original page. If they're using some other browser, I'll redirect them to a different page without the iframe.
I've tried to set up a redirector, but it has trouble distinguishing between FF and Chrome. It treats them exactly the same.
Does anyone have any advice on what to do? I've done tons of searching for what seems to be such a small problem. Someone please enlighten me.
07-19-2011, 12:59 AM #2
- Join Date
- Jan 2006
- Halle (Saale), Germany
- Thanked 1,075 Times in 1,047 Posts
The first thought that comes to my mind when reading this is: you must be doing something wrong because usually what you want is not necessary. However, I can’t tell whether I’m correct with my assumption (although I’m pretty certain) and/or how to fix your problem if you’re not showing us your code, preferably a link to the page in question.