JohnnyDoomo Posted December 18, 2011 Share Posted December 18, 2011 My problem I need ads to rotate / refresh while people stay on the same page. The catch They are playing games which use the keyboard for control. Why iframe refreshing doesn't solve my problem I've tested iframe refreshing, and when games use the keyboard, the iframe steals the focus away from the game and the keyboards are now set to control the iframe that just refreshed. My question If I put my ad code inside the ajax to rotate or refresh the ad code every 5 or so minutes, will this steal the keyboard and/or mouse control away from the game like the iframe did? I'm not a programmer, so I can't even make some quick test to see if it would work or not. I would like to know if it's even possible though before I have a programmer try to program it into my site. Can somebody with ajax knowledge please let me know if something like this is at all possible. I really don't want to pay to have the work done, and then I find out it has the same problem as the iframe that I could have coded myself. Thanks for any help you can provide on this! Quote Link to comment https://forums.phpfreaks.com/topic/253402-does-ajax-calling-steal-mousekeyboard-focus-away-ajax-ad-rotator/ Share on other sites More sharing options...
scootstah Posted December 19, 2011 Share Posted December 19, 2011 It most likely will. The first question to ask is, are you positive that an iframe is the right way to go? I can't see why you'd need an iframe for ad rotation. A possible solution is to just force focus onto the game when the iframe is reloaded. Quote Link to comment https://forums.phpfreaks.com/topic/253402-does-ajax-calling-steal-mousekeyboard-focus-away-ajax-ad-rotator/#findComment-1299200 Share on other sites More sharing options...
JohnnyDoomo Posted December 19, 2011 Author Share Posted December 19, 2011 I'm not sure I understand your response from my OP. I have already tried iframe, and it didn't work. That is why I was asking about the ajax alternative. As far making the flash content gain focus again, I doubt this would work, as it would that it would still lose focus for some period of time while the ad was refreshing. This wouldn't work, as the focus needs to stay within the game so that controls are never lost. I need something to allow the ads to be reloaded without reloading the entire page or stealing focus away from a game. I've tested, and know that an iframe refreshing steals the focus away. Ideas? Quote Link to comment https://forums.phpfreaks.com/topic/253402-does-ajax-calling-steal-mousekeyboard-focus-away-ajax-ad-rotator/#findComment-1299526 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.