Reply
Auto refresh help
Old 02-09-2008, 04:55 PM Auto refresh help
Finney's Avatar
Skilled Talker

Posts: 91
Name: El Finney
Location: England, UK
Hey there.

I am working on a current project of a game, which is secured and play with database actions and you then play around on a tile based structure. The problem is if someone in walking down the street to you (the database gets updated on every action) so I need it to automatically refresh the content section of the gameplay. I found it hard finding ajax refresher scripts at first. I found a couple and made to work but not as I wish. They either only refresh when you play an action not something else on the server and you see it white when refreshes. What I am needing is help by someone or to point me in the right direction.

If somebody can provide me with a script that auto refreshes as the database changes and doesnt show the white, like literally only the change thing changes I guess Ill pay you $5 for the help or something.

Thanks for future help by anybody,
Finney
Finney is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-10-2008, 12:52 AM Re: Auto refresh help
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 984
Name: Jeremy Miller
Location: Reno, NV
Well, your description is confusing, but based on what you've written, I suggest that you have your server checked every X seconds (where X is small enough that it refreshes in a smooth manner, but large enough that it doesn't overload your server). The function to look at is setTimeout.
__________________
Jeremy Miller - TeraTask Technologies, LLC
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 02-10-2008, 04:48 AM Re: Auto refresh help
Finney's Avatar
Skilled Talker

Posts: 91
Name: El Finney
Location: England, UK
Hey, sorry for not explaining best I could.

Well really its code and as one person moves down the street it updates the database putting them onto a different 'tile' of the ground.

I have kinda used setTimeout but it doesnt work properly for what I am needing.

I need to like dynamicly refresh (with ajax or something) a peice of content (being the game play) without showing no content on loads. Basicly just simple little things I need refreshing..

Thanks for the help though,
Finney
Finney is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Auto refresh help
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11768 seconds with 12 queries