Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Frame troubles

  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Thanked 0 Times in 0 Posts

    Frame troubles

    So.. i dont exactly know how to solve my problem, or even what language it should be solved with... it could either be PHP, AJAX, or something im not even aware of lol... so heres the problem..

    I have a game, i just overhauled the layout, and now its framed. I know a lot of you dont like frames, but tough, i need them :P now, in my game, turns are used up when you adventure, problem is, the character pane in the frame shows the adventures, and when you adventure in the main pane, you cant see the adventures you lost, or if you lost HP, or whatever... so i need that to refresh when i adventure.. now.. is it possible to have some command in PHP to detect a change in the DB and refresh the page if there is a change? or any other ideas on how I would go about solving this?

    Any help would be appreciated..

  • #2
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Philadelphia, PA, USA
    Thanked 76 Times in 76 Posts
    you could force a meta refresh every minute or something like that...

    But to solve your problem completely and make the it update in real time, you are going to need to use javascript/AJAX.

    AJAX, btw, is not a language, but a suite of languages (mainly PHP & JS) working together.

    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."



    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts