Results 1 to 2 of 2
  1. #1
    Senior Member
    FoxTrap is offline

    Posts
    225

    (REWARD) - NEED HELP! - (JavaScript)

    I have a facebook application, (which I do not want to post a link to it as I dont want a google search relating to this topic, as this app is for work), but basically it is a tetris game, written in javascript, but whenever you use a control, i.e up arrow, down arrow ect. it not only controls the app, but it also scrolls the page, which is annoying. The game is grabbed off the internet using iFrame, which the application is hosted on my own server.
    Please helpl <3
    Thanks in advance!

    Similar Threads:
    Retired Head Blogger @ BuyPoe.com
    ----------------------------------------------------------------------

    ----------------------------------------------------------------------



  2. #2
    Senior Member
    Devereux is offline

    Posts
    266
    Unless you want to illegally modify a commercial application, this isn't likely to happen. The browser reads the input and works accordingly long before it is received by javascript. I suggest using different keys..

    EDIT::: herpaderp :|

    This could also potentially work..

    Just call this when the game loads
    Code:
    function focusGame()
    {
         var frame = document.getElementById("iframeID");
         frame.contentWindow.focus();
    }
    It's been along time since I've used javascript, but I'm fairly sure that is right...

    I can be contacted on
    MSN: x.RaId-Z@live.com.au
    Skype: x.Raid-Z


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright © 2009-2012 BuyPoe.com All Rights Reserved.

Design Sites:
vBulletin Mods
Facebook Covers
| Free Facebook Covers
Google Covers | Google Plus Covers

Game Sites:
MMORPG
| MW3