Click here to Skip to main content
15,881,877 members
Home / Discussions / Web Development
   

Web Development

 
QuestionMenu bar, address bar ect Pin
Armandt__15-Jan-09 1:45
Armandt__15-Jan-09 1:45 
AnswerRe: Menu bar, address bar ect Pin
Not Active15-Jan-09 2:08
mentorNot Active15-Jan-09 2:08 
Questionanti flood DB for my site Pin
haibec14-Jan-09 4:13
haibec14-Jan-09 4:13 
QuestionIIS Connection Capping or similar... Pin
markymark8213-Jan-09 23:37
markymark8213-Jan-09 23:37 
Questionflash with javascript Pin
shack201013-Jan-09 6:35
shack201013-Jan-09 6:35 
AnswerRe: flash with javascript Pin
Mohammad Dayyan13-Jan-09 19:51
Mohammad Dayyan13-Jan-09 19:51 
QuestionHow to use a cookie domain and subdomain Pin
haibec13-Jan-09 5:05
haibec13-Jan-09 5:05 
QuestionTime Dependent Events in Browser Games Pin
il_manti13-Jan-09 0:26
il_manti13-Jan-09 0:26 
I've been designing a browser game and things will take some (Real) time to complete in-game. I've checked out Travian and that's how it works too so I've been thinking of a viable way to do this. I came up with the following solution... maybe you can give me some tips (whether its viable or not, and if there's any other way to do this).

Have a windows service running all the time. Whenever the user does something which will need time to complete, it is inserted into a table with the action and the time of completion. Every second (I was thinking of having 15 second increments in event completion time so I don't need to hit the database every second) the service checks the table and accomplishes any events which are past their completion time. Additionally, on the user's end there will be an AJAX timer that updates the page whenever needed.

I dunno, I'm seeing some problems with this (like for example, how can I update the user's page when the event completes if its completion is not actually being done by the page?).

Cheers.

In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

AnswerRe: Time Dependent Events in Browser Games Pin
Paddy Boyd14-Jan-09 3:00
Paddy Boyd14-Jan-09 3:00 
GeneralRe: Time Dependent Events in Browser Games Pin
il_manti14-Jan-09 3:30
il_manti14-Jan-09 3:30 
Question"Top Rated Video" Sorting algorithm Pin
Siddarth Gaonkar12-Jan-09 11:51
Siddarth Gaonkar12-Jan-09 11:51 
AnswerRe: "Top Rated Video" Sorting algorithm Pin
Henry Minute12-Jan-09 13:06
Henry Minute12-Jan-09 13:06 
GeneralRe: "Top Rated Video" Sorting algorithm Pin
Siddarth Gaonkar13-Jan-09 9:31
Siddarth Gaonkar13-Jan-09 9:31 
GeneralRe: "Top Rated Video" Sorting algorithm Pin
Henry Minute13-Jan-09 9:43
Henry Minute13-Jan-09 9:43 
AnswerRe: "Top Rated Video" Sorting algorithm Pin
Member 450194013-Jan-09 11:09
Member 450194013-Jan-09 11:09 
QuestionMultiple webpages Pin
dsaroop12-Jan-09 10:01
dsaroop12-Jan-09 10:01 
QuestionDownload and Install Pin
Armandt__12-Jan-09 2:58
Armandt__12-Jan-09 2:58 
AnswerRe: Download and Install Pin
Not Active12-Jan-09 4:48
mentorNot Active12-Jan-09 4:48 
GeneralRe: Download and Install Pin
Anshumas14-Jan-09 21:50
Anshumas14-Jan-09 21:50 
GeneralRe: Download and Install Pin
Not Active15-Jan-09 1:57
mentorNot Active15-Jan-09 1:57 
GeneralRe: Download and Install Pin
Vasudevan Deepak Kumar15-Jan-09 3:52
Vasudevan Deepak Kumar15-Jan-09 3:52 
AnswerRe: Download and Install Pin
Paddy Boyd12-Jan-09 5:28
Paddy Boyd12-Jan-09 5:28 
AnswerRe: Download and Install Pin
Armandt__12-Jan-09 18:50
Armandt__12-Jan-09 18:50 
GeneralRe: Download and Install Pin
Armandt__13-Jan-09 0:16
Armandt__13-Jan-09 0:16 
AnswerRe: Download and Install Pin
Anshumas14-Jan-09 21:38
Anshumas14-Jan-09 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.