Jump to content

Bizarre problem with focus and domain forwarding


Krentz
 Share

Recommended Posts

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.php

I 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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...