Jump to content

Php Help!


MikeT

Recommended Posts

Hello... I am having a problem in PHP. My layout has it so that banner is loaded, then left nav and then the content (center). I know that HTML reads it in order while loading, and that is my problem.

 

On the left bar I have some game stats, and in the middle content area I have a TEST update one of the stats... So when the index.php is loaded it loads the stats to the left first and then the content (where the update happens)... So basically I have to refresh to show that the stats have changed...

 

I am wondering if there is anyway around this problem as it's bugging the hell out of me!

 

Thanks for any/all replied :D

Link to comment
https://forums.phpfreaks.com/topic/116081-php-help/
Share on other sites

Thanks for the reply, but I know it aint AJAX that does it. I have seen a game that does it without, s1.rsbattle.com (sorry if this counts as advertising, I just want you to know what I mean)

 

If you sign up and have a quick one battle you will see that it updates the left stats right away... It's getting to me so bad as I know it can be done, just finding out the way...

Link to comment
https://forums.phpfreaks.com/topic/116081-php-help/#findComment-596876
Share on other sites

IF you actually go to that site, register and have one quick battle you will see that AJAX isn't used on the left or the center bars. It is static, yet it still updates when you have battled.

 

E.g: You click battle with 10hp to the left, it goes to a new page where the battle is auto done (no refreshing or anything) and then it tells you how much you hit the opponent, how much HP you lost, etc. Yet to the left (still without refreshing) it shows your NEW hp and stats.

 

I have looked through the source code and it doesn't use AJAX.

Link to comment
https://forums.phpfreaks.com/topic/116081-php-help/#findComment-596913
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.