Krentz Posted March 18, 2015 Share Posted March 18, 2015 So I have been fighting with focus issues for days now and it's driving me crazy. I would appreciate any input you seasoned canvas devs might have. I just switched my game from another JS engine to Phaser and lo and behold - my focus issues were gone! The game starts with focus every time. Awesome. After a little more development on my Phaser version of my game, I rename my game_phaser.php page to index.php so it will auto-load on my page - suddenly no focus! However... this focus issue ONLY happens when I access my page directly through my domain forwarding. It's set up like this: My game resides at <myname>.com/game/index.phpI own <gamename>.com which forwards to the above address ^ If I access the game through the URL <myname>.com/game/index.php, the game auto-focuses and everybody is happy.If I access the game through the URL <gamename>.com, even though it pulls the EXACT SAME FILE, the game does not start focused and developer tears flow. I have domain masking on the domain forwarding. Has anybody else seen this kind of behavior before? I am at a loss here. Thanks so much! Link to comment Share on other sites More sharing options...
rich Posted March 19, 2015 Share Posted March 19, 2015 My guess would be that you've got some kind of (sorry if I offend!) "cheap" domain forwarding set-up, which isn't doing an actual DNS level redirect, but is instead using a hidden frame. It would explain why one route doesn't focus your game, but the other does, as the parent frame has the focus. Without seeing your actual game this is just a guess though. Link to comment Share on other sites More sharing options...
Krentz Posted March 19, 2015 Author Share Posted March 19, 2015 I am just using Godaddy so no offense taken! But yeah it looks like you might be on the right track... the page I pull up from <gamename>.com has an extra <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> added to it... Well that's a pain! Thanks for the reply. Link to comment Share on other sites More sharing options...
Recommended Posts