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.

Coding Forum


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



Reply
Auto refresh script help..
Old 02-09-2008, 06:33 PM Auto refresh script 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-16-2008, 12:16 PM Re: Auto refresh script help..
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
What code is it written in? Because client side code such as javascript (AJAX) has no means of knowing when the database is updated.

Your best bet is to have the game entirely written in Java, that's Java NOT javascript.
Java works synchronously between the client and server. So the server can update ALL the client(s) when any action by another client creates a need to refresh other clients views.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Auto refresh script 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.11144 seconds with 12 queries