Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 91
Name: El Finney
Location: England, UK
Trades: 0
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
__________________
»
Please login or register to view this content. Registration is FREE

»
Please login or register to view this content. Registration is FREE

»
Please login or register to view this content. Registration is FREE
Finney is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-10-2008, 01:52 AM Re: Auto refresh help
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
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

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 02-10-2008, 05:48 AM Re: Auto refresh help
Finney's Avatar
Skilled Talker

Posts: 91
Name: El Finney
Location: England, UK
Trades: 0
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
__________________
»
Please login or register to view this content. Registration is FREE

»
Please login or register to view this content. Registration is FREE

»
Please login or register to view this content. Registration is FREE
Finney is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Auto refresh help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.42422 seconds with 12 queries